+ Reply to Thread
Results 1 to 12 of 12

Conditional Formatting Question

  1. #1
    Registered User
    Join Date
    04-25-2017
    Location
    NYC
    MS-Off Ver
    2013
    Posts
    14

    Conditional Formatting Question

    How would I go about using conditional formatting to highlight a row a certain color if a certain cell in that row contains any text other than the word "batch"?

    Thank you!
    Attached Files Attached Files
    Last edited by snwbrdr19; 07-17-2017 at 01:46 PM.

  2. #2
    Registered User
    Join Date
    04-25-2017
    Location
    NYC
    MS-Off Ver
    2013
    Posts
    14

    Re: Conditional Formatting Question

    I've included an attachment here with an example of what I'm trying to do
    Attached Files Attached Files

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Conditional Formatting Question

    edit: wrong reply
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Conditional Formatting Question

    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =$E2<>"Batch"
    adjust $E3 to suite the column

  5. #5
    Registered User
    Join Date
    04-25-2017
    Location
    NYC
    MS-Off Ver
    2013
    Posts
    14

    Re: Conditional Formatting Question

    Quote Originally Posted by FDibbins View Post
    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =$E2<>"Batch"
    adjust $E3 to suite the column

    Thanks for your response! What you suggested works to a certain extent. How should I adjust your formula so that it will work if there are other words/numbers within the same cell as the word "Batch"?

    For example: the conditional formatting works correctly when the cell simply has "Batch" in it. It does not work, however, if "Batch 2.6 one" is in it.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Conditional Formatting Question

    Following the procedure that FDibbins uses in post #4 substitute the following formula in step #4:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Conditional Formatting Question

    Thanks for the feedback, and Jet, thanks for the assist

    Another option...
    =ISERROR(SEARCH("batch",$E2))

  8. #8
    Registered User
    Join Date
    04-25-2017
    Location
    NYC
    MS-Off Ver
    2013
    Posts
    14

    Re: Conditional Formatting Question

    Quote Originally Posted by FDibbins View Post
    Thanks for the feedback, and Jet, thanks for the assist

    Another option...
    =ISERROR(SEARCH("batch",$E2))
    Is there a way to alter the formula so that it won't highlight that row if E2 is empty?

    Thank you!

  9. #9
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Conditional Formatting Question

    Try

    =AND($E2<>"",ISERROR(SEARCH("batch",$E2)))

  10. #10
    Registered User
    Join Date
    04-25-2017
    Location
    NYC
    MS-Off Ver
    2013
    Posts
    14

    Re: Conditional Formatting Question

    Fantastic! It works perfectly.

    Falcondude, Fdibbens, Jetemc, your help is much appreciated!

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Conditional Formatting Question

    63 thanks for the assist

    Happy to help

  12. #12
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Conditional Formatting Question

    Glad to help!

+ 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. Conditional Formatting Question
    By kriscons in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-19-2017, 10:28 AM
  2. [SOLVED] Conditional formatting question
    By Royser12345 in forum Excel General
    Replies: 9
    Last Post: 09-14-2014, 08:56 AM
  3. Conditional formatting question
    By newayblue in forum Excel General
    Replies: 2
    Last Post: 06-19-2007, 05:21 AM
  4. Conditional formatting question
    By Aussie_Striker in forum Excel General
    Replies: 10
    Last Post: 11-19-2006, 07:02 AM
  5. Conditional Formatting Question
    By JEE in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-18-2006, 04:58 AM
  6. [SOLVED] Conditional formatting question
    By Carl Imthurn in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  7. Conditional formatting question
    By Carl Imthurn in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10: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