+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting

  1. #1
    Registered User
    Join Date
    01-30-2018
    Location
    Here
    MS-Off Ver
    2013
    Posts
    4

    Conditional Formatting

    Hi, I'm looking to highlight a row from 1 value to the next value.

    Below is what I'd like to happen. I basically need to see when certain jobs are On and would like the time range that they are on to be highlighted green. Until I enter an OFF, in which it were to turn red.

    Any help is appreciated.

    2018-01-30_10-53-44.jpg

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Conditional Formatting

    Can you post a file, desensitise it if necessary.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    01-30-2018
    Location
    Here
    MS-Off Ver
    2013
    Posts
    4

    Re: Conditional Formatting

    I think it's attached
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Conditional Formatting

    1. So the grid should be unaffected until an "On" is encountered then that cell and every cell on that row onwards should be green until an Off is encountered. The off cell should be red but everything behind that Off cell on that row should be blank ?

    2. Will there only ever be one occurrance of "On..." followed by "off" on each row?

  5. #5
    Registered User
    Join Date
    01-30-2018
    Location
    Here
    MS-Off Ver
    2013
    Posts
    4

    Re: Conditional Formatting

    Correct, please

  6. #6
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Conditional Formatting

    This should work

    Condtional Formatting, 2 formulas required

    Clear out any existing colours
    Select E3:BL13

    First formula
    =AND(SUMPRODUCT(--(LEFT($E3:E3,2)="On"))=1,SUMPRODUCT(--(LEFT($E3:E3,3)="Off"))=0)
    format as green
    This formula essentially says given a cell in the range E3:BL13
    colour this cell green ONLY if there is an "On" to the left of this cell but there is no "Off" to go with it.
    (If there is an "On" and an "Off" then we are past the range to be coloured so no colour change.

    Second formula
    =(F5="Off")
    format as red

    If you have multiple On Offs on a row for each year then adjust the formula for where the year starts and ends, e.g. 2017 columns E to P, 2018 columns Q to AB etc

  7. #7
    Registered User
    Join Date
    01-30-2018
    Location
    Here
    MS-Off Ver
    2013
    Posts
    4

    Re: Conditional Formatting

    it worked other than the red, so i changed it around a bit. thank you very much for the 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. [SOLVED] Override conditional formatting (in general, without changing the conditional formatting)
    By Stormin' in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-21-2017, 07:15 AM
  2. Replies: 1
    Last Post: 12-08-2016, 03:14 PM
  3. Conditional Formatting Removing Previous Conditional Formatting?
    By CravingGod in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2016, 01:02 PM
  4. Replies: 6
    Last Post: 01-08-2016, 06:44 PM
  5. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  6. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  7. Replies: 3
    Last Post: 05-15-2012, 04:13 PM

Tags for this Thread

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