Getting #REF! on using indirect function

nachiketdp

Board Regular
Joined
Jan 31, 2007
Messages
53
Hi all,
I have a workbook which has a sheet namely "Working". This sheet has in its Column G ranges referring to several other worksheets in the same workbook eg(ABCD!$A$1:$IA$35).
In Column I there is an hlookup throughout which uses the corresponding range present in Column B as the table_array using indirect function for eg(=HLOOKUP($E2,INDIRECT($G2),15,0).
Now my problem is that I am getting the error #REF! for some row-items. All the corresponding worksheets for these row-items are present in the workbook. None of them is hidden or very-hidden.
Any idea why this could be happening? Any help will be highly appreciated !!

Thanks in advance,
Nachiket Pendharkar.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
examine the range given by the corresponding cell in column G and look for some error values like #N/A or #ref etc..

for e.g check the cells A1 to IA35 in sheet ABCD.
 
Upvote 0
Hi Venkat,
Thanks for your reply. Actually the problem was that some of my worksheet names were containing hyphens in between
(eg RA-563!$A$1:$IA$35). So may be excel was considering '563' alone as the worksheet name and hence it was throwing the error.
I solved the problem by putting single inverted commas at the begining and at the end of the worksheet names(eg 'RA-563'!$A$1:$IA$35). Thereafter all the values were displayed.

Thanks anyway for spending your precious time on this !!

Regards,
Nachiket Pendharkar.
 
Upvote 0

Forum statistics

Threads
1,213,549
Messages
6,114,261
Members
448,558
Latest member
aivin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top