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

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
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,216,342
Messages
6,130,114
Members
449,558
Latest member
andyamcconnell

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