+ Reply to Thread
Results 1 to 6 of 6

Birthday is x days away?

  1. #1
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327

    Birthday is x days away?

    I have a column with people(A) and their date of birth(C). I'm looking to find out the number of days when their next birthday is. I searched through here and couldn't find anything.

    Is there a formula I can use that would calculate this, year after year after year??

    Thanx..
    Last edited by Ltat42a; 01-07-2009 at 05:56 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Take a look at dateif.

    Example at the bottom called Calculating Age

    http://www.cpearson.com/excel/datedif.aspx

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    =DATEDIF(TODAY(),C1,"d")

    where C1 contains birthdate
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,695
    This formula will give you a result like

    "Next birthday is 123 days away". On birthday it says "Happy Birthday!"

    =IF(DATEDIF(C1,TODAY(),"yd")=0,"Happy Birthday!","Next birthday is "&DATE(YEAR(C1)+DATEDIF(C1,TODAY(),"y")+1,MONTH(C1),DAY(C1))-TODAY()&" days away")

    where C1 contains date of birth

  5. #5
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327
    Quote Originally Posted by daddylonglegs View Post
    This formula will give you a result like

    "Next birthday is 123 days away". On birthday it says "Happy Birthday!"

    =IF(DATEDIF(C1,TODAY(),"yd")=0,"Happy Birthday!","Next birthday is "&DATE(YEAR(C1)+DATEDIF(C1,TODAY(),"y")+1,MONTH(C1),DAY(C1))-TODAY()&" days away")

    where C1 contains date of birth
    Cool....works good, Thanx.

  6. #6
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Myrtle Beach, South Carolina
    MS-Off Ver
    =IF(Win 7,"Excel 2010","Mac Excel 2011")
    Posts
    104

    Re: Birthday is x days away?

    This is Awesome!!! I changed "Birthday" to "Annual Review" on my attendance sheet.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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