+ Reply to Thread
Results 1 to 7 of 7

Help on LOOKUP and INDIRECT formula (#REF being ret'd)

  1. #1
    Registered User
    Join Date
    04-04-2017
    Location
    Phoenix, Arizona
    MS-Off Ver
    2016
    Posts
    5

    Help on LOOKUP and INDIRECT formula (#REF being ret'd)

    Hi. I am getting an #REF error when doing my VLOOKUP and INDIRECT formula. I am having it VLOOKUP a month that is a data validation in B5 and using the INDIRECT function to reference the name that is a data validation in B10.

    My formula looks like this:

    =VLOOKUP(B5,INDIRECT(" ' "&B10& " ' !$A$4:$J$15"),3,FALSE)

    Thanks!
    Last edited by joka1111; 04-04-2017 at 11:25 PM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,948

    Re: Help on LOOKUP and INDIRECT formula (#REF being ret'd)

    This worked OK for me

    =VLOOKUP(B5,INDIRECT("'"&B10& "'!$A$4:$J$15"),3,FALSE)

    What is in B10 as this is the cause of error Or the extra blanks in your posted formula.

  3. #3
    Registered User
    Join Date
    04-04-2017
    Location
    Phoenix, Arizona
    MS-Off Ver
    2016
    Posts
    5

    Re: Help on LOOKUP and INDIRECT formula (#REF being ret'd)

    B10 is a data validation list that has firstname lastname. If I understand the formula, I want it to look for the sheet that matches that name and search within A4:J15 and find the month (B5) and then return column 3 value.

    I removed the extra spaces to make my formula look like yours and still get the #REF. Thanks for any help. I am scratching my head trying to get it.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,948

    Re: Help on LOOKUP and INDIRECT formula (#REF being ret'd)

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on Reply then GO ADVANCED and then scroll down to Manage Attachments to open the upload window.


    Obviously check B10 exists! (e.g no extra blanks etc in text)
    Last edited by JohnTopley; 04-04-2017 at 11:47 PM.

  5. #5
    Registered User
    Join Date
    04-04-2017
    Location
    Phoenix, Arizona
    MS-Off Ver
    2016
    Posts
    5

    Re: Help on LOOKUP and INDIRECT formula (#REF being ret'd)

    Desired results are shown in BLUE.

    I checked the data validation to ensure no extra spaces before/after and also checked my worksheet names to ensure no extra spaces before/after.

    Thanks for any help or guidance you can give.
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,180

    Re: Help on LOOKUP and INDIRECT formula (#REF being ret'd)

    Try:

    =VLOOKUP(B3,INDIRECT("'"&B8& "'!A3:J15"),3,0)

  7. #7
    Registered User
    Join Date
    04-04-2017
    Location
    Phoenix, Arizona
    MS-Off Ver
    2016
    Posts
    5

    Re: Help on LOOKUP and INDIRECT formula (#REF being ret'd)

    BRILLIANT Phuocam! Thank you SO much!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] lookup with indirect
    By pauldaddyadams in forum Excel General
    Replies: 1
    Last Post: 04-19-2016, 02:26 PM
  2. [SOLVED] INDIRECT within a LOOKUP
    By strik009 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-09-2016, 06:44 AM
  3. [SOLVED] How to use Indirect function in array lookup formula
    By PM1985 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-20-2014, 06:58 PM
  4. Indirect Table Lookup Formula Help needed please
    By duder744 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-29-2012, 10:06 AM
  5. Replies: 1
    Last Post: 02-28-2012, 02:55 AM
  6. Indirect + Lookup last value
    By slyzenoui in forum Excel General
    Replies: 2
    Last Post: 03-24-2007, 04:09 PM
  7. indirect lookup
    By choice in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-26-2005, 09:06 PM

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