Excel COUNTIF Formula to Count Across Columns When Copied Down
Question details
Create a summary formula that counts a status in successive source columns when copied down.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A summary table needs one count per source column for cells containing "In Progress".
- Observed behavior
- Dragging a standard COUNTIF formula down changes its row references rather than advancing to the next source column.
Identify the source range and the status text you want to count. The example uses C9:BA48 and counts cells equal to "In Progress".
Use INDEX with COUNTIF to Advance One Column per Summary Row
Use this formula when your source data runs across columns but your summary runs down rows.
INDEX selects a column within the fixed source range. Its empty row argument selects all rows in that column, while ROW(A1) supplies the column number and changes to ROW(A2), ROW(A3), and so on as the formula is copied down.
Select the first count cell in the summary table and enter =COUNTIF(INDEX($C$9:$BA$48,,ROW(A1)),"In Progress").
Drag the fill handle down the summary column. The first formula counts C9:C48, the second counts D9:D48, and subsequent rows count successive columns.
Edit $C$9:$BA$48 in the formula if the data extends beyond the defined rows or columns, then copy the updated formula down. Keep the number of summary formulas within the number of columns in the range.

Count Successive Columns in WPS Spreadsheet
Use the same INDEX and COUNTIF formula in WPS Spreadsheet to build a vertical summary of counts across source columns.
- 1. Open your workbook: Open WPS Spreadsheet and use Open to select your Excel workbook.
- 2. Enter the formula: Select the first summary cell and enter =COUNTIF(INDEX($C$9:$BA$48,,ROW(A1)),"In Progress"), adjusting the range and status text as needed.
- 3. Fill down: Drag the cell's fill handle down to count each successive source column.
- 4. Save the workbook: Use File > Save As and choose an Excel format such as XLSX if you need to share the workbook with Excel users.

Frequently Asked Questions
What does the empty argument in INDEX mean?
In INDEX($C$9:$BA$48,,ROW(A1)), the omitted row argument selects all rows in the column specified by ROW(A1). COUNTIF then counts matching cells in that column.
Why does ROW(A1) change the source column when I copy down?
ROW(A1) returns 1 for the first formula. When copied down, it becomes ROW(A2), which returns 2, so INDEX selects the second column of the fixed source range.
How do I count a different status?
Replace "In Progress" in the COUNTIF formula with the status you want to count, such as "Complete", then copy the formula down.
Will the formula count newly added rows or columns?
The formula counts only cells within its INDEX range. Excel can expand the reference when rows or columns are inserted inside it, but you must update the range for data added outside it.




