View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
[email protected] Cis4cupcake@gmail.com is offline
external usenet poster
 
Posts: 2
Default Excel formula calculating age

On Apr 28, 12:52*pm, "David Biddulph" <groups [at] biddulph.org.uk
wrote:
=IF(DATEDIF(B2, TODAY(),"y")=1,DATEDIF(B2, TODAY(),"y")&" years
",IF(DATEDIF(B2,TODAY(),"m")=1,DATEDIF(B2,TODAY() ,"m")&" months
",TODAY()-B2&" days"))
--
David Biddulph

wrote in message

...



I'm currently using the formula =INT((TODAY()-B2/365.25) to calculate
age in years. *Is there a formula that will show age in months only,
if under 1 year, and age in days only, if under 1 month? *I used
=DATEDIF(birthdate, TODAY(),"y")&"years"&DATEDIF(birthdate,
TODAY(),"ym")&"months"&DATEDIF(birthdate, TODAY(),"md")&"days" but I
only want years or months or days to show.


Thanks- Hide quoted text -


- Show quoted text -


Thanks!