+ Reply to Thread
Results 1 to 5 of 5

Look up of 2 columns

  1. #1
    Registered User
    Join Date
    10-22-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Look up of 2 columns

    Having real issues trying to get Column A to match with Column G... (see attached sheet)

    All I want it to do is look up the 4 digit code from column A and compare it to column G's 4 digit code...
    And bring back the corresponding address... columns G and H.


    Ie if I was searching for code 0024 it would bring back the information from column G with 0024 in it...

    Then put that information in some other cells... say L and M.

    I tried using vlookup and match commands... and it works for the first cell... but when I copy the forumla down it bugs out and does not work.

    Thanks very much for your help, I will leave rep etc for anyone that help.



    Regards,

    James
    Attached Files Attached Files
    Last edited by James404; 11-02-2012 at 09:58 AM.

  2. #2
    Forum Contributor
    Join Date
    09-13-2012
    Location
    Atlanta, USA
    MS-Off Ver
    Office 2003, 2010
    Posts
    230

    Re: Look up of 2 columns

    You're numbers are stored as special rather than text in the far left column. If you try to vlookup that, it will not work because they are different types of data. Try converting your left column to numbers, or text, or special. Just as long as they are all the same.

    If that is not an option, have a dummy series that has the information you want (the numbers) and store that as text. Then link the lookup to those cells.
    Last edited by jake.masters; 11-02-2012 at 08:55 AM.

  3. #3
    Forum Contributor
    Join Date
    09-13-2012
    Location
    Atlanta, USA
    MS-Off Ver
    Office 2003, 2010
    Posts
    230

    Re: Look up of 2 columns

    See attached file.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Look up of 2 columns

    Try this formula in row 2, say cell L2:
    =IF(ISERROR(VLOOKUP(G2+0,$A$2:$B$38,2,FALSE)),"",VLOOKUP(G2+0,$A$2:$B$38,2,FALSE))

    Copy down
    ===========
    You may have had problems because some of you data is numeric and some text. The +0 converts the text to a number
    ============
    BTW: The formula could be shortened if you used IFERROR
    Click on star (*) below if this helps

  5. #5
    Registered User
    Join Date
    10-22-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Look up of 2 columns

    Thanks to both of you!

    I used the spreadsheet jake uploaded.

    Regards, James.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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