+ Reply to Thread
Results 1 to 4 of 4

INDIRECT to Reference Worksheets #Ref Error

  1. #1
    Registered User
    Join Date
    09-03-2011
    Location
    Northwest
    MS-Off Ver
    Excel 2010
    Posts
    2

    INDIRECT to Reference Worksheets #Ref Error

    The file in question has multiple "detail" worksheets and a single worksheet as a summary.

    The summary has in column A the names of all the detail worksheets listed and I'm trying to use that via INDIRECT to reference the correct worksheets in the formulae in columns B-O, rather than adjusting each formula manually. The workbook will grow over time so it'll be very useful when adding in new detail sheets.

    Currently one of the formula's in question reads...

    =IF((INDIRECT("'" & A1 & "'!$BD$3"))=(TODAY()),"Due",(IF((INDIRECT("'" & A1 & "'!$BD$3"))<(TODAY()),"Over Due",(IF((INDIRECT("'" & A1 & "'!$BD$3"))>(TODAY()),"Not Due","")))))

    Obviously it's comparing the current date to a due date within the detail sheet and giving me a response of whether it is Due or not. Right now it's just giving me back a #Ref error and I'm rusty enough on Excel to not see why.

    Many many thanks in advance for any help on this.

  2. #2
    Valued Forum Contributor
    Join Date
    06-19-2010
    Location
    Holywell, N Wales, UK
    MS-Off Ver
    Excel 2013
    Posts
    470

    Re: INDIRECT to Reference Worksheets #Ref Error

    Hi McToons
    Check that there is a valid sheet name in col A on the row where the error is being thrown

  3. #3
    Registered User
    Join Date
    09-03-2011
    Location
    Northwest
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: INDIRECT to Reference Worksheets #Ref Error

    Quote Originally Posted by barryleajo View Post
    Hi McToons
    Check that there is a valid sheet name in col A on the row where the error is being thrown
    Sadly that was the first thing I did check, I've retyped the name in both the column and the actual sheet name, they match 100%.

    [Edit]

    Nevermind, ignore me, went away had a beer and came back, saw my mistake straight away and it's rather embarrassing. Thanks so much anyway you did kind of point me right.
    Last edited by McToons; 09-03-2011 at 05:22 PM.

  4. #4
    Valued Forum Contributor
    Join Date
    06-19-2010
    Location
    Holywell, N Wales, UK
    MS-Off Ver
    Excel 2013
    Posts
    470

    Re: INDIRECT to Reference Worksheets #Ref Error

    OK McToons
    Glad you're sorted - so what was the 'mistake'?
    More importantly what beer do you drink.....I have a few problems still to sort!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1