I am trying to determine the number of active months for personnel on a rolling 12 month basis. This is the formula I'm currently using but am getting an incorrect result value. I'm new to offset so I know I must be missing something simple.
=COUNTA(OFFSET(D2,0,COUNTA(D2:AA2),1,-12))
=COUNTA(OFFSET(D2,0,COUNTA(D2:AA2),1,-12))