+ Reply to Thread
Results 1 to 8 of 8

VLOOKUP from multiple sheets returns #N/A!

Hybrid View

  1. #1
    Registered User
    Join Date
    02-24-2009
    Location
    Tehran
    MS-Off Ver
    Excel 2010
    Posts
    45

    Question VLOOKUP from multiple sheets returns #N/A!

    Hi,

    I can't find why the VLOOKUP returns #N/A in column "R" of "Sheet1" in attached file;

    I want to lookp up "C" column values from other sheets and return corresponding "L" column value from those sheets.

    I've used this formula:
    =VLOOKUP(C3;INDIRECT("'"&INDEX(SheetList;MATCH(1;--(COUNTIF(INDIRECT("'"&SheetList&"'!$B$4:$Z$1200");C3)>0);0))&"'!$B$4:$Z$1200");11;FALSE)
    Could you please kindly guide me?
    Attached Files Attached Files
    Last edited by omid020; 02-09-2017 at 05:42 AM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,651

    Re: VLOOKUP from multiple sheets returns #N/A!

    Maybe:

    =IFERROR(VLOOKUP(C3,INDIRECT("'"&SheetList&"'!$D$4:$AI$1150"),9,0)," not found")
    Quang PT

  3. #3
    Registered User
    Join Date
    02-24-2009
    Location
    Tehran
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: VLOOKUP from multiple sheets returns #N/A!

    Thank you bebo021999! but I'm confused why this formula does not work! :

    =IFERROR(VLOOKUP(C3,INDIRECT("'"&SheetList&"'!$B$4:$AI$1150"),11,0)," not found")

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,651

    Re: VLOOKUP from multiple sheets returns #N/A!

    Quote Originally Posted by omid020 View Post
    Thank you bebo021999! but I'm confused why this formula does not work! :

    =IFERROR(VLOOKUP(C3,INDIRECT("'"&SheetList&"'!$B$4:$AI$1150"),11,0)," not found")
    This formula is seeking C3 value in B column of t1 sheet, check B column to see if it match?

  5. #5
    Registered User
    Join Date
    02-24-2009
    Location
    Tehran
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: VLOOKUP from multiple sheets returns #N/A!

    Lookup data there is in "D" column but I want to lookup it from B to Z instead of D to Z of SheetList; While D is between B to Z why the formula which contains $B$4:$AI$1150 does not work!?

  6. #6
    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,802

    Re: VLOOKUP from multiple sheets returns #N/A!

    Testing indicates that the "Sheetlist" formula will not work if there is only one sheet.

    I copied "t1" and renamed to "t2" , updated "Sheetlist" and the formula worked with the changes already outlined in previous postsi.e. change range

    =VLOOKUP(C3;INDIRECT("'"&INDEX(SheetList;MATCH(1;--(COUNTIF(INDIRECT("'"&SheetList&"'!$D$4:$Z$1200");C3)>0);0))&"'!$D$4:$Z$1200");9;FALSE)

  7. #7
    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,802

    Re: VLOOKUP from multiple sheets returns #N/A!

    .. Because VLOOKUP requires the lookup parameter (C3) to the the FIRST parameter in the lookup range which is (has to be) D in this case.

  8. #8
    Registered User
    Join Date
    02-24-2009
    Location
    Tehran
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: VLOOKUP from multiple sheets returns #N/A!

    Thank you John!

+ 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] VLOOKUP from multiple sheets returns #VALUE!
    By omid020 in forum Excel General
    Replies: 4
    Last Post: 12-31-2016, 08:34 AM
  2. Vlookup in multiple sheets returns N/A
    By hanhj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-14-2016, 07:08 PM
  3. vlookup returns 1/0/1900 search two sheets
    By cipherblue in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-28-2015, 03:20 PM
  4. Vlookup - multiple returns
    By surfsup00 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-23-2014, 12:12 PM
  5. VLOOKUP returns error if value is not in all sheets?
    By MJ10 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-21-2013, 06:43 PM
  6. Replies: 1
    Last Post: 03-14-2013, 12:21 PM
  7. Vlookup with multiple returns
    By SITKAN in forum Excel General
    Replies: 1
    Last Post: 01-25-2010, 03:11 PM

Tags for this Thread

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