+ Reply to Thread
Results 1 to 5 of 5

When date is passed certain row columns should change color

  1. #1
    Forum Contributor
    Join Date
    11-10-2012
    Location
    Sweden, Stockholm
    MS-Off Ver
    MS Excel 365
    Posts
    175

    When date is passed certain row columns should change color

    If a field A2 has a year 18 or older, I want row A3 : A10 become coloured.

    How to do that with conditionals or with another way?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: When date is passed certain row columns should change color

    What exactly do you have in those cells - just 18 or is it a date, or something else?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    11-10-2012
    Location
    Sweden, Stockholm
    MS-Off Ver
    MS Excel 365
    Posts
    175

    Re: When date is passed certain row columns should change color

    The column A1 and down are years.
    1978
    1957
    2005
    etc
    etc

    A2 - A10 are infos of different kinds, can numbers, text etc

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: When date is passed certain row columns should change color

    From the looks of it, those are not really years (as in dates), they are just values, but thats OK we can work with that.

    So you want this based off todays date?

    assuming your data is something like this...
    A
    B
    C
    D
    1
    Year aa bb cc
    2
    1978
    10
    20
    30
    3
    1957
    110
    120
    130
    4
    2005
    210
    220
    230


    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =$A2 < YEAR(TODAY())-18 format fill your color

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: When date is passed certain row columns should change color

    Thanks for the feedback

+ 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] Change color of a field when passed todays date
    By sealpino in forum Excel General
    Replies: 3
    Last Post: 02-18-2017, 03:34 PM
  2. Replies: 6
    Last Post: 04-24-2015, 03:16 AM
  3. Replies: 5
    Last Post: 02-03-2015, 09:08 PM
  4. [SOLVED] Change a columns fill or border color based on current date
    By rcarlson67 in forum Excel General
    Replies: 2
    Last Post: 08-21-2014, 09:53 AM
  5. Change multiple cell colors based on date and time passed
    By cvalentine02 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-12-2013, 12:20 PM
  6. Replies: 1
    Last Post: 11-29-2010, 12:10 PM
  7. Replies: 1
    Last Post: 03-22-2010, 04:09 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