Written by Allen Wyatt (last updated May 12, 2023)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365
Suppose that you have two adjacent columns of data. In the first column you have a list of names and in the second column a list of states. If you want to find out how many people live in each state, you can use the subtotaling features of Excel. To use this feature to answer your query, follow these steps:
Figure 1. The Name/State Fields of the Subtotal dialog box.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (8035) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Counting with Subtotals.
Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!
Excel allows you to work with your data in many different ways. One way is to convert your data to a structured table. ...
Discover MoreCells that affect another cell are called precedent cells. If you need to know which cells affect a particular cell, ...
Discover MoreExcel provides some great tools that can help you see the relationships between the formulas in your worksheets. These ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2023-07-05 09:31:49
Billy Thomas
To Count when using the SUM function. put a"1" in each cell in an inserted or added column or use an existing column that has unneeded data. Then add the SUM Subtotal to that column also. The result will be the columns you want to sum, plus the count in the column of 1's.
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments