Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-24-2017, 09:07 AM
wuddog wuddog is offline Indirect function error referencing worksheets Windows 10 Indirect function error referencing worksheets Office 2016
Novice
Indirect function error referencing worksheets
 
Join Date: Mar 2017
Posts: 1
wuddog is on a distinguished road
Default Indirect function error referencing worksheets

Anyone know why when using indirect I cannot reference a worksheet with a dash or space in it's name? For example, here is my function:

=INDIRECT(P2&"!s34")



In P2 I've entered OCT-HDD to reference worksheet OCT-HDD. When I do this, the result is the dreaded #REF!. I get the same result if I reference a sheet with a space in its name (OCT HDD).

If I rename the sheet OCT and enter OCT in my reference cell, it works. So I COULD rename all my worksheets. However, I have several other workbooks that reference back to these worksheets and I fear I will introduce other errors if I rename worksheets to which I have existing references.

Anyone had this problem before? Anyone know how to fix this?

Thanks for your help and replies.
Reply With Quote
  #2  
Old 03-24-2017, 10:55 AM
xor xor is offline Indirect function error referencing worksheets Windows 10 Indirect function error referencing worksheets Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

Try

=INDIRECT("'"&P2&"'!s34")
Reply With Quote
Reply

Tags
#ref!, indirect, worksheet name



Similar Threads
Thread Thread Starter Forum Replies Last Post
Indirect function error referencing worksheets INDIRECT and Relative Referencing? tinfanide Excel 7 03-15-2016 06:23 AM
Index Match Function across different worksheets shay_mt Excel 2 04-27-2015 06:04 AM
Confusion on INDIRECT function thatgirlaudrey Excel 4 06-06-2014 09:23 PM
Indirect function error referencing worksheets #REF! Error in calling VBA function disappears when function is copied lcaretto Excel Programming 2 05-26-2014 07:19 PM
Indirect function error referencing worksheets Data validation using indirect function BullMouse Excel 2 11-30-2011 05:25 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:55 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft