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.
 

Some videos you may like

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

venkat1926

Well-known Member
Joined
Aug 21, 2005
Messages
4,824
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.
 

nachiketdp

Board Regular
Joined
Jan 31, 2007
Messages
53
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,101,914
Messages
5,483,689
Members
407,399
Latest member
Rakeforms

This Week's Hot Topics

  • Finding issue in If elseif else with For each Loop
    Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
  • MsgBox Error
    Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
  • CELL FORMAT - IF CONDITION
    My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
  • Show numbers nearly the same
    Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...
  • Please i need your help to create formula
    I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%. Thank you in...
  • Got error while adding column and filter
    Got error while adding column and filter In column Z has some like "Success" and "Error". I want to add column in AA if the Z cell value is...
Top