formula to find out total quantity of the item in a data

learning_grexcel

Active Member
Joined
Jan 29, 2011
Messages
319
I have data similar to the following.
ice cream 50
apple 20
orange 30
ice cream 35
apple 15

Now I'm looking for a formula which will find out automatically how many total quantity of ice cream in that table, how many orange in that table, how many apple in that table etc.

Right now I filter and take the total of each item but it takes lot of time because the data is too huge.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
I have been facing one issue with this formula. I hope you can sort it out.
When I put the formula to find out total of any item say ice cream it calculates total in each row with ice cream. But I want it to calculate only once and it should delete the duplicates. How it can be done?

I tried "Remove duplicates" option in Excel, but it doesn't work well.
 
Upvote 0
Try like this - formula in C1 copied down

Excel Workbook
ABC
1x321
2ice cream228
3x7
4ice cream10
5ice cream7
6x5
7x6
8ice cream9
9y88
10z55
Sheet1
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

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