+ Reply to Thread
Results 1 to 2 of 2

Search for Text String in Range

  1. #1
    Forum Contributor Webbers's Avatar
    Join Date
    09-06-2005
    Location
    Poinciana, FL
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    337

    Search for Text String in Range

    I need to search a range of 2 cells (they would be next to each other as formulas on one sheet OR not next to each other as raw data on another sheet.) for a specific text string. I would like the output to display the text string I am searching for if it is found, and if it is not found, display a blank cell. On the calcs sheet, in columns E-K, I am attempting to search for the text string that is in the header. I found something, but it is obviously not working correctly. These formulas will be entered in columns E - J (pink) on the calcs sheet. I am attaching a small sample workbook.

    Obviously all teams listed for SL and CF SL should be accounted for. Our users are supposed to make sure their SL is included in the CF SL, but they don't always. Look at item #13 (highlighted in yellow) The SL is Team 1, but the CF Service Lines are Team 2, 3 & 5. So on the calcs sheet each of those 4 teams should have their team name listed in their own column as they are listed in one of the 2 columns that is part of the range. For any records that have a blank in the CF SL Column (D), then only the SL shown in Column C should display in the coordinating column... Record #14 should display Team 1 in Column E, and Columns F-J should be blank for that record.

    Search either calcs sheet - Columns C & D
    OR data sheet - Columns B & C

    I tried many possibilities, but nothing works, and I just don't understand why. I went back to a previous file when I needed to do something similar, and that range was much larger, and it worked. But now that my range is small, it won't work. I don't get it, you would think it would be easier. The formula I use on my large previous ranges was:

    =IF(OR(SUMPRODUCT(--ISNUMBER(SEARCH(error,$A2:$P2))),SUMPRODUCT(--ISNUMBER(SEARCH(error,$R2:$AI2)))),"Human Error","")
    Attached Files Attached Files
    ~*~ Sherry ~*~
    Poinciana, FL

  2. #2
    Forum Contributor Webbers's Avatar
    Join Date
    09-06-2005
    Location
    Poinciana, FL
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    337

    Re: Search for Text String in Range

    Well, I figured it out... aside from the difference of using a table this time... I did not realize I had a named range. My corrected formula in case anyone is curious.

    =IF(OR(SUMPRODUCT(--ISNUMBER(SEARCH(E$1,$C2:$D2)))),E$1,"")
    Last edited by Webbers; 01-18-2021 at 04:02 PM.

+ 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] search and count a string of text within a range
    By tomanton in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-17-2016, 07:48 AM
  2. Search A Range For Specific Text String
    By xybadog in forum Excel Formulas & Functions
    Replies: 29
    Last Post: 01-14-2015, 07:15 AM
  3. VBA help needed to search a text string then select range.
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-03-2014, 07:53 PM
  4. [SOLVED] Using a discrete range of keywords, search a text string for match
    By Ian99 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-24-2012, 11:40 AM
  5. [SOLVED] Search Range and Return # of times a Text String occurs
    By Schwartz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-02-2012, 04:23 PM
  6. Replies: 5
    Last Post: 03-08-2012, 01:50 AM
  7. Search text string for range of text values - return match
    By crugg in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-03-2010, 09:55 AM

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