+ Reply to Thread
Results 1 to 6 of 6

Get LOOKUP() Function To Only Look Up Exact Values

Hybrid View

JonnyBoy333 Get LOOKUP() Function To Only... 10-20-2011, 06:14 PM
ConneXionLost Re: Get LOOKUP() Function To... 10-20-2011, 06:20 PM
ConneXionLost Re: Get LOOKUP() Function To... 10-20-2011, 06:25 PM
JonnyBoy333 Re: Get LOOKUP() Function To... 10-21-2011, 03:05 PM
ConneXionLost Re: Get LOOKUP() Function To... 10-21-2011, 03:17 PM
JonnyBoy333 Re: Get LOOKUP() Function To... 10-21-2011, 03:46 PM
  1. #1
    Registered User
    Join Date
    05-27-2008
    Posts
    28

    Get LOOKUP() Function To Only Look Up Exact Values

    I've been using the LOOKUP() function and like it a lot only it has one feature I don't want. This one:

    If the Lookup function can not find an exact match, it chooses the largest value in the lookup_range that is less than or equal to the value.
    As I am working with text string instead of numbers this has resulted in a number of incorrect values being returned. I would like it if it could not find an exact match it would just return an error or say "0", and not try to find a close match. Anyone know a fix for this?
    Last edited by JonnyBoy333; 10-21-2011 at 03:46 PM.

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Get LOOKUP() Function To Only Look Up Exact Values

    If you use a "0" or "FALSE" as the range_lookup value, it will return NA# if there is no exact match.

    Edit - Oops, just noticed you wrote LOOKUP instead of VLOOKUP. Sorry!
    Last edited by ConneXionLost; 10-20-2011 at 06:21 PM. Reason: misread
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Get LOOKUP() Function To Only Look Up Exact Values

    Along those lines... Have you tried VLOOKUP or INDEX/MATCH?

  4. #4
    Registered User
    Join Date
    05-27-2008
    Posts
    28

    Re: Get LOOKUP() Function To Only Look Up Exact Values

    I have not, could you explain how you would use those in my situation?

    I attached an example worksheet. The green cells are the one's that need to be filled by searching the 'Imported' sheet for the right sku # and returning the corresponding upc #. If it can't find the right number it should return an error, not the nearest value.
    Attached Files Attached Files

  5. #5
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Get LOOKUP() Function To Only Look Up Exact Values

    In cell B2 of the Main tab, paste:

    =VLOOKUP(A2,Imported!$A$2:$B$9,2,0)
    then copy autofill down.

    Cheers,

  6. #6
    Registered User
    Join Date
    05-27-2008
    Posts
    28

    Re: Get LOOKUP() Function To Only Look Up Exact Values

    Money, that's what that is. Points for you.

+ 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