+ Reply to Thread
Results 1 to 4 of 4

Find

  1. #1
    Registered User
    Join Date
    01-15-2010
    Location
    VA, USA
    MS-Off Ver
    Excel 2003
    Posts
    26

    Find

    I am trying to automate this huge query that has a description field. In it it will say something like this:
    TIP
    TIP-MID
    TIP MIDDLE
    BUTT MIDDLE
    BUT
    BUTT-MID
    BUTT MID
    Each line is a different example. How can I get this to distinguish between TIP and TIP-MID or any of those varieties. Sometimes the same cell will have:
    TIP, TIP-MID
    BUTT, TIP, TIP MIDDLE
    Pretty much any combination you can think of. I need it to pick up each one and distinguish between TIP and TIP MIDDLE etc since the FIND function only searches for the word I can't figure out how to adjust.

    edit: Here are some more exact examples.

    AD AB BROKEN TIP AND TIP-MID,RCVD W/CASE AND SACK
    AD AC BROKEN BUTT AND BUTT-MID,RCVD ROD ONLY
    AD AC BROKEN TIP-MID AND BUTT-MID,RCVD W/CASE
    AC BROKEN TIP MIDDLE AND TIP AND BUTT-MID

    Thanks in advance.
    Last edited by vthokie2010; 01-15-2010 at 10:37 AM. Reason: more exact examples

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: help with find

    What kind of result are you looking for?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-15-2010
    Location
    VA, USA
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: help with find

    I want to look in the description and return the specific component TIP, TIP-MID, BUTT, BUTT-MID.
    I have it set up like this right now
    =IF(ISERROR(FIND("TIP",G3535)), 0, 50)
    returns 50 if it finds TIP 0 if unable to match. Only problem it is will give me 50 if it says TIP-MID. I have another cell that would catch the TIP-MID and return 75. If it only has TIP-MID it should only catch the 75 not the 75 and 50. Also if it has TIP and TIP-MID I need it to catch both the 50 in one cell and 75 in the other.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: help with find

    Maybe something like?

    =IF(ISNUMBER(SEARCH("TIP",A1)),IF(ISNUMBER(SEARCH("TIP-MID",A1)),0,60),0)


    replace A1 with appropriate cell reference

+ 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