How Do You Subtotal with Autofilter in Excel?

Tyler D. picture Tyler D. · Jul 27, 2011 · Viewed 7.3k times · Source

I am currently working on an Excel sheet of list of people working in a company. The company has multiple teams and multiple positions and I've listed them all in an Excel sheet (I am using Excel 2007). And because the positions and the list of people may differ on daily basis (based on who gets promoted or fired) I had to make date column and place a filter on the "date", "position", and "team".

Now I want to make it so that I filter it out for, let's say, year = 2011, position = team manager, team = information tech. team. I have managed to get this far on my own but now I am wondering when I filter this out (out of 700+ lines), based on the position or team name, if I can add the total number of people under the same team or same positions.

For example, if there are 10 people under information tech. team, can I make it so it displays "total number of people = 10", without me having to count each one of them by hand when I apply the filter? Also, if there are 4 people under information tech. team as the manager, it would show that "total number of managers under IT team = 4".

Are there any commands or methods I can use in Excel to do this?

Answer

Lance Roberts picture Lance Roberts · Jul 27, 2011

Enter the following in the cell you want it in, and it will change, as per this link:

=SUBTOTAL(3, C2:C1000)