+ Reply to Thread
Results 1 to 6 of 6

See if a value from column B occurs in A1 and return corresponding C-value

  1. #1
    Registered User
    Join Date
    01-21-2014
    Location
    Belgium
    MS-Off Ver
    Office 365
    Posts
    21

    See if a value from column B occurs in A1 and return corresponding C-value

    I would like to have a formula that checks if a value from column B occurs in cell A1. If it does, I want it to return the value from column C corresponding with the value from B.

    An example:
    ExampleX2.xlsx

    Kind regards and thanks in advance!
    boomcie

  2. #2
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: See if a value from column B occurs in A1 and return corresponding C-value

    VLOOKUP will do the trick

    =VLOOKUP(A2,$B$2:$C$16,2,0)
    Excel Guru in the making

    <----------If the question has been answered to your satisfication please click the Add Repuation star to the left

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: See if a value from column B occurs in A1 and return corresponding C-value

    =MATCH(A2,B$2:B$16,0)

    Some of your Output is wrong.
    Max Williams is not No. 1 in the B list, he's simply not there.
    Jan Jones and Kat Mary Richards are also not there.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: See if a value from column B occurs in A1 and return corresponding C-value

    =MATCH(A2,B$2:B$16,0)

    Some of your Output is wrong.
    Max Williams is not No. 1 in the B list, he's simply not there.
    Jan Jones and Kat Mary Richards are also not there.

  5. #5
    Registered User
    Join Date
    01-21-2014
    Location
    Belgium
    MS-Off Ver
    Office 365
    Posts
    21

    Re: See if a value from column B occurs in A1 and return corresponding C-value

    I'm trying to match in the other direction and not an exact match. So "Kat Mary" does occur in A14. I know it's somewhat unclear perhaps, but not sure how to better explain this.

  6. #6
    Registered User
    Join Date
    01-21-2014
    Location
    Belgium
    MS-Off Ver
    Office 365
    Posts
    21

    Re: See if a value from column B occurs in A1 and return corresponding C-value

    =LOOKUP(1E+100,SEARCH(B$2:B$16,A2),C:C)

    Is the formula I was looking for. Figured it out after a lot of contemplating. In my example it fails on row 11, but that's because I made my example so basic.
    Thanks for everyone who answered.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Lookup a value that occurs more than once in a column
    By Harribone in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-24-2013, 08:03 AM
  2. [SOLVED] Find.range to return True if match occurs
    By nivoe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-16-2012, 07:26 AM
  3. [SOLVED] Enter Value 2 Cells Above Another Value That Occurs Throughout Column A
    By iLookup(HELP!, here) in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-28-2012, 02:18 PM
  4. [SOLVED] Search Range and Return # of times a Text String occurs
    By Schwartz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-02-2012, 04:23 PM
  5. Replies: 2
    Last Post: 09-09-2008, 09:26 PM

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