Pivot Table Issues

How to Show the First Serial Number for Each Item in an Excel PivotTable in WPS Office

Emma BrownEmma Brown Nov 13, 2026 869 views

Question details

The user needs to display the first serial number for each grouped item in an Excel-style PivotTable in WPS Office, even though standard PivotTables do not natively return the first text value from a group.

How to Show the First Serial Number for Each Item in an Excel PivotTable in WPS Office
Product
WPS Office Spreadsheet
Device & OS
not provided
Scenario
The user is building an item report from data that contains item descriptions and serial numbers, and wants a compact PivotTable that shows each item with its first serial number.
Observed behavior
A standard PivotTable returns counts or sums of numeric values, but cannot directly aggregate or return only the first serial number text value for each item.
Before you start

Confirm that the source data is in a table or contiguous range with separate columns for the item name and serial number, and open the workbook in WPS Office Spreadsheets before adding helper columns or PivotTable layout changes.

Solution 1Recommended

Use a Helper Column to Flag the First Serial Number for Each Item

Recommended when you need a dynamic, refreshable PivotTable that reliably shows only the first serial number for each item.

WPS Office PivotTables summarize values, but they do not have a built-in 'first text' aggregation. A helper column in the source data gives the PivotTable a clean field that contains the first serial number and blanks for all later rows.

1
Insert a helper column next to the source data

Open the source sheet in WPS Office Spreadsheets and add a new column with the header “First Serial” beside the existing data.

2
Enter the COUNTIF-based first-row formula

In the first data row, enter =IF(COUNTIF($A$2:A2,A2)=1,B2,"") if column A contains the item and column B contains the serial number, then drag the fill handle down through all rows.

3
Create a PivotTable from the updated range

Select the source range including the helper column, click Insert > PivotTable, and choose a new worksheet or existing worksheet location.

4
Add fields to the Rows area

In the PivotTable Fields pane, drag Item, Description, and First Serial to the Rows area to display the item details and the first serial only.

5
Apply a clean tabular layout

Click the PivotTable, go to Design > Report Layout > Show in Tabular Form, then click Design > Subtotals > Do Not Show Subtotals.

Use a Helper Column to Flag the First Serial Number for Each Item
Result: The PivotTable now lists each item once with its first serial number, and non-first serial rows are blank in the source column.

Create a First Serial Number PivotTable in WPS Office

WPS Office Spreadsheets can handle this reporting task with a helper column and standard PivotTable layout controls, so you can produce the first serial number per item without a separate Microsoft Office workflow.

  1. 1. Open the workbook in WPS Office Spreadsheets: Launch WPS Office, click Open, and select the Excel workbook that contains the item and serial number data.
  2. 2. Add a helper column to the source data: Insert a new column named “First Serial” next to the source data range.
  3. 3. Flag the first serial number for each item: Enter =IF(COUNTIF($A$2:A2,A2)=1,B2,"") in the first data row and fill down to mark only the first serial for each item.
  4. 4. Insert the PivotTable: Select the source range including the helper column, then click Insert > PivotTable and choose a new worksheet.
  5. 5. Build the report with tabular layout: Drag Item, Description, and First Serial into the Rows area, then click Design > Report Layout > Show in Tabular Form and Design > Subtotals > Do Not Show Subtotals.
Shows the first serial number per item by combining a helper formula with a standard PivotTable.Opens, edits, and saves .xlsx workbooks with full Microsoft Excel compatibility.Uses the familiar ribbon layout, PivotTable Field panel, and Design tab tools.Free, lightweight Office suite for quick item reporting and spreadsheet editing.
microsoft office alternative - wps office

Frequently Asked Questions

Why can’t a standard PivotTable return the first serial number for each item?

A standard PivotTable is designed to aggregate values with functions such as Sum, Count, and Average. It does not have a built-in “first text” or “first serial number” aggregation, so you need a helper column, Power Query, or a formula-based summary.

How do I stop the PivotTable from showing nested item headings?

Click the PivotTable, go to Design > Report Layout > Show in Tabular Form, and then go to Design > Subtotals > Do Not Show Subtotals to keep the rows clean.

What formula can I use to keep only the first serial number for each item?

If column A contains the item and column B contains the serial number, use =IF(COUNTIF($A$2:A2,A2)=1,B2,"") and fill it down. This returns the serial number on the first occurrence and blank on later occurrences.

Will this PivotTable method work with .xlsx Excel files in WPS Office?

Yes. WPS Office Spreadsheets supports .xlsx files, PivotTables, and the Design tab layout commands used in this workflow.

Can I use Power Query instead of a helper column?

If your Excel or WPS environment supports Power Query, you can group the source table by item and take the first serial number before loading the result into a PivotTable, but the helper column method is often quicker for a single report.