+ Reply to Thread
Results 1 to 5 of 5

having trouble with LOOKUP function returning spurious results

  1. #1
    Forum Contributor
    Join Date
    09-23-2008
    Location
    Rhode Island
    MS-Off Ver
    Excel for Mac 2011 and 2007 on PC
    Posts
    265

    having trouble with LOOKUP function returning spurious results

    attached a sample file. I have column with 3 letters in each cell excerpted from using the LEFT() function on the adjacent column to right. made a lookup array that I believe contains all possible combinations of the 3 letters to be found in the list and desired text return for the function.

    But LOOKUP() returns only a few correctly. With others it picks the wrong value and others it throws an error. I checked for spaces or other problems. Obviously I haven't got something right. I tried it both with the array style formula, and the compare and return ranges listed separately with a comma separating and get the same results with both approaches.

    thanks anyone who can tell me how to attach the file so i might some help seeing what i can't.

    frustrated in exeter

    PS, i'm not sure what the attachment icon above the posting window is about. It doesn't show that i have anything attached not allow me to make attachments. i used the manage attachments below the posting window.
    Attached Files Attached Files

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

    Re: having trouble with LOOKUP function returning spurious results

    Try:
    Please Login or Register  to view this content.
    Drag down
    Quang PT

  3. #3
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    897

    Re: having trouble with LOOKUP function returning spurious results

    Hi riwiseuse,

    In cell C2 try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If your Question is answered; please mark it SOLVED. If you are happy with a member's solution, say 'Thanks' and click the 'Star' to Add Reputation.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: having trouble with LOOKUP function returning spurious results

    This works for most - no need for helper column...

    =VLOOKUP(LEFT(A2,3),$E$1:$F$12,2,0)
    copied down.

    You do not have GEN in your lookup table
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Contributor
    Join Date
    09-23-2008
    Location
    Rhode Island
    MS-Off Ver
    Excel for Mac 2011 and 2007 on PC
    Posts
    265

    Re: having trouble with LOOKUP function returning spurious results

    thanks for all the replies. i obviously don't have the flags set to send notification or i would have thanked you earlier. going to work on this.

    brian

+ 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 Returning Multiple Results
    By andrewc in forum Excel General
    Replies: 4
    Last Post: 11-05-2019, 08:49 AM
  2. COUNTA() returns spurious results with R1C1 reference
    By riwiseuse in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-28-2016, 08:31 AM
  3. Lookup returning wrong results
    By jamesliv in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-05-2014, 11:13 AM
  4. [SOLVED] Trouble with Find Error Checking: Is Nothing and Is Not Nothing returning the same results
    By k64 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2013, 09:02 PM
  5. Lookup not returning expected results
    By syphlix in forum Excel General
    Replies: 4
    Last Post: 03-08-2011, 04:16 PM
  6. Returning multiple results for one lookup value
    By Lizzietish11 in forum Excel General
    Replies: 5
    Last Post: 01-29-2009, 03:09 PM
  7. Lookup Returning Multiple Results
    By joe1182 in forum Excel General
    Replies: 4
    Last Post: 02-01-2006, 08:02 AM

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