working out some ones age

kevin lazell

Well-known Member
Joined
Jun 2, 2004
Messages
513
hi all
i am i need of some expert help please, i want to work out some ones age in years and months
lets say in a1 i have todays date and in cell b1 i have the birthday of 22/07/1954 the result in c1 should be 66.9
so when may arrives the result in c1 should be 66.10 in june result will be 66.11
prefer the answer in vba if possible
thanks in advance for any help
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
How about
+Fluff 1.xlsm
ABC
1
229/04/202122/07/195466.09
Main
Cell Formulas
RangeFormula
C2C2=DOLLARFR(DATEDIF(B2,A2,"m")/12,12)
 
Upvote 0
Hi Fluff
sorry about the delay in responding to you answer i tried your formula but alas the result was not correct.
column c is your formula results and column d is the expected results thank you for helping with this
30/04/202126/01/195467.0366.09 66 years and 9 months old
26/02/195467.0266.10
26/03/195467.0166.11
26/04/195467.0067.00
26/05/195466.1167.01
26/06/195466.1067.02
26/07/195466.0967.03
26/08/195466.0867.04
26/09/195466.0767.05
26/10/195466.0667.06
26/11/195466.0567.07
26/12/195466.0467.08
 
Upvote 0
How about
Excel Formula:
=DATEDIF(B2,$A$2,"Y")&" Years, "&DATEDIF(B2,$A$2,"YM")&" Months, "&DATEDIF(B2,$A$2,"MD")&" Days"
 
Upvote 0
Hi Fluff
sorry about the delay in responding to you answer i tried your formula but alas the result was not correct.
column c is your formula results and column d is the expected results thank you for helping with this
30/04/202126/01/195467.0366.09 66 years and 9 months old
26/02/195467.0266.10
26/03/195467.0166.11
26/04/195467.0067.00
26/05/195466.1167.01
26/06/195466.1067.02
26/07/195466.0967.03
26/08/195466.0867.04
26/09/195466.0767.05
26/10/195466.0667.06
26/11/195466.0567.07
26/12/195466.0467.08
Column C is correct. Look at column D. How can someone born 26/12/1954 be older than someone born 26/1/1954 ?
 
Upvote 0
oh my god how did i miss that ,i think i had best run away to the circus as i will make a great clown lol
can fluffs formula be written as vba code if so can you covert it for me please tia
 
Upvote 0
VBA Code:
With Range([C2], Cells(Rows.Count, "B").End(3)(1, 2))
    .Formula = "=DOLLARFR(DATEDIF(B2,A$2,""m"")/12,12)"
    .Value = .Value
End With
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,380
Members
449,080
Latest member
Armadillos

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top