+ Reply to Thread
Results 1 to 2 of 2

IF statements to find certain text and exclude certain text

  1. #1
    Registered User
    Join Date
    06-18-2014
    Location
    Colorado, USA
    MS-Off Ver
    2010
    Posts
    1

    IF statements to find certain text and exclude certain text

    Hello,

    I'm trying to set up a dashboard with a table and some formulas so that I can just copy a data export into one tab and have the table perform various Vlookups, charts, etc. The trouble I'm having is that some of my cells contain a mix of text, and I'm looking for specific text only. Example:

    Address | Tags | Result
    Email 1 |t1 t2 t3 t4 | Email 1
    Email 2 |t1
    Email 3 |t2 impact1 | Email 3
    Email 4 |impact2
    Email 5 |impact2 t2 | Email 5

    My data source has thousands of rows, and I'm looking at the Tags column. I want to use a Vlookup that gives me the email when [Tags] contains "t2", but my search is getting confused with "impact2". Is there a formula to search for "t2", but not get confused with "impact2"? I considered using =NOT, but I don't want to exclude cells just because they contain "impact2". If there was a formula for =IGNORE, that would be marvelous. Does anyone have a suggestion for this? My formulas are getting longer & longer, but they always seem to break in the end.

    Basically I'm trying something like:

    =IF(OR(ISNUMBER(SEARCH("* t2*",Table1[Tags])),SEARCH("t2*",Table1[Tags])),"Yes","No")

    (Once I get the IF figured out, I'll use Vlookup to bring out the Address).

    Thanks!

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: IF statements to find certain text and exclude certain text

    Can you use TextToColumns to clean up the data before applying logic? I tend to find that is easier than developing complex logic to do it myself.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

+ 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] Find partial text string within another text string return original text into cell.
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-17-2013, 02:58 PM
  2. [SOLVED] Nested IF statements to FIND text string and return set values.
    By stuartm4h in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-12-2013, 12:03 PM
  3. Replies: 3
    Last Post: 12-18-2012, 07:19 PM
  4. Sumif (?) to exclude colored text
    By slinkymaster in forum Excel General
    Replies: 1
    Last Post: 01-19-2012, 08:54 AM
  5. Exclude text box from copy code
    By TrafficGuy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-07-2008, 05:33 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