+ Reply to Thread
Results 1 to 10 of 10

Conditional Formatting to highlight one row based on *text* in other cells

  1. #1
    Registered User
    Join Date
    02-01-2016
    Location
    Evesham, England
    MS-Off Ver
    365
    Posts
    43

    Conditional Formatting to highlight one row based on *text* in other cells

    I've been trying to create a simple formula that will highlight cells in one row if some text appears in another cell. I've tried all sorts of variations but it simply will not work and yet I have other rules on my spreadsheet that are exactly the same and DO work. I'm at a total loss. I do wonder if the " on my keyboard is perhaps not recognised? But it looks the same on screen. So here is what I'm trying to achieve:

    Highlight cells B41 - K41 in orange if cells Z2 or Z3 contain the words shipping label. There could be other text surround 'shipping label' but it's only those two words I'm looking for.

    I started by highlighting cells B41-K41 ensuring that B41 is the active cell. I created a new rule with this formula: =SEARCH("*shipping label*",$Z$2:$Z$3). I've also tried various other options just on one cell (B41) such as =SEARCH("*shipping label*",Z2) and even with a MATCH but I cannot get it to work. I also applied the search to the entire spreadsheet in the hope it would find it somewhere but to no avail.

    I have that exact formula elsewhere on the spreadsheet for different text and a different colour and it works perfectly every time so I'm stumped!

    Please could someone tell me what I'm doing wrong?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,217

    Re: Conditional Formatting to highlight one row based on *text* in other cells

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. The sample layout accurately matches that of your real data. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Conditional Formatting to highlight one row based on *text* in other cells

    Might be easier to use COUNTIF in your Rule, like this:

    =COUNTIF($Z$2:$Z$3,"*shipping label*")

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    02-01-2016
    Location
    Evesham, England
    MS-Off Ver
    365
    Posts
    43

    Re: Conditional Formatting to highlight one row based on *text* in other cells

    Update: it works! I changed where I was putting the shipping label note to a different cell just to start over and your solution now works! Thank you so much. I have no idea why the other one didn't as I have several variations of it already elsewhere on the spreadsheet and they all work perfectly. Thank you
    Last edited by SeoulGal; 04-23-2024 at 06:26 AM.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,217

    Re: Conditional Formatting to highlight one row based on *text* in other cells

    Could you please do as I have asked?

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,217

    Re: Conditional Formatting to highlight one row based on *text* in other cells

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  7. #7
    Registered User
    Join Date
    02-01-2016
    Location
    Evesham, England
    MS-Off Ver
    365
    Posts
    43

    Re: Conditional Formatting to highlight one row based on *text* in other cells

    There was no need for a spreadsheet as it was just a simple formula.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,217

    Re: Conditional Formatting to highlight one row based on *text* in other cells

    There might have been - and initially, you said that the simple formula wasn't working (which is what I was replying to - it could easily have been an issue with the actual data - extra spaces, etc. - it happens).

    Please mark the thread as solved.

  9. #9
    Registered User
    Join Date
    02-01-2016
    Location
    Evesham, England
    MS-Off Ver
    365
    Posts
    43

    Re: Conditional Formatting to highlight one row based on *text* in other cells

    I believe I have marked it as solved. I also clicked the reputation star next to the person who kindly provided the solution. Hopefully it's all updated now.

  10. #10
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Conditional Formatting to highlight one row based on *text* in other cells

    Yes, thanks for the rep - I've been out all day.

    Pete

+ 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] Conditional formatting, highlight cells based on time
    By Kayz0220 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-06-2023, 07:44 PM
  2. Replies: 10
    Last Post: 12-29-2021, 05:09 PM
  3. Conditional Formatting to Highlight Cells based on specific
    By JaoMagbanua in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-04-2021, 04:18 AM
  4. [SOLVED] Conditional Formatting based on other cells highlight
    By WaveWalker116 in forum Excel General
    Replies: 3
    Last Post: 11-20-2020, 04:51 PM
  5. Conditional formatting - highlight border based on text match
    By vill in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-27-2018, 12:04 PM
  6. [SOLVED] Conditional Formatting based on partial/specific text to highlight entire row
    By bizdevdfw in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-18-2016, 04:32 PM
  7. Conditional formatting-highlight cells text contains....
    By ERcoder in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-13-2015, 11:05 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