+ Reply to Thread
Results 1 to 16 of 16

Vlookup not returning correct values

  1. #1
    Registered User
    Join Date
    06-21-2016
    Location
    Houston,Texas
    MS-Off Ver
    2013, newest version
    Posts
    9

    Unhappy Vlookup not returning correct values

    In my worksheet, I am using a vlookup function and referencing a table array from another sheet. I am attempting to match payment receipts with the correct property/tenant (from my second sheet). I have moved my reference column to the first column on the second worksheet (tenant name; column A and property number; column b) and am looking for a return a value on my new document that matches the tenant name but the result displayed is the property number. Here is the formula I am using
    =VLOOKUP(G4&"*",'[Copy of Tenant Lookup List 2016 - JAKE.xlsx]Sort- Pay From'!$A$2:$C$1963,2,TRUE)

    Although I am getting property numbers as a result the property numbers are not from the correct tenant.

    What should I change or do to have excel return the right property number from my second sheet?

    Let me know if i need to be more clear!

    Thanks

  2. #2
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Vlookup not returning correct values

    Can you share an example workbook for this please?

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Vlookup not returning correct values

    Help file for the VLOOKUP() function: https://support.office.com/en-us/art...8-93a18ad188a1 Note that the help file only describes the use of wildcard characters when the 4th argument is FALSE, not TRUE.
    I note that you are using TRUE for the 4th argument, which means that you must sort the left column and cannot use wildcard characters (which I see you trying to put into your lookup value). I would suggest some time researching the behavior controlled by the 4th argument. My guess is that you want this argument to be FALSE instead of TRUE.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    06-21-2016
    Location
    Houston,Texas
    MS-Off Ver
    2013, newest version
    Posts
    9

    Re: Vlookup not returning correct values

    Date Charge Notes Property Result of Formula
    42533 10 NORTHWEST 0919192 =VLOOKUP(C2&"*", Sheet1!A2:B15,2,TRUE) 689-200
    42534 10 SMALL1560201 =VLOOKUP(C3&"*", Sheet1!A3:B16,2,TRUE) 688-550
    42535 10 SH292932 =VLOOKUP(C4&"*", Sheet1!A4:B17,2,TRUE) 689-200
    42536 10 SOL2593226 =VLOOKUP(C5&"*", Sheet1!A5:B18,2,TRUE) 689-200
    42537 10 MAR261426 =VLOOKUP(C6&"*", Sheet1!A6:B19,2,TRUE) 689-199
    42538 10 252621 HELLEN S =VLOOKUP(C7&"*", Sheet1!A7:B20,2,TRUE) # N/A
    42539 10 BRUN2516226 =VLOOKUP(C8&"*", Sheet1!A8:B21,2,TRUE) #N/A
    42540 10 1516263SOLUTIONS =VLOOKUP(C9&"*", Sheet1!A9:B22,2,TRUE) #N/A
    42541 10 CHRY 162265 =VLOOKUP(C10&"*", Sheet1!A10:B23,2,TRUE) 689-120
    42542 10 SECURE CORP 2516246 =VLOOKUP(C11&"*", Sheet1!A11:B24,2,TRUE) 689-200
    42543 10 AAA 516265 =VLOOKUP(C12&"*", Sheet1!A12:B25,2,TRUE) 689-120
    42544 10 NET151621 =VLOOKUP(C13&"*", Sheet1!A13:B26,2,TRUE) 689-200
    42545 10 INSTAN 156265 =VLOOKUP(C14&"*", Sheet1!A14:B27,2,TRUE) #N/A
    42546 10 MGMT 14161516 =VLOOKUP(C15&"*", Sheet1!A15:B28,2,TRUE) 689-200

  5. #5
    Registered User
    Join Date
    06-21-2016
    Location
    Houston,Texas
    MS-Off Ver
    2013, newest version
    Posts
    9

    Re: Vlookup not returning correct values

    Notes include part of the tenant name but not entire name

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Vlookup not returning correct values

    Try changing TRUE to FALSE
    And locking the lookup range with $

    =VLOOKUP(C2&"*", Sheet1!A$2:B$15,2,FALSE)

  7. #7
    Registered User
    Join Date
    06-21-2016
    Location
    Houston,Texas
    MS-Off Ver
    2013, newest version
    Posts
    9

    Re: Vlookup not returning correct values

    When changing true to false I only receive the #NA message... I also delete the wildcard when changing to false

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Vlookup not returning correct values

    KEEP the wildcard, use FALSE.

  9. #9
    Registered User
    Join Date
    06-21-2016
    Location
    Houston,Texas
    MS-Off Ver
    2013, newest version
    Posts
    9

    Re: Vlookup not returning correct values

    Also did this, but continue to get the N/a

  10. #10
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Vlookup not returning correct values

    Can you attach a sample workbook?

  11. #11
    Registered User
    Join Date
    06-21-2016
    Location
    Houston,Texas
    MS-Off Ver
    2013, newest version
    Posts
    9

    Re: Vlookup not returning correct values

    I am trying to add an attachment.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    06-21-2016
    Location
    Houston,Texas
    MS-Off Ver
    2013, newest version
    Posts
    9

    Re: Vlookup not returning correct values

    The actual notes have a bit more to them but sensitive information

  13. #13
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Vlookup not returning correct values

    We need to see the lookup table as well ('H:\Accounting\Jacob Jennings\[Copy of Tenant Lookup List 2016 - JAKE.xlsx]Sort- Pay From'!$A$2:$C$1963)

    Can you copy that into another sheet on the same book, and write your formula referring to that.

  14. #14
    Registered User
    Join Date
    06-21-2016
    Location
    Houston,Texas
    MS-Off Ver
    2013, newest version
    Posts
    9

    Re: Vlookup not returning correct values

    Sheet four is the tenant look up list

  15. #15
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Vlookup not returning correct values

    It doesn't appear to be

    You have in T2 on Sheet3
    =VLOOKUP(G2&"*",'H:\Accounting\Jacob Jennings\[Copy of Tenant Lookup List 2016 - JAKE.xlsx]Sort- Pay From'!$A$2:$C$1963,2,FALSE)

    I put this in U2
    =VLOOKUP(G2&"*",Sheet4!$A$2:$C$1963,2,FALSE)

    I don't get the same results you have from the original formula in U.
    I get nothing but #N/A.

  16. #16
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Vlookup not returning correct values

    ok, so looking at the data (forget the formula for now..)

    Sheet3!G2 = "WIRE IN GGT GUARDIAN"

    Which cell on Sheet4 is that supposed to be a match with ?

+ 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 returning all correct values except the first.
    By K.J.Dub in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-02-2012, 01:05 PM
  2. VLOOKUP not returning the correct value in cell
    By RyanEAS in forum Excel General
    Replies: 5
    Last Post: 03-07-2012, 02:05 PM
  3. VLOOKUP not returning correct results
    By Lea724 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-22-2011, 02:38 AM
  4. vlookup not returning correct reply
    By Obfuscated in forum Excel General
    Replies: 2
    Last Post: 02-15-2009, 12:37 PM
  5. VLOOKUP not returning correct answer
    By Alan Davies in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-10-2006, 10:40 AM
  6. VLOOKUP not returning correct value
    By leigh in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-13-2005, 08:05 AM
  7. [SOLVED] Vlookup not returning correct value
    By Mandy Brookes in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-26-2005, 09:06 AM

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