+ Reply to Thread
Results 1 to 8 of 8

Conditional Format carry over to next row in table

  1. #1
    Forum Contributor
    Join Date
    04-28-2004
    Location
    Tokyo
    MS-Off Ver
    Office 2016 pro plus
    Posts
    175

    Conditional Format carry over to next row in table

    I a can't seem to get my conditional formatting to carry over to the next row. When I hit tab to go to the next row, The "H" cell automatically fills red and "G" doesn't format correctly. It's almost as if it is doing it's own thing. I do not want the cells to highlight unless there is a date in "H".

    Is this the best way to do what I want to accomplish? This is the only way I know how.
    Below are the conditional Formatting formulas

    =AND(A5="LOE",TODAY()-H5<-16,TODAY()-H5>=-20)
    =AND(A5="LOE",TODAY()-H5>=-16)
    =AND(A4="AFAM",TODAY()-H4<-16,TODAY()-H4>=-20)
    =AND(A4="AFAM",TODAY()-H4>=-16)
    =AND(A4="AFCM",TODAY()-H4<-16,TODAY()-H4>=-20)
    =AND(A4="AFCM",TODAY()-H4>=-16)
    =AND(A4="MSM",TODAY()-H4<-20,TODAY()-H4>=-25)
    =AND(A4="MSM",TODAY()-H4>=-20)


    =AND(A5="LOE",TODAY()-H5<-10,TODAY()-H5>=-15)
    =AND(A5="LOE",TODAY()-H5>=-10)
    =AND(A5="AFAM",TODAY()-H5<-10,TODAY()-H5>=-15)
    =AND(A5="AFAM",TODAY()-H5>=-10)
    =AND(A5="AFCM",TODAY()-H5<-10,TODAY()-H5>=-15)
    =AND(A5="AFCM",TODAY()-H5>=-10)
    =AND(A5="MSM",TODAY()-H5<-15,TODAY()-H5>=-20)
    =AND(A5="MSM",TODAY()-H5>=-15)

    Thank you for any assistance.
    Attached Files Attached Files

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Conditional Format carry over to next row in table

    Hi,

    Please modify the formula adding an IF condition at the beginning: IF(H5<>"",condition,"")

    eg:
    =IF(H5<>"",AND(A5="LOE",TODAY()-H5<-10,TODAY()-H5>=-15),"")



    Regards,
    Chandra



    Please click on ‘ * Add Reputation’ button on the left side bottom of my post if I was helpful in resolving the issue.

  3. #3
    Forum Contributor
    Join Date
    04-28-2004
    Location
    Tokyo
    MS-Off Ver
    Office 2016 pro plus
    Posts
    175

    Re: Conditional Format carry over to next row in table

    I also have to add the ,"") at the end of each one correct?

  4. #4
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Conditional Format carry over to next row in table

    yes, correct.

  5. #5
    Forum Contributor
    Join Date
    04-28-2004
    Location
    Tokyo
    MS-Off Ver
    Office 2016 pro plus
    Posts
    175

    Re: Conditional Format carry over to next row in table

    Thank you, I edited it, and it got rid of the colored blank cells, but my calculations aren't exactly working correctly now. For example, for the first line, Column F should turn yellow when it is within 10-15 days of the column H. And after the date has passed, the color disappears completely.

    =IF(H5<>"",AND(A5="LOE",TODAY()-H5<-10,TODAY()-H5>=-15),"")
    =IF(H5<>"",AND(A5="LOE",TODAY()-H5>=-10),"")
    =IF(H5<>"",AND(A5="AFAM",TODAY()-H5<-10,TODAY()-H5>=-15),"")
    =IF(H5<>"",AND(A5="AFAM",TODAY()-H5>=-10),"")
    =IF(H5<>"",AND(A5="AFCM",TODAY()-H5<-10,TODAY()-H5>=-15),"")
    =IF(H5<>"",AND(A5="AFCM",TODAY()-H5>=-10),"")
    =IF(H5<>"",AND(A5="MSM",TODAY()-H5<-15,TODAY()-H5>=-20),"")
    =IF(H5<>"",AND(A5="MSM",TODAY()-H5>=-15),"")


    =IF(H5<>"",AND(A5="LOE",TODAY()-H5<-16,TODAY()-H5>=-20),"")
    =IF(H5<>"",AND(A5="LOE",TODAY()-H5>=-16),"")
    =IF(H5<>"",AND(A5="AFAM",TODAY()-H5<-16,TODAY()-H5>=-20),"")
    =IF(H5<>"",AND(A5="AFAM",TODAY()-H5>=-16),"")
    =IF(H5<>"",AND(A5="AFCM",TODAY()-H5<-16,TODAY()-H5>=-20),"")
    =IF(H5<>"",AND(A5="AFCM",TODAY()-H5>=-16),"")
    =IF(H5<>"",AND(A5="MSM",TODAY()-H5<-20,TODAY()-H5>=-25),"")
    =IF(H5<>"",AND(A5="MSM",TODAY()-H5>=-20),"")

  6. #6
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Conditional Format carry over to next row in table

    Please change the formula in the conditional formatting window if you want the background color to change, not in the formula bar.
    Attached Images Attached Images

  7. #7
    Forum Contributor
    Join Date
    04-28-2004
    Location
    Tokyo
    MS-Off Ver
    Office 2016 pro plus
    Posts
    175

    Re: Conditional Format carry over to next row in table

    I did add the formula in CF window, please see the updated version. If you play with the dates in the Dep Date cell, the formulas are not changing the color as it is stated in the condition Format formula

    Again, thank you for assisting me
    Attached Files Attached Files

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Conditional Format carry over to next row in table

    Change your conditional formatting rules by adding to the AND statement H5<>"", so that the rules look like this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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 format in a table
    By rhudgins in forum Excel General
    Replies: 12
    Last Post: 02-10-2011, 10:59 AM
  2. Conditional format match against table
    By pertenax in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-19-2008, 05:57 AM
  3. How to carry over conditional format colors to a chart
    By Tim A in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-31-2005, 08:06 PM
  4. [SOLVED] How can I format a worksheet to carry out all calculations to 2 d.
    By Phill Barrett in forum Excel General
    Replies: 2
    Last Post: 01-05-2005, 10:06 AM
  5. Replies: 2
    Last Post: 01-05-2005, 10:06 AM

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