Pivot Table Issues

How to Average Groups of Three Values in a WPS Office Spreadsheets PivotTable

Khadija KhanKhadija Khan Nov 13, 2026 869 views

Question details

The user needs to calculate the average of each group of three control or treatment replications for plant traits in a PivotTable.

Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
A dataset contains three control and three treatment replications for each plant trait, and the user wants to summarize the grouped average in a PivotTable.
Observed behavior
The expected result is an average value for each sample, trait, and treatment group instead of a count or sum.
Before you start

Arrange the source data in a normalized table with separate columns for Sample, Trait, Treatment, Replication, and Value. Make sure there are no blank rows, merged cells, or text entries in the Value column before inserting the PivotTable.

Solution 1Recommended

Create a normalized table and average groups with a WPS Spreadsheets PivotTable

Use this method when you can restructure the source data so the PivotTable groups by Sample, Trait, and Treatment and averages the Replication values.

The PivotTable calculates averages correctly when each replication is in its own row. If the source data is already in a wide layout, convert it to a long or normalized layout first.

1
Prepare the source data in a normalized table

In WPS Office Spreadsheets, create a table with separate columns: Sample, Trait, Treatment, Replication, and Value. Enter each of the three control replications and three treatment replications as individual rows under the same Treatment label.

2
Select the data range and insert a PivotTable

Select any cell in the data range, click the Insert tab, and choose PivotTable. Confirm the data range and choose to place the PivotTable in a new worksheet.

3
Add rows for Sample, Trait, and Treatment

In the PivotTable Fields pane, drag Sample, Trait, and Treatment to the Rows area. This groups the rows by each sample, trait, and treatment group, including the three replications.

4
Set the value field to calculate Average

Drag the Value field to the Values area. Click the field in the Values area, choose Value Field Settings, select Average under Summarize value field by, and click OK.

5
Review the grouped averages

Check that each group of three replications now shows one average value in the PivotTable. For example, the Treatment group for a trait should display the mean of its three replication rows.

PivotTable averages each group: The PivotTable now summarizes each Sample-Trait-Treatment group by Average instead of Sum or Count.
WPS Spreadsheets PivotTable

How to Average Groups of Three Values in a WPS Office Spreadsheets PivotTable

WPS Office Spreadsheets provides a built-in PivotTable where you can group Sample, Trait, and Treatment fields and set the Value field to Average. It opens Excel .xlsx workbooks directly, so you can calculate grouped averages in a free and familiar spreadsheet environment.

  1. 1. Download and install WPS Office: Go to the official WPS Office download page, download the installer for Windows, macOS, or mobile, and complete the installation.
  2. 2. Open your Excel workbook in WPS Spreadsheets: Launch WPS Office, click Open, and choose the .xlsx workbook that contains the plant trait replication data.
  3. 3. Normalize the data if needed: Use WPS Spreadsheets to arrange Sample, Trait, Treatment, Replication, and Value in separate columns so each replication is a row.
  4. 4. Insert and configure the PivotTable: Click Insert > PivotTable, add Sample, Trait, and Treatment to Rows, add Value to Values, open Value Field Settings, and choose Average.
  5. 5. Save and share the result: Click Menu > Save As and keep the .xlsx format to retain compatibility with Excel.
Built-in PivotTable Value Field Settings make grouped averages simple to configure.Full compatibility with Excel .xlsx and .xls files.Free, lightweight Office suite with a familiar ribbon layout.No add-ins or paid plugins required for pivot table averages.Cross-platform support for Windows, macOS, Linux, Android, and iOS.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my PivotTable show a count instead of the average for each group?

The value field is likely set to Count. Click the value field in the Values area, open Value Field Settings, select Average, and click OK.

Do I need to restructure my wide dataset before creating the PivotTable?

Yes. For WPS Spreadsheets to average each group of three replications, each replication must be in its own row with columns for Sample, Trait, Treatment, Replication, and Value.

Can I save the resulting PivotTable and open it in Excel later?

Yes. WPS Spreadsheets supports .xlsx files and preserves the PivotTable structure, so the workbook remains compatible with Microsoft Excel.

What formula can replace a PivotTable for grouped averages?

Use =AVERAGEIFS(ValueRange, SampleRange, sample_cell, TraitRange, trait_cell, TreatmentRange, treatment_cell) to average the three matching replications for each group.

How do I add nested groups in the PivotTable?

In the PivotTable Fields pane, drag Sample, Trait, and Treatment to the Rows area in the order you want. WPS Spreadsheets then creates nested row groups before applying the average calculation.