+ Reply to Thread
Results 1 to 3 of 3

Identify a part of a string in one column and return the entry in the neighboring column?

  1. #1
    Registered User
    Join Date
    02-28-2014
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    1

    Identify a part of a string in one column and return the entry in the neighboring column?

    I have a spreadsheet of several thousand named items (in column B) with values associated with them in column A). The "name" field is a string of several alternative names for the item.

    I have a list of ~50 items that I am trying to find the values for. Each uses one of the alternate names.

    What I want is a function that will return the associated value in column A when one of my shortlist names is found.

    For example, my big spreadsheet looks like:

    A B
    1 dallas, DFW. 12345
    2 Atlanta, ATL, 23456
    3 Boston, BOS, 34567
    4 Chicago, CHI, 45678
    5 Los Angles, LA, LAX, 56789

    And my list looks like

    Atlanta
    CHI

    I want the output to look something like:

    Atlanta 2
    CHI 4

    Is the feasible? IT seems like there should be a way to do it....

    Thanks in advance

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Identify a part of a string in one column and return the entry in the neighboring colu

    Hello klenow,

    Welcome to the forum!
    Assuming the shortnames are in column D starting in row 2, use this formula in cell E2 and copy down:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Identify a part of a string in one column and return the entry in the neighboring colu

    =SUMPRODUCT((ISNUMBER(SEARCH("*"&B11&"*",$B$1:$B$5)))*($A$1:$A$5))

    Where B11 is what you're searching for. This only works if you are trying to pull back a number.

    @Tiger, how did you get that to work?


    Edit: I apparently can't spell Atlanta
    Last edited by daffodil11; 02-28-2014 at 08:07 PM.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was 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. Replies: 1
    Last Post: 11-13-2013, 04:03 PM
  2. Replies: 4
    Last Post: 03-04-2013, 01:41 AM
  3. Replies: 3
    Last Post: 10-03-2012, 03:09 AM
  4. Replies: 5
    Last Post: 01-18-2012, 08:33 AM
  5. Replies: 4
    Last Post: 10-03-2005, 12:05 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