+ Reply to Thread
Results 1 to 10 of 10

date row color

  1. #1
    Forum Contributor
    Join Date
    10-31-2018
    Location
    venezia
    MS-Off Ver
    2007
    Posts
    487

    date row color

    Hello to all
    in the attached workbook in column F there are dates
    is it possible to color each row from column A:F for each date?
    Example:
    rows A3: F6 date 01/01/2020 yellow color
    rows A7: F8 date 02/01/2020 pink color
    rows A9: F10 date 02/01/2020 yellow color
    rows A11: F1 date 03/01/2020 pink color
    etc...
    john
    Attached Files Attached Files
    Last edited by john_cash; 01-19-2020 at 02:14 PM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: date row color

    Select A3:F67 > conditional formatting > new rule > Use a formula > enter
    =MOD(DAY($F3),2)=0
    select a format

    and the same again using
    =MOD(DAY($F3),2)=1

  3. #3
    Forum Contributor
    Join Date
    10-31-2018
    Location
    venezia
    MS-Off Ver
    2007
    Posts
    487

    Re: date row color

    Hi fluff13 work well
    And if column F is empty it doesn't have to be colored

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: date row color

    Use
    =AND($F3<>"",MOD(DAY($F3),2)=0)

    The other formula can remain as-is.

  5. #5
    Forum Contributor
    Join Date
    10-31-2018
    Location
    venezia
    MS-Off Ver
    2007
    Posts
    487

    Re: date row color

    Hi fluff3 work well
    A greeting
    thanks
    john

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: date row color

    You're welcome & thanks for the feedback

  7. #7
    Forum Contributor
    Join Date
    10-31-2018
    Location
    venezia
    MS-Off Ver
    2007
    Posts
    487

    Re: date row color

    I noticed a small mistake
    07/01/20
    07/02/20
    the day is the same but the month is not.
    with formatting it comes out the same ones.
    In this case it must be different

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: date row color

    That's not a mistake, it did what you asked for with the data supplied

    Try
    =AND($F3<>"",MOD(SUMPRODUCT(--($F$2:$F2<>$F$3:$F3)),2)=0)
    and
    =AND($F3<>"",MOD(SUMPRODUCT(--($F$2:$F2<>$F$3:$F3)),2)=1)

  9. #9
    Forum Contributor
    Join Date
    10-31-2018
    Location
    venezia
    MS-Off Ver
    2007
    Posts
    487

    Re: date row color

    Thanks fluff13 it's o.k.
    A greeting and thanks again
    john

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: date row color

    My pleasure.

+ 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. Replies: 5
    Last Post: 01-05-2015, 03:57 PM
  2. [SOLVED] VBA Macro to Color Row Text If Date in Cell is greater than system date
    By slick9456 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-24-2014, 06:09 PM
  3. Macro to Change color of cell after cross referencing date with a given date.
    By liajet24 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-24-2013, 12:33 PM
  4. Formulating Date cells to auto color code based on Date
    By darren.capps in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-23-2013, 02:08 PM
  5. Color Code Actual Date versus Due Date ( Red, Yellow, Green )
    By Bfisher74 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-28-2013, 10:10 AM
  6. Color fill a cell and then remove the color when a date is added.
    By texas tornado in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-25-2012, 02:14 AM
  7. I want any date 90 days or older from current date change color
    By Big Abalone in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-23-2006, 12:10 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