I have the formula below that each part works on its own but when I put it all together I keep getting a message about too manny arguments. I googled everthing I could find and nothing works for what I am trying to do. All the formulas I have found do work on Window Excel but not Mac excel. I have a list of events that include birthdays and deceased days among others. I am trying to get the age at death. Only a few dates are before 1900. I can easily do dates after 1900, but not the ones before (not in this If Statement). Thanks again in advance for any help that comes my way
Birthdays are in column C and the day of death is in column R.
Formula:
=IF(C5="","",IF(R5<>"",IF(AND(C5>=0,C5<=2958465),DATEDIF(C5,R5,"Y"),"Approx "&RIGHT(TEXT(R5,"DD MMM YYYY"),4)-RIGHT(TEXT(C5,"DD MMM YYYY"),4),DATEIF(C5,TODAY(),"Y")))
Forula By If Statements:
=IF(C5="",
"",
IF(R5<>"",
IF(AND(C5>=0,C5<=2958465),
DATEDIF(C5,R5,"Y"),
"Approx "&RIGHT(TEXT(R5,"DD MMM YYYY"),4)-RIGHT(TEXT(C5,"DD MMM YYYY"),4),
DATEIF(C5,TODAY(),"Y")))
Hope this helps make it a little clearer.
Birthdays are in column C and the day of death is in column R.
Formula:
=IF(C5="","",IF(R5<>"",IF(AND(C5>=0,C5<=2958465),DATEDIF(C5,R5,"Y"),"Approx "&RIGHT(TEXT(R5,"DD MMM YYYY"),4)-RIGHT(TEXT(C5,"DD MMM YYYY"),4),DATEIF(C5,TODAY(),"Y")))
Forula By If Statements:
=IF(C5="",
"",
IF(R5<>"",
IF(AND(C5>=0,C5<=2958465),
DATEDIF(C5,R5,"Y"),
"Approx "&RIGHT(TEXT(R5,"DD MMM YYYY"),4)-RIGHT(TEXT(C5,"DD MMM YYYY"),4),
DATEIF(C5,TODAY(),"Y")))
Hope this helps make it a little clearer.