+ Reply to Thread
Results 1 to 4 of 4

Conditional Format based on Date of Birth

  1. #1
    Forum Contributor
    Join Date
    10-13-2011
    Location
    Australia
    MS-Off Ver
    Office 16
    Posts
    329

    Conditional Format based on Date of Birth

    Wondering how you apply conditional formatting to an entire row based on a date of birth in row C.
    The criteria is if the person is UNDER the AGE of 18 as of the current day.
    I need the entire row highlighted not just the cell, in any colour (pink, light orange, light green, any light colour) based on the date of birth which is shown as dd/mm/yyyy.
    If I need to add the current date into another sheet, that's fine, data can be in Sheet 1, the date can be in Sheet 2 but it needs to update each day automatically - my file only has one sheet which contains a lot of personal data but the DOB is in column C.
    Does anyone have an option for me? Thanks in advance.
    Last edited by Christopherdj; 03-04-2019 at 07:28 PM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Conditional Format based on Date of Birth

    Try this...

    In D2 copied down is where I stored the age. =DATEDIF(C2,TODAY(),"y")

    You could put this into the CF, but here I just used a helper cell.

    Conditional Formatting
    • Highlight applicable range >> A2:L200
    • Home Tab >> Styles >> Conditional Formatting >> New Rule
    • Select a Rule Type: Use a formula to determine which cells to format
    • Edit the Rule Description: Format values where this formula is true: =AND(N($D2),$D2<18)
    • Format… [Number, Font, Border, Fill]
    • OK >> OK

    I don't know your range, so adjust the A2:L200 to the range you need to highlight.
    HTH
    Regards, Jeff

  3. #3
    Forum Contributor
    Join Date
    10-13-2011
    Location
    Australia
    MS-Off Ver
    Office 16
    Posts
    329

    Re: Conditional Format based on Date of Birth

    Brilliant, thanks for the quick reply and it works. Great stuff.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Conditional Format based on Date of Birth

    You are very welcome and thanks for the feedback.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. generating year of birth based on date and age
    By isawalha in forum Excel General
    Replies: 6
    Last Post: 06-29-2016, 07:07 AM
  2. Work out Term of Birth by Date of Birth
    By sezza79 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-18-2014, 11:06 AM
  3. Formulas Calculating Age based on Date of Birth & Date of Death
    By MELLOW YELLOW in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-07-2014, 03:27 PM
  4. Formula to Calculate Age based on date of birth
    By Squint in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-25-2013, 10:05 PM
  5. Conditional Format in Birth Month window
    By jboyd123 in forum Excel General
    Replies: 2
    Last Post: 02-15-2011, 06:17 AM
  6. Converting Date of Birth to 'Term of Birth'
    By Kungfusal in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-26-2009, 04:12 AM
  7. Producing Age Based on Date of Birth
    By MPuser in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-30-2005, 06:25 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