+ Reply to Thread
Results 1 to 8 of 8

Highlight a birthday

  1. #1
    Registered User
    Join Date
    08-28-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    28

    Highlight a birthday

    Hopefully a quick one to solve! I have a list of customers. In one column is their name. In another column, their date of birth. For example, Jane Jones and 03/04/1968. I want to HIGHLIGHT which customer has a birthday coming up in the next month. Because of the spreadsheet layout and data in other columns, I don't want to keep sorting the sheet by the date of birth column.

    Using Conditional Formatting, what formula could I write to get any imminent birthday to "pop up", say, in colour or as highlighted text.


    For example, as we're currently in March, I would like to have a quick visual reference as to who has a birthday coming up in, April, and so on.


    John Smith ............. 28/11/1972
    Jane Jones .............. 03/04/1968
    Mary Turner ............ 19/07/1958

    I can see how to do it if all the dates are in this current year (2022) but I'm confused as to how to proceed, with every birthdate having a different year! All I want to do is select by the MONTH, not the year.

    Many thanks
    Terri H

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,369

    Re: Highlight a birthday

    You could try this CF rule:

    =DATE(YEAR(TODAY()),MONTH(B2),DAY(B2))=TODAY()

    Change TODAY() at the end to whatever range you want.

    AliGW on MS365 Insider (Windows) 64 bit

    A
    B
    1
    2
    John Smith
    28/11/1972
    3
    Jane Jones
    07/03/1968
    4
    Mary Turner
    19/07/1958
    Sheet: Sheet1
    Attached Files Attached Files
    Last edited by AliGW; 03-07-2022 at 10:13 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Highlight a birthday

    Maybe try this CF rule, assuming the dates are in column B starting with B2:

    =MONTH(TODAY())=MONTH(B2)

    It won't show April dates in March, though.

    Hope this helps.

    Pete

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,369

    Re: Highlight a birthday

    Or try this:

    =AND(DATE(YEAR(TODAY()),MONTH(B1),DAY(B1))<=TODAY()+31,DATE(YEAR(TODAY()),MONTH(B1),DAY(B1))>=TODAY())

    AliGW on MS365 Insider (Windows) 64 bit

    A
    B
    1
    2
    John Smith
    28/11/1972
    3
    Jane Jones
    07/03/1968
    4
    Mary Turner
    03/04/1958
    Sheet: Sheet1
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-28-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Highlight a birthday

    Hi AliGW

    I tried that formula, which seems to work if it's a date in 2022, but not a date in, say, 1968.

    =DATE(YEAR(TODAY()),MONTH(B2),DAY(B2))=TODAY()

    What would you suggest I change TODAY() to if, say, I'm looking for a date in April, in any year?

    Terri H

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,369

    Re: Highlight a birthday

    See my latest post.

    You need to coerce the DoB into a date for THIS YEAR (2022) in order to compare it with today.

    Please look at the workbook attached to post #4.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,369

    Re: Highlight a birthday

    No reply ...

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

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,705

    Re: Highlight a birthday

    Try as CF

    =MONTH(B2)=MOD(MONTH(TODAY()),12)+1

    which caters for year-end i.e TODAY() is December with Birthday in January
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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] How to find age of a birthday
    By kodenkoden in forum Excel General
    Replies: 44
    Last Post: 12-01-2021, 01:17 PM
  2. calculate age from birthday
    By staraquarius in forum Excel General
    Replies: 1
    Last Post: 01-14-2021, 02:02 AM
  3. Highlight row if today birthday
    By dingdang in forum Excel General
    Replies: 4
    Last Post: 10-21-2013, 01:57 AM
  4. Birthday
    By rph123 in forum Excel General
    Replies: 6
    Last Post: 02-04-2012, 11:55 AM
  5. Highlight cells on 20 days from birthday
    By Lynn McCurdy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-11-2011, 04:29 PM
  6. My boy's 1st Birthday!
    By NBVC in forum The Water Cooler
    Replies: 10
    Last Post: 02-06-2009, 12:57 PM

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