A1:A50 are populated with the number 1.
Delete the entries in rows 17, 26 and 27.
I need a formula that sums the twelve populated rows above it starting at row 13 and continuing to row 50.
So far the best I can get is a SUM(OFFSET that adds on the number of blanks in the default 12 rows via COUNTIF, but that fails every time the 13th row back is also blank. I could of course repeat that trick, but potentially there could be gaps even wider, so that wouldn't prevent inaccuracy.
Can anybody suggest (or point me to a previous thread, I have looked) to sum the most recent 12 populated cells, irrespective of the size that range is required to be?
Thanks in advance!
Delete the entries in rows 17, 26 and 27.
I need a formula that sums the twelve populated rows above it starting at row 13 and continuing to row 50.
So far the best I can get is a SUM(OFFSET that adds on the number of blanks in the default 12 rows via COUNTIF, but that fails every time the 13th row back is also blank. I could of course repeat that trick, but potentially there could be gaps even wider, so that wouldn't prevent inaccuracy.
Can anybody suggest (or point me to a previous thread, I have looked) to sum the most recent 12 populated cells, irrespective of the size that range is required to be?
Thanks in advance!