+ Reply to Thread
Results 1 to 6 of 6

Birthday is x days away?

Hybrid View

  1. #1
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719
    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

  2. #2
    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.

+ 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