Given a name, how can I find the subtotal of rows matching that name?

Sir Funk

New Member
Joined
Jan 13, 2011
Messages
11
Good morning,

I have a large list of data associated with a person's name. I would like to get a count of how many items are in that list given a person's name.

That is, instead of having a subtotal at the bottom of the list and filtering the list by each person's name to get their count, I would like another tab that lists each person's name and is able to dynamically count how many times that person's name appears on the list in the first tab. I've already extracted each of the unique names on the list, I'm just having trouble constructing a function to finish my task.

I hope I'm explaining myself correctly, it's still pretty early in the morning here! ;)

Thanks!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Try the countif function...

=COUNTIF('Sheet1'!A:A,A2)

Where Sheet1 column A is the original data,
And the formula is on another sheet with your unique list of names starting in A2

Hope that helps.
 
Upvote 0
Hi. Perhaps

=COUNTIF(Sheet1!A:A,A1)

where A1 holds a person's name and the list is in column A of Sheet1.
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,789
Members
452,942
Latest member
VijayNewtoExcel

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top