+ Reply to Thread
Results 1 to 6 of 6

Calculating Age

  1. #1
    Registered User
    Join Date
    07-04-2012
    Location
    gainesville, florida
    MS-Off Ver
    Excel 2007
    Posts
    16

    Calculating Age

    I am trying to calcutate a persons age using this formula =IF(E4<>"",DATEDIF(E4,A4,"y")&"yrs"). Unfortunately, the column sates FALSE (E4 is the Date of Birth and A4 is today's date). Could someone explain what am I doing incorrectly?

    Thank you

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Calculating Age

    Is E4 blank? If it is, the formula will show 'False'
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Calculating Age

    That probably means that E4 IS blank.

  4. #4
    Registered User
    Join Date
    07-04-2012
    Location
    gainesville, florida
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Calculating Age

    Yes it is blank. However, I want it to remain blank until I input a date of birth.
    Last edited by alidde; 07-12-2012 at 09:34 AM.

  5. #5
    Registered User
    Join Date
    04-12-2012
    Location
    AbuAlKhaseeb
    MS-Off Ver
    Excel 2010
    Posts
    99

    Re: Calculating Age

    you should input at E4 date of birth

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Calculating Age

    in that case change your formula to

    =IFERROR(DATEDIF(E4,A4,"y")&"yrs","")

+ 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