How to Count Product Rows by Manufacturer in Excel
Question details
The user needs to count the number of product rows associated with each manufacturer in an Excel spreadsheet where manufacturer names are repeated.

- Product
- Microsoft Excel 2019
- Device & OS
- not provided
- Scenario
- Summarizing inventory or product data by grouping and counting items per manufacturer.
- Observed behavior
- Manufacturer names appear multiple times in column A, requiring a method to extract unique names and count their total occurrences.
Ensure your manufacturer data in column A does not contain trailing spaces or inconsistent spellings, as these can cause inaccurate counts in formulas or split groups in a PivotTable.
Use the COUNTIF Function to Count Rows
Extract a unique list of manufacturers and use the COUNTIF function to count how many times each name appears in the original column.
The COUNTIF function is perfect for counting cells that meet a single specific criterion. By creating a deduplicated list first, you can cleanly summarize the entire dataset.
Copy the entire list of manufacturers from Column A and paste it into a new column, for example, Column F. Keep the pasted data selected, navigate to the 'Data' tab on the ribbon, and click 'Remove Duplicates'. Click 'OK' to leave only unique manufacturer names.
Click the empty cell next to your first unique manufacturer (e.g., G2). Type the formula =COUNTIF($A:$A, F2) and press Enter.
Select cell G2 again. Click and hold the small square at the bottom-right corner of the cell (the fill handle), and drag it down to the end of your unique manufacturer list to apply the count to all items.

Create a PivotTable for Quick Summarization
Use a PivotTable to automatically group manufacturers and count their products without writing any formulas or manually removing duplicates.
Count and Summarize Data Easily with WPS Office
WPS Spreadsheet offers powerful data analysis tools identical to Microsoft Excel. You can quickly use functions like COUNTIF or build PivotTables to count product rows by manufacturer effortlessly, completely for free.
- 1. Open your Dataset: Launch WPS Spreadsheet and open your product inventory file.
- 2. Insert a PivotTable: Highlight your data, navigate to the Insert tab, and select PivotTable to create a new summary sheet.
- 3. Configure the Fields: Drag the 'Manufacturer' field to the Rows section, and drag it again to the Values section to instantly generate the row count.

Frequently Asked Questions
Why is my COUNTIF formula returning 0 for some manufacturers?
This usually happens due to formatting issues or hidden trailing spaces in the text. Use the TRIM function to remove extra spaces in your raw data, or double-check for minor spelling typos between your unique list and the original column.
Can I count rows based on multiple criteria, such as manufacturer and product category?
Yes, you can use the COUNTIFS function instead of COUNTIF. For example, the formula =COUNTIFS(A:A, "ManufacturerName", B:B, "CategoryName") allows you to count rows that simultaneously meet both conditions.
How do I update my PivotTable counts if I add new product rows?
If you add new data to your source table, the PivotTable does not update instantly. Simply right-click anywhere inside your PivotTable and select 'Refresh'. The counts for each manufacturer will update automatically to reflect the newly added rows.




