+ Reply to Thread
Results 1 to 3 of 3

Find text in a column or range and return value of adjacent cell

  1. #1
    Registered User
    Join Date
    03-14-2007
    Posts
    32

    Find text in a column or range and return value of adjacent cell

    Hi,
    I have a simple worksheet with two columns (see below). Column A contains text that finishes with a unique number. Is it possible to use a formula to search the text in column A for the occurrence of a specific number (say "21") and for the formula to return the contents of the adjacent cell in Column B (row 3, "you found me")?
    Row Column A Column B
    1 some text 5 bla bla
    2 more text 15 nothing to say
    3 even more text 21 you found me


    Thank you for your help.
    Steve

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Find text in a column or range and return value of adjacent cell

    Hello Steve
    If your example data was in cells A2:B4 and your lookup number, say in cell D2, then try the following formula:

    Please Login or Register  to view this content.
    Just to add an alternative you could also use VLOOKUP:

    Please Login or Register  to view this content.
    Hope this helps.
    DBY
    Last edited by DBY; 08-19-2012 at 07:20 AM. Reason: Added alternative solution

  3. #3
    Registered User
    Join Date
    03-14-2007
    Posts
    32

    Re: Find text in a column or range and return value of adjacent cell

    Excellent, thanks!

+ 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