+ Reply to Thread
Results 1 to 8 of 8

Conditional formatting cells based on multiple cell contents

  1. #1
    Registered User
    Join Date
    12-29-2018
    Location
    North East England, UK
    MS-Off Ver
    2019
    Posts
    12

    Smile Conditional formatting cells based on multiple cell contents

    Hi,

    I'm trying to apply conditional formatting to a job tracker excel sheet I'm working on. The attached file displays one job and associated details.

    I'm using a couple of rules at the minute to change the colour of the top line of the table based on the contents of one cell (C55) This seems to work fine so far.

    It's used to highlight for attention in red, if the production week is an invalid value or blank. A valid number (1-52) provides green formatting on the top line.

    I've tried adding a third rule to change that top line once more if there is a value in S4:U4. There doesn't need to be any data checking on that, just not a blank cell.

    The third rule is where I'm struggling - I'd just like to remove any formatting from the first line and having tried butchering the previous two rules in the creation of a third, I've hit a wall.

    Admittedly my Excel skills aren't too hot - I've had help thus far in creating the formulas used in the conditional rules powering this. It might not even be the right or best way of achieving this.

    It may be worth noting that there will be many of these tables on one worksheet; likely up to 1500 or so and each with 3 conditional formatting rules applied, if I'm even going about this the right way. I don't know if there's a more efficient way of achieving this.

    I'd really appreciate any help or advice on this
    Attached Files Attached Files

  2. #2
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Conditional formatting cells based on multiple cell contents

    Try chaning the formula for the red color to

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    since S4:U4 is a merged cells range you only need to point to S4 as excel will store only data in the first cell of a merged range.

  3. #3
    Registered User
    Join Date
    12-29-2018
    Location
    North East England, UK
    MS-Off Ver
    2019
    Posts
    12

    Re: Conditional formatting cells based on multiple cell contents

    Hi Roel, thanks for your reply

    I think this only gives me two state changes on that top line - I'm looking for a third

    The sheet will be full of blank tables to start with; top line will be red as there is no valid entry in C5. Once it has a valid entry the top line turns green. Up until this point there won't be an entry in S4.
    Upon entering any value in S4 I'd like the top line to change the formatting fill colour once more to a different colour.

  4. #4
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Conditional formatting cells based on multiple cell contents

    As a secondairy solutions I also made two new red rules that will also indicate the wrong cell

    I removed the green rule, and painted the topline green by default, that is another way to reduce the number of rules
    i prefer using CF only for errormessages or specific status codes, when everything is as it supposed to be I dont use a rule to show that as in more complex sheets it might double the rules
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-29-2018
    Location
    North East England, UK
    MS-Off Ver
    2019
    Posts
    12

    Re: Conditional formatting cells based on multiple cell contents

    I appreciate your continued help

    The sheet is intended to be filled out incrementally, so different fields will be populated on different days IRL.
    The top line first once an order is received. Some days later the production week will be known and filled out. At this point it should turn the top line green on valid numeric entry
    Some days later a dispatch date will be populated and the top line should turn white or 'no fill'.

    I like that you tried to make it more efficient by starting out green but if someone sees green initially, the assumption would be that it has a production date and the respective field may not be checked.
    These conditional formats are really to save on human error. Do you think we need a third rule to achieve this?

  6. #6
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,824

    Re: Conditional formatting cells based on multiple cell contents

    Try adding this to CF and format as clear:
    (apply to $B$3:$U$3)

    =$S4<>""

    see attached.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-29-2018
    Location
    North East England, UK
    MS-Off Ver
    2019
    Posts
    12

    Re: Conditional formatting cells based on multiple cell contents

    Brilliant - that's exacly what I need!

    Thankyou Gregb11 & Roel Jongman

  8. #8
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,824

    Re: Conditional formatting cells based on multiple cell contents

    You're welcome. Thanks for the feedback and rep!

+ 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 on multiple cells based on a value ia cell
    By dhiresh in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-26-2017, 10:34 AM
  2. Replies: 7
    Last Post: 08-29-2016, 06:52 PM
  3. [SOLVED] Conditional Formatting Multiple Cells Based On Date In Other Cell
    By Gtrtim112 in forum Excel General
    Replies: 3
    Last Post: 01-03-2015, 06:18 PM
  4. Replies: 3
    Last Post: 12-14-2013, 02:52 PM
  5. Replies: 1
    Last Post: 08-20-2012, 10:36 PM
  6. Replies: 6
    Last Post: 11-25-2011, 08:41 AM
  7. Replies: 6
    Last Post: 11-21-2010, 08:55 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