Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi there,
How can I create a formula that will determine how old someone is (in years) if they enter their date of birth in another cell? ex. B2 is DOB = 01-01-1970 B3 needs is show age (36) Thanks, Matt |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
In B3 use the formula
=DATEDIF(B2,TODAY(),"y") "mpenkala" wrote: Hi there, How can I create a formula that will determine how old someone is (in years) if they enter their date of birth in another cell? ex. B2 is DOB = 01-01-1970 B3 needs is show age (36) Thanks, Matt |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Use the 'undocumented' DATEDIF function
=DATEDIF(B2,NOW(),"y") check www.cpearson.com/excel/datetime.htm for detail -- HTH Nick Hodge Microsoft MVP - Excel Southampton, England DTHIS www.nickhodge.co.uk "mpenkala" wrote in message ... Hi there, How can I create a formula that will determine how old someone is (in years) if they enter their date of birth in another cell? ex. B2 is DOB = 01-01-1970 B3 needs is show age (36) Thanks, Matt |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
This function is not working. I typed in the following function into cell D2 =DATEDIF(B2,NOW(),"y") B2 contains the date 8/25/1979 (August 25, 1979) and it returns the following: 1/27/1900 0:00 I've also tried using TODAY instead of NOW, but get the same result. Any other suggestions? Thanks, Matt "Nick Hodge" wrote: Use the 'undocumented' DATEDIF function =DATEDIF(B2,NOW(),"y") check www.cpearson.com/excel/datetime.htm for detail -- HTH Nick Hodge Microsoft MVP - Excel Southampton, England DTHIS www.nickhodge.co.uk "mpenkala" wrote in message ... Hi there, How can I create a formula that will determine how old someone is (in years) if they enter their date of birth in another cell? ex. B2 is DOB = 01-01-1970 B3 needs is show age (36) Thanks, Matt |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello mpenkala,
the formula is working OK but you need to format the cell that contains the formula with "general" format rather than the date format you currently have "mpenkala" wrote: Hi, This function is not working. I typed in the following function into cell D2 =DATEDIF(B2,NOW(),"y") B2 contains the date 8/25/1979 (August 25, 1979) and it returns the following: 1/27/1900 0:00 I've also tried using TODAY instead of NOW, but get the same result. Any other suggestions? Thanks, Matt "Nick Hodge" wrote: Use the 'undocumented' DATEDIF function =DATEDIF(B2,NOW(),"y") check www.cpearson.com/excel/datetime.htm for detail -- HTH Nick Hodge Microsoft MVP - Excel Southampton, England DTHIS www.nickhodge.co.uk "mpenkala" wrote in message ... Hi there, How can I create a formula that will determine how old someone is (in years) if they enter their date of birth in another cell? ex. B2 is DOB = 01-01-1970 B3 needs is show age (36) Thanks, Matt |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
daddylonglegs,
thanks a bunch. That solved the problem. Matt "daddylonglegs" wrote: Hello mpenkala, the formula is working OK but you need to format the cell that contains the formula with "general" format rather than the date format you currently have "mpenkala" wrote: Hi, This function is not working. I typed in the following function into cell D2 =DATEDIF(B2,NOW(),"y") B2 contains the date 8/25/1979 (August 25, 1979) and it returns the following: 1/27/1900 0:00 I've also tried using TODAY instead of NOW, but get the same result. Any other suggestions? Thanks, Matt "Nick Hodge" wrote: Use the 'undocumented' DATEDIF function =DATEDIF(B2,NOW(),"y") check www.cpearson.com/excel/datetime.htm for detail -- HTH Nick Hodge Microsoft MVP - Excel Southampton, England DTHIS www.nickhodge.co.uk "mpenkala" wrote in message ... Hi there, How can I create a formula that will determine how old someone is (in years) if they enter their date of birth in another cell? ex. B2 is DOB = 01-01-1970 B3 needs is show age (36) Thanks, Matt |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do i print only the comments for one person on a report? | Excel Worksheet Functions | |||
Mileage Claim Formula | New Users to Excel | |||
How to avoid "update links" startup prompt? | Excel Discussion (Misc queries) | |||
Rostering problem | Excel Discussion (Misc queries) | |||
D Sum or SumIF | Excel Worksheet Functions |