+ Reply to Thread
Results 1 to 5 of 5

Thread: Lookup value in one column, match and return result from another column

  1. #1
    Forum Contributor
    Join Date
    04-28-2004
    Location
    Somerset, England
    MS-Off Ver
    2007
    Posts
    117

    Lookup value in one column, match and return result from another column

    Hi all, I’m sure this will be simple to some of you clever bods out there but it has stumped me!

    I’m trying to get a formula to work where I have a lot of values (many are duplicates) in Column A and I want each one to be matched to its corresponding number in column B and to return the corresponding result from column A in to the cell in column C

    It’s really hard to explain (and therefore to find an answer in a search!) – I have attached a file showing the layout and also have highlighted in yellow the expected result and in blue the ‘feeder’ cells

    I can’t sort any column other than A and I’ve had a go with lookups etc

    Very many thanks in advance

    Rae
    Attached Files Attached Files
    Last edited by raehippychick; 08-31-2011 at 02:07 AM.

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,640

    Re: Lookup value in one column, match and return result from another column

    I am not sure how you got column C? And why is the first one listed 8 times and the second 9 times and so on? Why doesn't column C start with a series of 1 or 1.0.0 for the first item in column B?
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    08-23-2011
    Location
    Exeter, England
    MS-Off Ver
    Excel 2003 (Work), 2007 (Home)
    Posts
    18

    Re: Lookup value in one column, match and return result from another column

    Does
    =INDEX(A:A,MATCH(C2,B:B,FALSE))
    do what you want?

    MATCH(C2,B:B,FALSE) tells you which row in the B column the value in C2 can be found
    INDEX(A:A,...) then returns the value in the corresponding cell in the A column
    Last edited by HenryCrun; 08-30-2011 at 10:23 AM.

  4. #4
    Forum Contributor
    Join Date
    04-28-2004
    Location
    Somerset, England
    MS-Off Ver
    2007
    Posts
    117

    Re: Lookup value in one column, match and return result from another column

    NBVC, Sorry, I’m being very blonde and stupid – the column I want the result to go in to is D not C and I have put my expected result in there

    In column C the task number could well be repeated many times as there will be other differing data (subtasks) in column E onwards

    Columns A & B are a kind of baseline set of data will always be like they are and will be used in other spreadsheets that have different task numbers which may well start 1 or 1.1 or 2.2.2 etc

    And HenryCrun, thanks ever so much that certainly seems to work
    Last edited by NBVC; 08-31-2011 at 08:11 AM. Reason: corrected spelling of my name :)

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

    Re: Lookup value in one column, match and return result from another column

    Then I guess you got your answer....
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

+ 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.2.0