Dynamic subtotals?

jackz

New Member
Joined
Aug 16, 2011
Messages
4
Hi everyone,

this is my first post in the forum.

I have a question for all you experts: I have a list of people attending an event - which is going to be updated in the next days - and my boss wants me to create a summary page with the names of the companies these people work in, and the number of attendees for each of them.

Practical example:

this is the input sheet:

Name - Company

Mr.X - ABC Ltd
Ms.Y - ABC Ltd
Eddie - XYZ Inc.
... - ...


The output should look like

Company - Attendees
ABC Ltd - 2
XYZ Inc. - 1
etc.etc.

I hope it's clear

It'd be pretty easy if I were allowed to use subtotals, but - since the worksheet will be updated - it should be dynamic. Could anyone give lend me a hand of this? It'd be much appreciated.
Thanks!

j
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
sorry for the double posting.

I have tried using a drop-down list and a COUNTIF function, but names on the list have to be manually chosen anyways
 
Upvote 0
It sounds like a pivot table would work.

It also looks like =COUNTIF(B1:B10,"XYZ corp") is the number of attendees that work for XYZ Corp
 
Upvote 0
thanks mike! The pivot table might work indeed... I just have to find a way so that the table's size (its rows) increases automatically as new companies are entered in the input sheet.
Is it possible to define the pivot table data-range in such a way?
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,754
Members
452,940
Latest member
rootytrip

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