Combined · COUNT / SUM per block
Put a total in every blank row of a column (sized to the rows above)
When a column has blocks of data separated by blank rows, each blank row can get its own SUM / COUNT over just the block above it.
A11 =COUNT(A2:A10) A17 =COUNT(A12:A16) A25 =COUNT(A18:A24)Write it for my sheet
Examples
| Type this in the Formula Studio | Formula |
|---|---|
| “count from A2 to A10 and add this formula everywhere blanks are there in A column and adjust according to upper table” | =COUNT(A2:A10) |
| “sum in all blank cells of column A” | =SUM(A2:A10) |
Tips
- The studio previews every blank cell with its own range before anything is written, and one undo removes them all.
People also search for
FAQ
Is there a built-in way to add totals per group?
Yes, Data > Subtotal inserts a SUBTOTAL row at each change in a sorted column. It adds its own rows rather than filling your existing blank rows.
Why use SUBTOTAL instead of SUM for group totals?
SUBTOTAL ignores other SUBTOTAL cells in its range, so a grand total =SUBTOTAL(9,D2:D100) does not double-count group totals.
Can LoveByPDF write this formula for me?
Yes. Open your Excel file in the Excel Agent's Formula Studio, click a cell and type what you need - e.g. "count from A2 to A10 and add this formula everywhere blanks are there in A column and adjust according to upper table" - you get the formula, a preview on your sheet and an explanation, then insert it.
Related formulas
- Combined formulasHow to use multiple formulas in one Excel cell
- SUMSUM formula in Excel - add up cells, rows and columns
- AVERAGEAVERAGE formula in Excel - the mean of a range
- COUNT, COUNTA, COUNTBLANKCOUNT vs COUNTA vs COUNTBLANK - counting cells in Excel
- MAX, MINMAX and MIN in Excel - highest and lowest value