L
lampatmyfeet
I need to compute the number of years, months and days between dates. After
doing so: if days >= 15 then add 1 to month and days becomes 0, then if
months > 9 add 1 to year and then months becomes 0.
I will need to do this for several rows and them sum up the individual columns
My format is as follows:
A B C D E F G
Date 1 thru Date 2 = yy mm dd
Date 3 thru Date 4 = yy mm dd
..
..
..
TOTAL YY MM DD
the numbers is columns E,F & G are the differances between dates 2 and 1
Date X is formated at follows mm/dd/yyyy
I have tried several formulas but seem to leave out some component. My
latest iteration for computing years is
=YEAR(C9)-YEAR(A9)-IF(OR(MONTH(C9)<MONTH(A9),AND(MONTH(C9)=MONTH(A9),DAY(C9)<DAY(A9))),1,0)&""
but this formula will not allow me to total the column and the problem is
the same for the months and day columns.
Any help?
doing so: if days >= 15 then add 1 to month and days becomes 0, then if
months > 9 add 1 to year and then months becomes 0.
I will need to do this for several rows and them sum up the individual columns
My format is as follows:
A B C D E F G
Date 1 thru Date 2 = yy mm dd
Date 3 thru Date 4 = yy mm dd
..
..
..
TOTAL YY MM DD
the numbers is columns E,F & G are the differances between dates 2 and 1
Date X is formated at follows mm/dd/yyyy
I have tried several formulas but seem to leave out some component. My
latest iteration for computing years is
=YEAR(C9)-YEAR(A9)-IF(OR(MONTH(C9)<MONTH(A9),AND(MONTH(C9)=MONTH(A9),DAY(C9)<DAY(A9))),1,0)&""
but this formula will not allow me to total the column and the problem is
the same for the months and day columns.
Any help?