brianfosterblack
Active Member
- Joined
- Nov 1, 2011
- Messages
- 251
I seem to be having a problem with my calculation when someone has a different date format on their computer
My date format is dd/mm/yyyy which is the standard in my country
I have an ID number which is our national ID 620206 0155 087 where the first 6 numbers are the date of birth in reverse. I have to assume that all people are under 100 and therefore use this formula to determine the date of birth. Cell AM 5 contains the ID number
I then use this formula to determine the age where cell F3 contains the year for next year but I need the age on the first of April for the current year. Cell AQ5 contains the result of the above formula
This works fine on my computer for my date settings but as soon as someone has their date settings in another format the age calculation does not work. Can anyone please help.
My date format is dd/mm/yyyy which is the standard in my country
I have an ID number which is our national ID 620206 0155 087 where the first 6 numbers are the date of birth in reverse. I have to assume that all people are under 100 and therefore use this formula to determine the date of birth. Cell AM 5 contains the ID number
Excel Formula:
=IF(A5="","",IFERROR(0+TEXT(19+(0+LEFT(AM5,2)<0+TEXT(NOW(),"yy"))&LEFT(AM5,6),"0000-00-00"),""))
Excel Formula:
=IFERROR(DATEDIF(AQ5,"1/4/"&$F$3-1,"y"),"")