Age of Child

shah_ir85

New Member
Joined
May 8, 2016
Messages
40
Hi all.

I have list data of child and i want to know their exactly age and yearly age

ABCDE
1FatherChildBirth DateExactly AgeYearly Age
2JohnSam1 Dec 203 Month 25 Day1
3SmithSunny1 Jan 212 Month 25 Day0
4AtoiThia31 Dec 0911 Year 2 Month 26 Day12
5Hilton

Hilton not have child, so D5 and E5 will give 0 value and auto hide
but value on E3 will remain 0 because Smith's son was born Year 2021 so value of year will be 0
value on E2 will be 1 because John's son was born last year
i have long list... so if their not have child, D & E will be 0 and auto hide
 
Last edited:

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Try:
Excel Formula:
Exactly Age =IF(C2="","",IF(--LEFT(TEXT(TODAY()-C2,"yymmdd"),2),--LEFT(TEXT(TODAY()-C2,"yymmdd"),2)&" years ","")&IF(--MID(TEXT(TODAY()-C2,"yymmdd"),3,2),--MID(TEXT(TODAY()-C2,"yymmdd"),3,2)&" months ","")&--RIGHT(TEXT(TODAY()-C2,"yymmdd"),2)&" days")

Yearly Age =IF(C2="","",YEAR(TODAY())-YEAR(C2))
If you had Excel 365 version you could use the LET function to make the Exactly Age function to look a lot cleaner but I used the old fashioned formulas that should work in any version. Depending on your language settings you might have to tweak the "yymmdd" part to match the years/months/days letters of your language.
 
Upvote 0
Solution

Forum statistics

Threads
1,215,034
Messages
6,122,782
Members
449,095
Latest member
m_smith_solihull

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