+ Reply to Thread
Results 1 to 5 of 5

Matching a specific cell value in column B then return info from column C

  1. #1
    Registered User
    Join Date
    11-26-2012
    Location
    USA
    MS-Off Ver
    Excek 2010
    Posts
    7

    Matching a specific cell value in column B then return info from column C

    Sorry I didn’t know how to word this question and I don’t think it does my real problem justice
    In any case here is what I want to do. Pretend this is what my spreadsheet shows

    excel q.png

    I want to create a formula in cell A1 that says something like this: if the value of cell b1 = a cell value in column C then return the value of column D in the equivalent row of the matched cell.
    So if we were to put this formula in cell a1 it would display the result “Green” because the value 1 in cell B1 matches cell C6, therefore it displays the value of cell d6: green
    I also need this formula to not get hung up on duplicates. In column C you will notice two fields contain the number 7 and two fields contain the number 6. Column D will always contain the exact same thing for each respective number in the same row (column C has a 7 the cell in column D for the same row will always be exactly “yellow”.)
    The reason I need a formula like this is because I am getting two separate excel sheets each week. The first sheet shows me contract numbers and the customers that are using those contracts but this sheet does not show me the type/category of each contract. The second sheet shows a list of contract numbers as well as the type/category of each contract. Unfortunately I can’t just sort the two lists in ascending order and copy and paste accordingly because my first sheet contains an exceedingly greater number of contracts than the 2nd sheet.
    I need a formula that will find the matches and then return the value of what “type” that contract is
    NOTE: I was thinking I could copy and paste information from the second sheet onto the first sheet so just use my picture as the circumstances surrounding this situation.

  2. #2
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Matching a specific cell value in column B then return info from column C

    Madmortagan68, welcome to the forum.

    As you've gone to the effort of putting a workbook together, why don't you upload it, instead of a picture of it?
    Brendan.


    __________________________________________________________________________________________________
    Things to consider:

    1) You can thank any poster by clicking the * at the left of a helpful post.
    2) You can help to keep the forum tidy by marking your thread as "Solved", if it has been answered to your satisfaction.
    3) Help us to help you, by uploading a sample workbook, showing the type of data you're dealing with, and clearly indicating what the results should be.

  3. #3
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Matching a specific cell value in column B then return info from column C

    Try this:

    =IFERROR(VLOOKUP(B1,$C$1:$D$7,2,0),"No Match")

    - Moo

  4. #4
    Registered User
    Join Date
    11-26-2012
    Location
    USA
    MS-Off Ver
    Excek 2010
    Posts
    7

    Re: Matching a specific cell value in column B then return info from column C

    Hey thanks moo that works. Your response triggered a memory of a formula I used a while back. It uses INDEX instead of VLOOKUP in this case the formula would be


    =IFERROR(INDEX(D$1:D$7,MATCH(B1,C$1:C$7,0)),"no match")


    if not for reply I would never have remembered this.

    Thank you

  5. #5
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Matching a specific cell value in column B then return info from column C

    You're welcome, Madmortagan68. Glad I could help!

    - Moo

    - - - - - - - - - -
    If you are satisfied with the solution(s) provided, please mark the thread as [SOLVED] by clicking on the words 'Thread Tools' above your 1st post in this thread. Then select 'Mark Thread as Solved'.

    Also, a good way to 'Say thanks' to those who have helped is to click on the star below their name in one of their posts. It's always appreciated.

+ 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