+ Reply to Thread
Results 1 to 5 of 5

Highlight row if today birthday

  1. #1
    Registered User
    Join Date
    06-21-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    39

    Highlight row if today birthday

    Hi,

    I have customer based data with having date of birth in dd-mmm-yyyy format ( 20-oct-1980 ), I want formula / macro to highlight entire row if date of birth match with todays date with red colour. also date of birth if comming next 5 days in green colour.

    Pls help.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,101

    Re: Highlight row if today birthday

    use conditional format

    Two Formulas to add

    =AND((TODAY()-5)<=$A7, (TODAY()-1)>=$A7)
    format green

    and

    =TODAY()=$A7
    format red

    see attached sheet


    for 2007 or 2010 excel version

    Conditional Formatting

    Highlight applicable range >>


    Range you want to apply the Conditional format to
    A1:M200 for example


    Home Tab >> Styles >> Conditional Formatting
    New Rule >> Use a formula to determine which cells to format
    Edit the Rule Description: Format values where this formula is true:


    =AND((TODAY()-5)<=$A7, (TODAY()-1)>=$A7)

    Format… [Number, Font, Border, Fill]
    OK >> OK

    Repeat for RED format

    =TODAY()=$A7
    Attached Files Attached Files
    Last edited by etaf; 10-20-2013 at 05:22 AM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    06-21-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Highlight row if today birthday

    Many thanks for reply.

    its work!!! but date of birth in column is not 2013 it should match only dd-mmm with today. pls help

    if date of birth in coloumn 10-oct-1980 then row should be in red on 10-oct every year.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Highlight row if today birthday

    Try using DAY & MONTH functions.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Highlight row if today birthday

    Hello Dang Try this
    =AND(MONTH(A1)=MONTH(TODAY()),DAY(A1)-DAY(TODAY())>0,DAY(A1)-DAY(TODAY())<6) in CF
    Last edited by hemesh; 10-21-2013 at 01:58 AM. Reason: @Fotis Forgot to Refresh
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

+ 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. Today is my(Forum) Birthday!
    By Fotis1991 in forum The Water Cooler
    Replies: 19
    Last Post: 10-19-2012, 08:17 AM
  2. [SOLVED] Which members have a birthday today?
    By adofp in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 08-14-2012, 07:50 PM
  3. Macro to send automatic emails on birthday meets with today
    By shekar goud in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-06-2009, 09:04 AM
  4. Creating message if Contact's birthday is today
    By ElmerS in forum Outlook Programming / VBA / Macros
    Replies: 8
    Last Post: 05-25-2009, 04:10 PM
  5. E-mail sent for a cell in a sheet that lists a birthday as today
    By elmo28 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-06-2005, 12:10 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