Excel numerical classification summary + segmented statistics: pivot table

1. Existing data: a column of numbers as shown in the figure below.

Insert image description here

2. Question:

1) Count the number of each number;
2) Count the number of numbers within the segment range.

3. Solution

Question 1

(1) First, you need to add a field name (i.e. column name, named here as value) to the value of the column to be counted. At the same time, you must add an auxiliary column as the unique identifier of each value. Here, add its field name. Set it to serial number, and use the arithmetic sequence in auto-fill to fill the serial number column, as shown in the figure below.
Insert image description here
(2) Set statistical parameters, complete classification and summary, and obtain the number of each value.
Insert image description here

Question 2

Based on the results of the previous step, select a row of numbers, right-click and set the segment range to get the segmented statistical results.
Insert image description here
Insert image description here

Reference: How to use EXCEL pivot table to count the number of specified data ranges

Guess you like

Origin blog.csdn.net/meiyoushui_/article/details/121864641