+ Reply to Thread
Results 1 to 6 of 6

Sad But True - retirement dates

  1. #1
    Registered User
    Join Date
    10-09-2006
    Posts
    3

    Unhappy Sad But True - retirement dates

    Please help - I have in column b1:b49 dates of births of my current employees. I can work out how old they are, BUT I need to work out when one will reach 65 (UK's opt. retirement age). Also need to flag when they turn 64. Any body out there to help - PLEASE
    Slindon

  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
    Hi

    Try

    =IF(DATEDIF(B1,NOW(),"y")=64,"1 year before retirement",IF(DATEDIF(B1,NOW(),"y")=65,"Retirement age",DATEDIF(B1,NOW(),"y")))

    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 Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    With Format Conditional Formatting
    Formula Is
    Please Login or Register  to view this content.
    Format Patterns Yellow

    HTH
    Carim

  4. #4
    Registered User
    Join Date
    10-09-2006
    Posts
    3

    Smile Sad but true

    Thank you both of you. Works a treat

  5. #5
    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
    No Problem

    Thanks for the feedback

    VBA Noob

  6. #6
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Sad but True ...

    As usual VBA Noob faster ... much faster

    1. for the answer .... and,
    2. for the "Thanks" ...too ...

    Carim

+ 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