+ Reply to Thread
Results 1 to 4 of 4

Using VLOOKUP when the value in table array is another function

  1. #1
    Registered User
    Join Date
    01-09-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2003
    Posts
    24

    Using VLOOKUP when the value in table array is another function

    vlookup is returning #N/A because the value I am searching for in table_array is a function. I.E. I am searching for an exact match of the value 125 in table_array, but that value in table_array in the result of the function =LEFT(B72,3).

    The function I am using now is: =VLOOKUP(A20, 'Self-Assessment Summary'!A:E, 3, FALSE)

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using VLOOKUP when the value in table array is another function

    Try:

    =VLOOKUP(""&A20, 'Self-Assessment Summary'!A:E, 3, FALSE)

    or change the LEFT formula to: =LEFT(B72,3)+0 to coerce to a number...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-09-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Using VLOOKUP when the value in table array is another function

    don't get why ""& does the trick, but it did. Thanks!

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using VLOOKUP when the value in table array is another function

    Because the value in A20 is numeric, and the LEFT() function returns text string (even though it looks like a number)... the "" coerces the A20 value to text so that it can make the match.

+ 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