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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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