![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Location: Harry Nijholt
Posts: 5
|
I try to make a simple sheet to determine the age of a person. However when the year of birth is '73, '77, or '81 I do not get the right age, but 1 year less.(only when the day and month are the same)
fi. born 24-02-1973. Today ia 24-02-2002. Formula calculates 28 must be 29. Because I have to use the age for another formula I use the following formula Right(YEAR(TODAY()-(G2-1));2)+0 WHERE G2 is the date of birth. Can somebody help me?? Harry |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
|
Quote:
=YEARFRAC(A1,TODAY()) and =DATEDIF(A1,TODAY(),"Y") give 29. A1 holds the birthdate you mentioned. |
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Feb 2002
Location: Harry Nijholt
Posts: 5
|
Thanks for the respons.
I have a dutch version of Excel. Do you also have the dutch code? Now I get the respond #NAAM? Harry |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
|
Quote:
|
|
|
|
|
|
|
#5 |
|
New Member
Join Date: Feb 2002
Location: Harry Nijholt
Posts: 5
|
Hey Thanks,
Jaar.... is not there, however Datumverschil is and it's the solution to my problem. Thanks for helping out. Harry |
|
|
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
|
Quote:
|
|
|
|
|
|
|
#7 |
|
New Member
Join Date: Feb 2002
Location: Harry Nijholt
Posts: 5
|
Hallo dan,
Dat maakt de communicatie een stukje makkelijker. Ben nog even doorgegaan met zoeken en er is ook een JAAR.DEEL Alleen moet dan de Invoegtoepassing ANALYSIS Toolpac worden aangezet. Moet eerlijk zijn. Daar snap ik nog niet alles van. Nogmaals bedankt Harry |
|
|
|
|
|
#8 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
|
Quote:
|
|
|
|
|
|
|
#9 |
|
New Member
Join Date: Feb 2002
Location: Harry Nijholt
Posts: 5
|
Je hebt gelijk.
Invoegtoepassingen in menu extra. Ik heb het toegevoegd en als je de uitkomst dan op getal zet zonder decimalen.....bingo het werkt. Bedankt en tot een mogelijke volgende keer. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|