Sum all amounts of same criteria

forginganewone

Board Regular
Joined
Mar 14, 2018
Messages
64
I have a 25000 row sheet in which there are serial numbers in column A and amount is column B.
Lets suppose i take column A and paste it on another sheet and remove duplicates, now i have unique serials.
Now i want to Sum all the values (Column B) coming against these serials (Column A).
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
How about, in C2 & copy down
=IF(COUNTIF(A$2:A2,A2)=1,SUMIF(A$2:A$25000,A2,B$2:B$25000),"")
 
Upvote 0
Glad to help & thanks for the feedback
 
Upvote 0
Note that Excel's built-in Pivot Table feature would also create that this of unique serial numbers and calculate the totals for you. It's on the Insert ribbon tab.
 
Upvote 0
Thank you Peter for your valuable input. I wanted a formula particularly so that i can nest it with other criterieas later on. As i have to pick data from same source for different sheet with different requirements.
 
Upvote 0

Forum statistics

Threads
1,224,884
Messages
6,181,572
Members
453,054
Latest member
arz007

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