+ Reply to Thread
Results 1 to 9 of 9

Find Value in index and return adjacent cell

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Find Value in index and return adjacent cell

    I am in desperate need of assistance with a formula, I have looked through similar posts to try and solve my problem but none are working the way I need it to.

    I have a list of values in A and B (B won't matter for formula just a related value to A, A may have same value duplicated with different B)... I also have a list of the same type of values that are in A in E and a related value to E in F. I need C to return a value of the F column next to the matching A and E column.

    I have attached a sample of what I'm trying to do.
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Find Value in index and return adjacent cell

    Try this in C2 and filled down

    =INDEX($F$2:$F$50,MATCH(A2,$E$2:$E$50,0))

  3. #3
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Find Value in index and return adjacent cell

    Put this formula in C2
    =IF(A2=E2,F2,"")
    and paste it through the table

    Disregard mine ...It's rubbish
    Elegant Simplicity............. Not Always

  4. #4
    Registered User
    Join Date
    04-09-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Find Value in index and return adjacent cell

    Quote Originally Posted by Jonmo1 View Post
    Try this in C2 and filled down

    =INDEX($F$2:$F$50,MATCH(A2,$E$2:$E$50,0))
    Thanks for the prompt reply. That didn't work, I am getting different result in C for the same A cells... Example, A6-12 are the same but have C results of 2,3, and 4.

  5. #5
    Registered User
    Join Date
    04-09-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Find Value in index and return adjacent cell

    Quote Originally Posted by AndyLitch View Post
    Put this formula in C2
    =IF(A2=E2,F2,"")
    and paste it through the table

    Disregard mine ...It's rubbish
    That one only works if they match up line for line which the A list is much longer because A could be duplicated with a different B but should get the same F. Thanks though.

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Find Value in index and return adjacent cell

    Quote Originally Posted by t2tommy View Post
    Thanks for the prompt reply. That didn't work, I am getting different result in C for the same A cells... Example, A6-12 are the same but have C results of 2,3, and 4.
    I don't know, works for me.
    Book2(1).xlsx

    Can you repost the book while it is returning those incorrect results?

  7. #7
    Registered User
    Join Date
    04-09-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Find Value in index and return adjacent cell

    Quote Originally Posted by Jonmo1 View Post
    I don't know, works for me.

    Can you repost the book while it is returning those incorrect results?
    You're amazing! I dont know what it was but I reopened and tried again and it worked that time! Thank you so much!

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Find Value in index and return adjacent cell

    Great, glad to help.

  9. #9
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Find Value in index and return adjacent cell

    This seems to work.




    Please Login or Register  to view this content.

+ 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