+ Reply to Thread
Results 1 to 7 of 7

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

  1. #1
    Forum Contributor
    Join Date
    04-28-2004
    Location
    Norwich, England
    MS-Off Ver
    2010
    Posts
    119

    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 Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    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?
    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.

  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
    Please Login or Register  to view this content.
    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
    Norwich, England
    MS-Off Ver
    2010
    Posts
    119

    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 Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

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

    Then I guess you got your answer....

  6. #6
    Registered User
    Join Date
    06-27-2012
    Location
    Darwin
    MS-Off Ver
    Excel 2003
    Posts
    1

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

    Thank You Thank you

  7. #7
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

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

    Hi

    I would also wrap the index & match in the IFERROR to trap errors.

+ 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