p45cal Well-Known Member Dec 7, 2023 #2 In F2: Code: =IFERROR(DATEDIF(MAX($B$2,DATE(F$1,1,1)),MIN(DATE(F$1+1,1,1),$C2),"M"),0) copy to right.
In F2: Code: =IFERROR(DATEDIF(MAX($B$2,DATE(F$1,1,1)),MIN(DATE(F$1+1,1,1),$C2),"M"),0) copy to right.
Monty Well-Known Member Dec 8, 2023 #4 Belleke said: Thank you Click to expand... Hello Belleka can be made dynamic as: Code: =IFERROR(DATEDIF(MAX($B$2,DATE($F$1,1,1)),MIN(DATE($F$1+1,1,1),$C2),"M"),0 Here, I replaced the static reference F$1 with the dynamic reference $F$1, so if you copy the formula to another cell, it adjusts the reference accordingly.
Belleke said: Thank you Click to expand... Hello Belleka can be made dynamic as: Code: =IFERROR(DATEDIF(MAX($B$2,DATE($F$1,1,1)),MIN(DATE($F$1+1,1,1),$C2),"M"),0 Here, I replaced the static reference F$1 with the dynamic reference $F$1, so if you copy the formula to another cell, it adjusts the reference accordingly.
p45cal Well-Known Member Dec 8, 2023 #5 Monty said: can be made dynamic as: Code: =IFERROR(DATEDIF(MAX($B$2,DATE($F$1,1,1)),MIN(DATE($F$1+1,1,1),$C2),"M"),0 Click to expand... Don't be silly.
Monty said: can be made dynamic as: Code: =IFERROR(DATEDIF(MAX($B$2,DATE($F$1,1,1)),MIN(DATE($F$1+1,1,1),$C2),"M"),0 Click to expand... Don't be silly.