HI there,
Is there an easy way to calculate Last Twelve Months' number if you have leading blanks and lagging blanks in a range of say 100 columns? I've tried the following
=SUM(OFFSET(O9,0,COUNT(P9:DS9),1,-MIN(COUNT(P9:DS9),12)))
Where column O is the starting point,
Count P9:DS9 is the number of months of revenue from a client (could be 1 to 100 months of revenue in a 100 month set),
and the -min part is simply saying take either 12 months or the number of months there, (e.g. 3)
The problem. is my starting point needs to take into account the number of leading blanks but I'm not sure out to add +Countblanks(P9:P___) where ___ needs to be dynamic.
I thought about a way a lookup can find where blanks turn to zeros but I'd need 200 helper cells. Any other thoughts?
Thanks!
-Rick
Is there an easy way to calculate Last Twelve Months' number if you have leading blanks and lagging blanks in a range of say 100 columns? I've tried the following
=SUM(OFFSET(O9,0,COUNT(P9:DS9),1,-MIN(COUNT(P9:DS9),12)))
Where column O is the starting point,
Count P9:DS9 is the number of months of revenue from a client (could be 1 to 100 months of revenue in a 100 month set),
and the -min part is simply saying take either 12 months or the number of months there, (e.g. 3)
The problem. is my starting point needs to take into account the number of leading blanks but I'm not sure out to add +Countblanks(P9:P___) where ___ needs to be dynamic.
I thought about a way a lookup can find where blanks turn to zeros but I'd need 200 helper cells. Any other thoughts?
Thanks!
-Rick