Sorting, Filtering, and Counting Question

excelnoobaugust2017

New Member
Joined
Aug 5, 2017
Messages
2
Hi all,

I recently started using Excel and have been trying to solve a problem involve sorting and counting. I'm sure it's been encountered many times before, but am having trouble figuring it out. I tried searching for answers on the forums, but was having trouble putting my question into searches that yielded relevant results, so I thought I'd try posting my own question here.

Essentially I have a spreadsheet like the one below (albeit much longer!):

Unique IDPersonFood Bought
ADylanBurger
BDylanFries
CBillBurger
DBillIce Cream
ESimonBurger
FSimonBurger
GMattFries

<tbody>
</tbody>

I'm trying to sort/filter the different people and count the "food" items they bought so that the data can be organized in a spreadsheet similar to the one below.

PersonBurgerFriesIce Cream
Dylan110
Bill101
Simon200
Matt010

<tbody>
</tbody>

If anyone has any tips/hints/suggestions for how I should go about approaching the problem, it would be much appreciated!

Thanks for the help!
ExcelNoobAugust2017
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Welcome to the MrExcel board!

Excel has a built-in feature (Pivot Table) to do exactly that sort of thing. You'll find it on the 'Insert' ribbon tab. Do some research on that and see how you go, but post back with any specific problems you have.
Here is the data and Pivot Table for your sample data

Excel Workbook
ABCDEFGHIJK
1Unique IDPersonFood BoughtCount of PersonFood Bought
2ADylanBurgerPersonBurgerFriesIce CreamGrand Total
3BDylanFriesBill112
4CBillBurgerDylan112
5DBillIce CreamMatt11
6ESimonBurgerSimon22
7FSimonBurgerGrand Total4217
8GMattFries
PT
 
Upvote 0
Hi Pete_SSs,

Thank you for the help, this was exactly what I was looking for to help point me in the right direction!

Best,
ExcelNoobAugust2017
 
Upvote 0

Forum statistics

Threads
1,214,895
Messages
6,122,128
Members
449,066
Latest member
Andyg666

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