+ Reply to Thread
Results 1 to 8 of 8

VLOOKUP returns error when table array is from another sheet - Excel settings?

  1. #1
    Registered User
    Join Date
    04-23-2020
    Location
    Bristol, England
    MS-Off Ver
    Office 365 ProPlus
    Posts
    23

    Smile VLOOKUP returns error when table array is from another sheet - Excel settings?

    Hi all

    I encounter an issue with a specific excel file - I cannot use vlookup function (returns error) when the table array is on another sheet in the same workbook.

    This happens for the same excel file both in my business and my personal laptops.

    I tested the function in a new excel file in both laptops and works fine.

    Does anyone have any idea about the source of this problem in the specific excel file?

    Unfortunately I cannot share the file as it contains confidential data. But I attach an example which is working to show the formula I am using: VLOOKUP(A5,Sheet2!$F$9:$H$19,3,FALSE)

    Any idea/advice will be much appreciated!
    Attached Files Attached Files
    Last edited by zak1914; 10-06-2020 at 12:43 PM. Reason: solved

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: VLOOKUP returns error when table array is from another sheet - Excel settings?

    Well, you could tell us what formula you are using ...

    Pete

  3. #3
    Registered User
    Join Date
    04-23-2020
    Location
    Bristol, England
    MS-Off Ver
    Office 365 ProPlus
    Posts
    23

    Re: VLOOKUP returns error when table array is from another sheet - Excel settings?

    Hi Pete - my bad, I have updated my initial post with a working example and the formula I am using : VLOOKUP(A5,Sheet2!$F$9:$H$19,3,FALSE)

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: VLOOKUP returns error when table array is from another sheet - Excel settings?

    Well, that seems to be working okay in your sample file.

    In what way is it not working in your real file? Are you getting incorrect results, or blanks, or errors etc.?

    Pete

  5. #5
    Registered User
    Join Date
    04-23-2020
    Location
    Bristol, England
    MS-Off Ver
    Office 365 ProPlus
    Posts
    23

    Re: VLOOKUP returns error when table array is from another sheet - Excel settings?

    I'm getting N/A error - value not available. This happens only when table array is in different sheet of the same workbook. If I transfer the table array on the same sheet then it works flawlessly.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: VLOOKUP returns error when table array is from another sheet - Excel settings?

    That error implies that the name has not been found in the table. Perhaps you have a leading or trailing space at the end of the names (or in A5 in your example), which means there is no exact match.

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    04-23-2020
    Location
    Bristol, England
    MS-Off Ver
    Office 365 ProPlus
    Posts
    23

    Re: VLOOKUP returns error when table array is from another sheet - Excel settings?

    I see Pete, I will have a look to and check again.

    Update: Thanks a lot Pete - you lead me to the fault! A5 cells was in text format when table array in number. I haven't thought that this would be the error. Many thanks again!
    Last edited by zak1914; 10-06-2020 at 12:42 PM.

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: VLOOKUP returns error when table array is from another sheet - Excel settings?

    You're welcome, Zak - thanks for the rep.

    Pete

+ 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 - sheet of table array from a cell
    By HarryKlein in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2020, 10:10 AM
  2. Query on Excel sheet returns error, how to prevent error message
    By rgsbouma in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-02-2019, 01:38 PM
  3. [SOLVED] Vlookup returns error even when Lookup Value and Value on the table is the same
    By jcanlas in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-28-2015, 04:40 AM
  4. [SOLVED] Vlookup to Pivot Table, using Match function, returns error if can't find match value
    By AndrewHowarth in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-16-2015, 12:10 AM
  5. vlookup table array #ref error
    By kbaz555 in forum Excel General
    Replies: 3
    Last Post: 08-27-2014, 01:18 PM
  6. Replies: 4
    Last Post: 03-04-2014, 09:19 PM
  7. [SOLVED] Vlookup syntax for table array on another sheet:
    By stockgoblin42 in forum Excel General
    Replies: 2
    Last Post: 05-21-2012, 11:27 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