Learn Excel - Count by Country: Podcast #1333

If you like this content, please consider visiting the video on YouTube and subscribe to the MrExcel Channel to show your support!
This video has been published on Jan 31, 2011.
Today, in Episode #1333, Bob asks if there is an easy way to count how many records are located in each country in a Data Set. Though Bob was hoping for an "=CountByCountry" Function, I employed a Pivot Table instead. "Excel 2010 In Depth"
maxresdefault.jpg


Transcript of the video:
MrExcel podcast is sponsored by Easy-XL.
Learn Excel from MrExcel podcast, episode, 1333.
Count by Country.
Hey, welcome back to the MrExcel netcast.
I'm Bill Jelen.
Today's question sent in by Bob.
Bob has a huge data set here while 700 records or so and he needs to count how many items are in each country or know if there is a count by country function.
Bob there's not a count by country function, but there is a Pivot table, so we'll do insert pivot table.
Now, I only have to choose one cell in the selection here and it automatically extends out A1 through C711, perfect, click [ ok ] and we get a brand new screen.
Well, we definitely want country along the row labels definitely, but how do I count?
Well, the best way to count is to take a field that is text that, you know is filled in, in all cases.
So, I'll take the location field and take that to the values area and automatically, they are going to count.
So, we have Albania with 4, Argentina with 11, Australia with 27, this one here concerns me the 0, we should double click there, in order to see which records those are.
Sounds like, they weren't coded those fields or blank and then one more thing we can do here, is go to count up location.
Actually, now I'm going to go to the row labels drop down and say more sort options.
I want to sort descending based on, count location, click [ ok ], and there's our answer.
Okay, now we need to go back and figure out what those four missing countries were, but let's say that we've done that and we're done.
This is a pivot table, which is going to prevent us from doing certain things to it.
So, I'm going to copy everything except for the grand total, [ control C ] to copy.
[ Control N ] for new and then paste special, that's [ alt E S V ], click [ ok ].
There is my list, so we have country and count.
There you go, all right.
Hey! Bob, Thanks for sending that question in, thanks to you for stopping by.
See you next time for another net cast from MrExcel.
Hey, a special invitation if you have cut the cable and are now watching your TV via Roku.
We are now available through a roku box.
You have to add the media fly channel, once you're in media fly go ahead and search, search for MrExcel.
Get the last five or so episodes there in.
Just glorious streaming television, plenty of other places to catch up with our articles, things like that.
Thanks for stopping by, we’ll see you next time for another netcast from MrExcel.
 

Forum statistics

Threads
1,223,728
Messages
6,174,150
Members
452,548
Latest member
Enice Anaelle

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