+ Reply to Thread
Results 1 to 2 of 2

Mark cells according to multiple search strings in different tabs

  1. #1
    Registered User
    Join Date
    10-12-2017
    Location
    Austria
    MS-Off Ver
    2016
    Posts
    1

    Question Mark cells according to multiple search strings in different tabs

    Hello there,

    I have a rather complicated question regarding Excel – I am not sure if it can be solved by using MACRO or a simple formula, or if it cannot be solved at all, but I want to try anyway

    I have the following situation:
    • I have several tabs with a lot of data in it. The data in column A of each tab consists of text strings which includes (among others) document number, document type (e.g. CV) and names of people (e.g. 20.100.20 CV 2017-01-22 Masters English)
    • On a separate tab I make a list of names and document types, it looks something like this:

    Name CV PN
    Masters
    Parker

    • What I would like to do now is to mark the CV cells in this small table green if the following things are true:
    • -> in any of the other tabs of the excel sheet I can find both text strings for document type and name (e.g. “CV” and “Masters”) within the same cell in any cell of column A
    • -> if this is not true, then the cell should be marked red

    Is there a solution for this?

    Thank you and kind regards,
    nachtmahr

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Mark cells according to multiple search strings in different tabs

    Hi
    this macro is a bit clunky but should do the trick

    it assumes your names are in column 1 and documents are in row 1 of a range named "MyTable"

    it is case sensitive, and I have written it to search for " PN " not "PN" (with spaces before and after) so it doesn't return a false positive for eg "grapnel" (ie words containing "pn")
    Please Login or Register  to view this content.

+ 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. Search Multiple Strings in Multiple Cells
    By XionicFire in forum Excel General
    Replies: 9
    Last Post: 09-20-2014, 02:53 AM
  2. multiple sheet search and mark formula
    By ammy.rocks in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-03-2014, 02:36 PM
  3. excel formula to search Multiple strings in several columns and return strings
    By krratna123 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-13-2013, 11:20 AM
  4. Replies: 1
    Last Post: 08-13-2013, 08:32 AM
  5. Truncate text strings using LEFT and FIND/SEARCH for multiple search terms
    By ngdoherty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2013, 07:51 PM
  6. Replies: 5
    Last Post: 03-29-2012, 04:12 AM
  7. Search and mark a series of strings
    By ybu1106 in forum Excel General
    Replies: 10
    Last Post: 01-10-2011, 03:34 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