Pivot Table Issues

How to Group Excel Rows by Family Name and Find Minimum Age

Amos GikundaAmos Gikunda Oct 21, 2026 869 views

Question details

The user needs to organize customer records into groups based on their family name and identify the lowest age within each family group.

How to Group Excel Rows by Family Name and Find Minimum Age
Product
Excel
Device & OS
not provided
Scenario
Organizing customer records or demographic data to find the youngest member of each family.
Observed behavior
Displaying a consolidated summary list of family names alongside the youngest age in each respective family.
Before you start

Ensure your dataset has clear column headers, specifically for 'Family Name' and 'Age', and that there are no blank rows or columns within your data range.

Solution 1Recommended

Use a PivotTable to Group and Calculate Minimum Age

The most efficient method to group records and perform custom calculations like finding the minimum value is by utilizing the built-in PivotTable feature.

PivotTables allow you to dynamically summarize large datasets without altering the original source data. By changing the default aggregation method from 'Sum' or 'Count' to 'Minimum', you can easily isolate the youngest age per family group.

1
Insert a PivotTable

Select your entire source data range. Navigate to the 'Insert' tab on the ribbon and click 'PivotTable'. Choose whether to place it on a new worksheet or the existing one, then click 'OK'.

2
Configure the Row Labels

In the PivotTable Fields pane on the right side of your screen, drag the 'Family Name' field into the 'Rows' area to create a unique list of families.

3
Add Age to Values

Drag the 'Age' field into the 'Values' area. By default, Excel may calculate the Sum or Count of the ages.

4
Change Calculation to Minimum

Click on the Age field in the 'Values' area and select 'Value Field Settings'. In the dialog box, choose 'Min' from the 'Summarize value field by' list and click 'OK'.

Use a PivotTable to Group and Calculate Minimum Age
Working with Dates of Birth: If your dataset uses 'Date of Birth' instead of 'Age', you should summarize the date field by 'Maximum' (Max) instead of Minimum, as the most recent (maximum) date corresponds to the youngest person.
Data Analysis in WPS Spreadsheet

Group and Analyze Data Easily with WPS Spreadsheet

WPS Spreadsheet provides powerful and intuitive PivotTable features, allowing you to seamlessly group family names and calculate minimum ages with just a few clicks.

  1. 1. Open Your Data: Launch WPS Spreadsheet and open your customer records file.
  2. 2. Create a PivotTable: Highlight your data table, navigate to the 'Insert' tab, and click on 'PivotTable'.
  3. 3. Arrange Your Fields: Drag 'Family Name' to the Rows box and 'Age' to the Values box in the task pane.
  4. 4. Set to Minimum: Right-click the values column in your PivotTable, navigate to 'Summarize Values By', and select 'Min' to display the lowest age.
Advanced PivotTable features for quick data grouping and age calculation.100% compatible with Microsoft Excel (.xlsx, .xls) file formats.Free, lightweight, and features a familiar interface for seamless migration.
microsoft office alternative - wps office

Frequently Asked Questions

Can I filter the PivotTable to only show families with a minimum age above 21?

Yes, click the filter dropdown arrow next to 'Row Labels' in the PivotTable. Select 'Value Filters', choose 'Greater Than or Equal To', and enter 21 in the prompt.

Why does my PivotTable show a count of ages instead of the minimum?

By default, Excel summarizes numerical data as a 'Count' if there are blank cells or text values in the column. You can manually correct this by clicking the field in the Values area, selecting 'Value Field Settings', and choosing 'Min'.

How do I refresh the minimum age if I add new family members to the original data?

After adding new rows to your source data, simply right-click anywhere inside the PivotTable and select 'Refresh' from the context menu. Ensure your PivotTable data source range includes the newly added rows.