Sum of numbers associated with text

MistyWind

New Member
Joined
Dec 29, 2020
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Hello. My data is structured as such below except I have hundreds of unique products. How can I tell how many items were purchased per product? My goal is to determine which products sold the most and how many units were purchased of each. Thanks in advance.

ProductHow many purchased
Apple2
Banana2
Orange1
Apple1
Grapes2
Grapes1
Orange4
Apple3
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Try:

Book1
ABCDE
1FruitCountFruitCount
2Apple2Apple6
3Banana2Orange5
4Orange1Grapes3
5Apple1Banana2
6Grapes2
7Grapes1
8Orange4
9Apple3
10
Sheet9
Cell Formulas
RangeFormula
D2:E5D2=LET(a,UNIQUE(A2:A10),b,FILTER(a,a<>""),SORT(CHOOSE({1,2},b,SUMIFS(B2:B10,A2:A10,b)),2,-1))
Dynamic array formulas.
 
Upvote 0
Solution
I feel like my question was a very simple one but it required such a complex formula. Either way, this worked out great. Thank you so much.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,242
Members
452,623
Latest member
russelllowellpercy

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