Calculation Issues

How to Average Every 12th Row Starting at Row 6 in WPS Office Excel

John WilsonJohn Wilson Nov 13, 2026 869 views

Question details

The user needs a formula that averages values in column C at rows 6, 18, 30, 42, and every subsequent 12th row while ignoring blank cells.

How to Average Every 12th Row Starting at Row 6 in WPS Office Excel
Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
The user has data in column C and wants to calculate the average of only the values located at 12-row intervals beginning at row 6.
Observed behavior
The goal is to return a single average value from rows 6, 18, 30, 42, and later matching rows without counting empty cells.
Before you start

Open the workbook in WPS Office Spreadsheets and identify the column that contains the values to average. If the data may extend beyond row 1000, plan to update the range references before entering the formula.

Solution 1Recommended

Use AVERAGE with MOD and ROW to Average Every 12th Row Starting at Row 6

Use this formula when you need one average from rows 6, 18, 30, 42, and every 12th row after that while excluding blank cells.

The formula checks row numbers with MOD(ROW(C6:C1000),12)=6 and includes only nonblank cells from column C. It works in current WPS Office Spreadsheets as a normal formula and can also be entered as an array formula in older spreadsheet engines.

1
Select cell J6

Click cell J6, or any empty cell where you want the average result to appear.

2
Enter the average formula

Type =AVERAGE(IF((MOD(ROW(C6:C1000),12)=6)*(C6:C1000<>""),C6:C1000)) into the formula bar.

3
Confirm the formula

Press Enter. In older Excel or WPS versions that do not support dynamic arrays, press Ctrl+Shift+Enter instead to confirm it as an array formula.

4
Adjust the range if needed

If your data goes beyond row 1000, change both C6:C1000 references to a larger range such as C6:C5000.

Use AVERAGE with MOD and ROW to Average Every 12th Row Starting at Row 6
Formula returns the targeted average: The result is the average of nonblank column C values whose row numbers are 6, 18, 30, 42, and so on through the range.
Direct solution in WPS Office

Use WPS Office Spreadsheets to Average Every 12th Row from Row 6

WPS Office Spreadsheets supports the same AVERAGE, MOD, ROW, and IF functions, so you can calculate the targeted average directly in a familiar Excel-compatible interface without extra purchases or macros.

  1. 1. Open WPS Office Spreadsheets: Launch WPS Office, open the workbook, and go to the sheet that contains the values in column C.
  2. 2. Select the result cell: Click cell J6 or any empty cell where you want the average to appear.
  3. 3. Enter the formula: Type =AVERAGE(IF((MOD(ROW(C6:C1000),12)=6)*(C6:C1000<>""),C6:C1000)) and press Enter, or Ctrl+Shift+Enter in older versions that require array confirmation.
  4. 4. Verify the result: Check that the returned average matches rows 6, 18, 30, 42, and subsequent 12-row intervals in your data.
Built-in Excel-compatible formulas for AVERAGE, MOD, ROW, and IFOpens and saves .xlsx, .xls, and other Microsoft Excel formatsFree, lightweight, and easy-to-use spreadsheet toolsDynamic array support and legacy Ctrl+Shift+Enter compatibilityHandles blank cells correctly in the same formula logic
microsoft office alternative - wps office

Frequently Asked Questions

Will this formula work in WPS Office Spreadsheets?

Yes. WPS Office Spreadsheets supports the AVERAGE, IF, MOD, and ROW functions. In current versions, you can enter the formula normally; in older versions, confirm it with Ctrl+Shift+Enter.

How do I change the formula if my data extends past row 1000?

Replace both C6:C1000 references with a larger range such as C6:C5000 or C6:C10000, making sure both ranges are identical.

Why does the formula use MOD(ROW(C6:C1000),12)=6?

It includes rows whose row number leaves a remainder of 6 when divided by 12. Row 6, 18, 30, 42, and every 12th row after that all satisfy this condition.

Does the formula ignore blank cells in the selected rows?

Yes. The condition C6:C1000<>"" excludes blanks so blank cells are not counted in the average.

Can I average every 12th row in a different column?

Yes. Change the column letter in C6:C1000 to the column that contains your values, such as D6:D1000, in all parts of the formula.