#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
Try
=INDIRECT("'"&P2&"'!s34") |
Tags |
#ref!, indirect, worksheet name |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
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 |
#REF! Error in calling VBA function disappears when function is copied | lcaretto | Excel Programming | 2 | 05-26-2014 07:19 PM |
Data validation using indirect function | BullMouse | Excel | 2 | 11-30-2011 05:25 PM |