+ Reply to Thread
Results 1 to 13 of 13

Excel 2007 : Dates and Conditional Formatting

  1. #1
    Registered User
    Join Date
    10-20-2010
    Location
    omaha, nebraska
    MS-Off Ver
    Excel 2007
    Posts
    22

    Dates and Conditional Formatting

    Alright before anyone starts bashing my head in, yes I know there are countless threads out there for conditional formatting... but I can't seem to apply any of it to my situation.

    Attached is an example book with my rows/columns.

    I'm trying to format the entire row for each individual based on a few criteria:

    If C/O (Closeout) is within 63 days of TODAY, whole row should turn yellow, bold text.
    If C/O (closeout) is YESTERDAY, whole row should turn red, bold text
    If Comments says "complete", turn entire row green, regardless of other formatting.

    The main problem i'm running into here, is creating all 3 criteria for a single row, then replicating it to apply to the rest of the sheet.... how do i do this so that i don't have to type these 3 criteria in a zillion times?
    Attached Files Attached Files
    Last edited by blizz; 04-07-2011 at 09:01 AM.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Dates and Conditional Formatting

    You select all of the target rows and then apply the CFR to the block.

  3. #3
    Registered User
    Join Date
    10-20-2010
    Location
    omaha, nebraska
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Dates and Conditional Formatting

    How do i go about doing that? the formulas I'm using look something like:

    for turning the row red if late:
    =AND($M4-TODAY()<=0,$M4-TODAY()<=0)

    etc... what do i change the $M4 to, to make it apply to the block, based on a cell in a column?

  4. #4
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Dates and Conditional Formatting

    Change $M4 to the date cell in the first row of the selection, $I2 in your workbook I believe.

  5. #5
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Dates and Conditional Formatting

    BTW, why are you testing the same thing twice?

  6. #6
    Registered User
    Join Date
    10-20-2010
    Location
    omaha, nebraska
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Dates and Conditional Formatting

    i wondered that myself....

    =AND($M4-TODAY()>=0,$M4-TODAY()<=63)

    is my one for checking if the date is within 63 days...
    is this wrong?

  7. #7
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Dates and Conditional Formatting

    No, the second is correct as you are checking two different conditions, whereas the former was checking the same condition twice.

  8. #8
    Registered User
    Join Date
    10-20-2010
    Location
    omaha, nebraska
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Dates and Conditional Formatting

    Thank you. I did not realize that it was incorrect. I got the 2 formulas from a different forum on this site and just tweaked them to my needs.

  9. #9
    Registered User
    Join Date
    10-20-2010
    Location
    omaha, nebraska
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Dates and Conditional Formatting

    k so i tried what you said but its not working. can you please apply it to the workbook i uploaded and shoot it back to me please?

  10. #10
    Registered User
    Join Date
    10-20-2010
    Location
    omaha, nebraska
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Dates and Conditional Formatting

    please disregard. i put the wrong colum/row combination in my formula. fixed. thank you!

  11. #11
    Registered User
    Join Date
    10-20-2010
    Location
    omaha, nebraska
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Dates and Conditional Formatting

    however, what do i do if, say i have row X turn red b/c it is overdue (pas the suspense for closeout), but want to add modifiers to it?

    For example, row X turns yellow, meaning it is within 63 days of closeout, but i want to show that it is on track for completion, and has met its milestone suspenses, so i write "XYZ" in the "Comments" column... how do i make the "XYZ" column turn green, showing that "XYZ" was met, while still showing the rest of the row yellow, meaning that the closeout is still within 63 days?

    that being said, when it meets its next milestone suspense, "ZZZ", how do i make it to where, upon typing "ZZZ" in the "comments" column, both "XYZ" and "ZZZ" will be green? showing that both suspenses were met, and have the row still be yellow otherwise, since it is still within 63 days of closeout?
    Last edited by blizz; 04-05-2011 at 10:50 AM.

  12. #12
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Dates and Conditional Formatting

    Quote Originally Posted by blizz View Post
    however, what do i do if, say i have row X turn red b/c it is overdue (pas the suspense for closeout), but want to add modifiers to it?

    For example, row X turns yellow, meaning it is within 63 days of closeout, but i want to show that it is on track for completion, and has met its milestone suspenses, so i write "XYZ" in the "Comments" column... how do i make the "XYZ" column turn green, showing that "XYZ" was met, while still showing the rest of the row yellow, meaning that the closeout is still within 63 days?

    that being said, when it meets its next milestone suspense, "ZZZ", how do i make it to where, upon typing "ZZZ" in the "comments" column, both "XYZ" and "ZZZ" will be green? showing that both suspenses were met, and have the row still be yellow otherwise, since it is still within 63 days of closeout?
    Add more conditions just for that column and those criteria - assuming you have Excel 2007/2010.

  13. #13
    Registered User
    Join Date
    10-20-2010
    Location
    omaha, nebraska
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Dates and Conditional Formatting

    Re: conditional formatting: Copy/Paste

    --------------------------------------------------------------------------------

    sorry for the bland reply. I got it to work, but did them individually, as i could not figure out how to combine the rules. I was worried that with all my conditions, i'd have to type them all up on each sheet... I have approximately 20 conditions for formatting per sheet... and i have 12 sheets... that's a lot of copy/paste. Here's what i found:

    On sheet 1, do all of your conditional formatting (in my case, 20 rules).
    Then, select ALL cells that have been conditionally formatted.
    Ensure you are on the "Home" tab of the Ribbon.
    Just below the huge glowing circle, there is a button called "Format Painter"; click that.
    Go to sheet 2.
    Select all cells that will need the same formatting.
    DONE. Once these cells are selected, it copys/pastes the conditional formatting from sheet 1 to them.

    NOTE: The layout of Sheet 1 and Sheet 2 will need to be identical for this to work properly, meaning you have all the same column/row headings in the same order (or your information will be mis-ruled).

    Hope this helps others!
    Last edited by blizz; 04-07-2011 at 09:00 AM. Reason: [SOLVED]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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