+ Reply to Thread
Results 1 to 3 of 3

Classifying entries

  1. #1
    Registered User
    Join Date
    04-27-2012
    Location
    Palo Alto
    MS-Off Ver
    Office 2011
    Posts
    1

    Classifying entries

    Hello All,

    I am trying to find a way to classify a budget where each item has a description that is a complex string with a key term in it.

    I am trying to find a way to search each description for a key term (there is only at most 1 term per description) and based on that term automatically fill in two other cells that correspond to classifications. For instance a budget item would be "amazon web service transaction#31748109 account #784109721" in one cell (however the name would not always appear at the beginning) and I would want it to find amazon web service and match that to the entries "online" and "amazon" in two other cells. I have been told the way to do this is using an array but I have not yet succeeded using one.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Classifying entries

    Hi Henryrrjames....

    Welcome to the forum.

    I believe Lookup functions can help here.. but before that I would like to see the sample workbook.. please upload. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Classifying entries

    Assuming:

    1) The strings are in column A
    2) You have a lookup table with your search strings in H1:H3 and return values in I1:I3 and J1:J3

    3) Put this first formula in B2, then copy down as needed and across to column C

    =LOOKUP(2, 1/(ISNUMBER(SEARCH($H$1:$H$3, $A2))), I$1:I$3)
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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