+ Reply to Thread
Results 1 to 10 of 10

search for parts of strings in another list of strings

  1. #1
    Registered User
    Join Date
    12-16-2013
    Location
    rehovot
    MS-Off Ver
    Excel 2007
    Posts
    9

    search for parts of strings in another list of strings

    i have an excel worksheet with about 10K rows of data in column A.
    i have also another list of data, about 200 rows of data, in column G.
    i need to color each cell in column A that contains, anywere in the string, any of the data strings in column G.

    example:
    in column A
    row 1: [email protected]
    row 2: [email protected]
    row 3: [email protected]
    row 4: [email protected]

    in column G:
    row 1: help
    row 2: info
    row 3: support

    i need rows 1, 3 and 4 in column A to be colored.

    thank you in advance for your help!
    Mario

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,767

    Re: search for parts of strings in another list of strings

    In CF formula


    Place the cursor in A1 cell and select the rest of the ranges. In CF formula to determine option use the below formula

    =SUMPRODUCT(1*COUNTIF(A1,"*"&$G$1:$G$3&"*"))

    Apply the desired color.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    12-16-2013
    Location
    rehovot
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: search for parts of strings in another list of strings

    thank you for your prompt reply but it doesn't work well.
    it colours some cells in column G wile i wanted to color cells in column A.
    if there are many apperences of any of the column G strings in column A it should color all the cells containing all the apperences.
    thank you again!
    mario

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,767

    Re: search for parts of strings in another list of strings

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  5. #5
    Registered User
    Join Date
    12-16-2013
    Location
    rehovot
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: search for parts of strings in another list of strings

    here is the file.
    thank you again.
    mario
    test-ALL-6-12-13.zip

  6. #6
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,256

    Re: search for parts of strings in another list of strings

    What is going wrong with : )Sixthsense: ) formula??
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  7. #7
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,841

    Re: search for parts of strings in another list of strings

    Quote Originally Posted by marioroter View Post
    thank you for your prompt reply but it doesn't work well.
    it colours some cells in column G wile i wanted to color cells in column A.
    if there are many apperences of any of the column G strings in column A it should color all the cells containing all the apperences.
    thank you again!
    mario
    If it colors some cells in column G the you had the column G selected when you made the conditional formatting. Or you still have some old Conditional formatting there. You can select to clear all conditional formatting from the conditional formatting menu, just to be safe.
    For the workbook you posted the formula will be
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Select the data in column A (not G or C). Bring up the Conditional formating dialogue. Choose "Use a formula to determine...". Paste the above formula.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  8. #8
    Registered User
    Join Date
    12-16-2013
    Location
    rehovot
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: search for parts of strings in another list of strings

    thank you all.
    it works.
    mario

  9. #9
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: search for parts of strings in another list of strings

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  10. #10
    Registered User
    Join Date
    12-16-2013
    Location
    rehovot
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: search for parts of strings in another list of strings

    Quote Originally Posted by arlu1201 View Post
    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.

    thank you!
    i will remember that...
    mario

+ 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. 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
  2. Replies: 1
    Last Post: 08-13-2013, 08:32 AM
  3. Search For Mutltiple Text Strings In Each Cell In A List
    By kevinwhite24 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-22-2013, 02:22 PM
  4. Simple VBA Question - Search List of Strings Straight from VBA?
    By Strife in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-27-2011, 06:21 PM
  5. How to find number of pairs of strings from list of strings?
    By greg_overholt in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-27-2006, 06:45 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