+ Reply to Thread
Results 1 to 4 of 4

Clean function combined with VLOOKUP

  1. #1
    Registered User
    Join Date
    02-23-2008
    Posts
    5

    Clean function combined with VLOOKUP

    I've never used the CLEAN function combined in a VLOOKUP - but I will need to today!

    =VLOOKUP(J17,Table,2,FALSE)

    I am getting and error of #N/A for my Vlookup formula and the reason is that J17 is a Vlookup and the format is different. So basically I would like to clean J17 and continue on with the VLookup as is.

    =VLOOKUP(CLEAN(J17,Table,2,FALSE) is not working. I'm assuming that I need to tell "clean" what to clean, but how?

    Thanks a lot!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Clean function combined with VLOOKUP

    What are the two strings that are mismatched? Can you show us in a sample workbook the problematic data vs search string?

    Click GO ADVANCED and use the paperclip icon to post up a copy of your workbook.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-23-2008
    Posts
    5

    Re: Clean function combined with VLOOKUP

    I'm not sure that I understand the question...

    Basically I want to lookup 2011 performance ratings in J17. J17 is an SAP report. Table is the performance table so S=100%

    Vlookup(Performance rating-J17-"S",Performance table-"S" column 1 and 100% in Column 2, 2-100%, FALSE)

    I think the SAP data is the issue. If I copy and paste an S, my Vlookup function works.

  4. #4
    Registered User
    Join Date
    07-07-2009
    Location
    Orange County, California
    MS-Off Ver
    Microsoft 365; Excel 2010
    Posts
    40

    Re: Clean function combined with VLOOKUP

    Nathalie
    check your criteria vs. your download data. based on your comment, i think your data has "differen" value than your criteria. sometime it has extra space(s) in your SAP data. Try function "Trim" or "abs" at J17.

+ 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