Results 1 to 5 of 5
  1. #1
    Star Lounger
    Join Date
    Nov 2008
    Location
    England, Yate, Bristol
    Posts
    51
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Show last birthday date in Excel 2010

    I need to calculate how many days leave staff are entitled to.

    Leave entitlement is counted from their last birthday month.

    I have birthday and today's date, but I am having trouble with a formula.

    Thanks if you can help.

    Peter

  2. #2
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,436
    Thanks
    372
    Thanked 1,457 Times in 1,326 Posts
    Peter,

    You didn't supply specific calcualtion parameters so here's a first shot at merely calculating the number of month not counting the day of the month.
    =((YEAR(B1)*12+MONTH(B1))-(YEAR(A1)*12+MONTH(A1)))
    NoOfMonths.JPG
    HTH

    Update: if you want to account for the day of the month use:
    =((YEAR(B1)*12+MONTH(B1))-(YEAR(A1)*12+MONTH(A1)))-IF(DAY(B1)<DAY(A1),1,0)
    Last edited by RetiredGeek; 2013-09-09 at 11:22.
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  3. #3
    Star Lounger
    Join Date
    Nov 2008
    Location
    England, Yate, Bristol
    Posts
    51
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Sorry I wasn't very clear was I.

    What I have is a table of staff names + column with date of birth of each.

    All I really want is this year's birthday date in another column for further calculations.

    Thanks for looking at this.

    Peter

  4. #4
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts
    If the person's birthdate is in Cell A1, the birthday for the current year is:
    =DATE(YEAR(TODAY()), MONTH(A1), DAY(A1))

    Steve

  5. The Following User Says Thank You to sdckapr For This Useful Post:

    peterinth (2013-09-11)

  6. #5
    Star Lounger
    Join Date
    Nov 2008
    Location
    England, Yate, Bristol
    Posts
    51
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Exactly what I wanted thanks Steve

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •