Results 1 to 3 of 3

Thread: Getting #REF! on using indirect function
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular
    Join Date
    Jan 2007
    Posts
    53
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Getting #REF! on using indirect function

    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.

  2. #2
    Board Regular
    Join Date
    Aug 2005
    Posts
    4,824
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    2 Thread(s)

    Default

    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.
    I am not an expert. So better solutions may be available
    MinE WINDOWS 7 AND excel 2007(compatbililty mode)
    venkat1926(at)gmail(dot)com
    preferably do not send private messages in the newsgroup reply to newsgroup

  3. #3
    Board Regular
    Join Date
    Jan 2007
    Posts
    53
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •