+ Reply to Thread
Results 1 to 9 of 9

Integers and VLOOKUP function

  1. #1
    Registered User
    Join Date
    11-07-2009
    Location
    Weston super Mare, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Integers and VLOOKUP function

    I have excel 2003 and am having problems with integers on the lookup function.
    I have to compare two lists of approx 33,000 values, some text and some integers. The lists have have all been formated as text, but when I use the lookup function, all number only part numbers don't find their match.
    What can I do?

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Integers and VLOOKUP function

    Please upload part of that list and we'll make it work.

    We have to have your cell settings for the best results.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

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

    Re: Integers and VLOOKUP function

    Try selecting the lookup column and go to Data|Text to Columns and click Finish.
    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.

  4. #4
    Registered User
    Join Date
    11-07-2009
    Location
    Weston super Mare, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Integers and VLOOKUP function

    Thank you for your suggestions. I have tried the Data Text to Columns and that gets rid of the little green triangle at the top left of the cells but still the overall function doesn't work on integers. I can start a new workbook and type the numbers 1 to 10 and use the function and everything works fine but the spreadsheets I use come from someone else electronically. Would that make a difference?

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

    Re: Integers and VLOOKUP function

    As Ricardo suggested, loading a sample workbook would speed up this process..

  6. #6
    Registered User
    Join Date
    11-07-2009
    Location
    Weston super Mare, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Integers and VLOOKUP function

    Here is the sample file.
    Attached Files Attached Files

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

    Re: Integers and VLOOKUP function

    As soon as I did the Data|Text to Columns trick on Column A I got results in column E (except for those one in the bottom half that truly have no match).

  8. #8
    Registered User
    Join Date
    11-07-2009
    Location
    Weston super Mare, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Integers and VLOOKUP function

    I must be going mad!!
    I tried the data text again and it worked for me this time, but it didn't the first time.
    Anyway, thank you both for your input. Makes life a lot easier for me!

  9. #9
    Registered User
    Join Date
    12-09-2009
    Location
    Rapid City, SD
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Integers and VLOOKUP function

    if column 'A' integer and column 'C' text - =VLOOKUP(TEXT(A1,"#"),$C$1:$D$5,2,0)
    if colum 'C' text and column 'A' integer - '=VLOOKUP(VALUE(C1),$A$1:$B$5,2,0)

+ 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