Good Day,
In the attached I am trying to accomplish: (Row 5)
1. Count How many calendar quarters (3 mo) between columns "H" and "A", IF column F is blank.
2. IF column "F" is not blank, then count quarters between columns "F" and "A".
And
3. IF column "P" is a (1) then I want to subtract 12 months from the count.
4. IF column "P" is a (2) then I want to subtract 24 months from the count.
5. IF column "P" is a (3) then I want to subtract 36 months from the count.
To get the quarters, I am attempting to devide by 4 at the end of the formula.
Here is what I have so far:
=IFERROR(IF(OR(AND(P5=1, IF(ISBLANK(F5),DATEDIF(H5,A5,"m"),DATEDIF(F5,A5,"m"))-12,IF(OR(AND(P5=2, IF(ISBLANK(F5),DATEDIF(H5,A5,"m"),DATEDIF(F5,A5,"m"))-24,IF(OR(AND(P5=3, IF(ISBLANK(F5),DATEDIF(H5,A5,"m"),DATEDIF(F5,A5,"m"))-36,)),0)/4
I'm not even sure if I'm close. any help would be great......
Thank you
Bookmarks