Use SUMIF? Sum of Column According to #in Another Column

ExcelNinjaWannaBe

New Member
Joined
Aug 7, 2007
Messages
6
I am trying to find the sum of numbers that are in Column B that correspond to certain buckets of numbers from Column A. For example:

Column A--------Column B
# of items---------Size
548----------------3,000
1,500--------------2,549
22-----------------10,865

I want to separate the numbers from Column A into buckets in increments of 100 (i.e., 0-100, 101-200, etc.). Then I would like to find the sum of the sizes of each of the items in the 100-# buckets. So far, I have used dsum to find the sum of the # of items in each bucket, but I am lost as to how to find the corresponding sizes' sums. Thanks for your help! Let me know if I need to explain more clearly.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Have you tried the Histogram function that is available if you have the ToolPack Add-in installed.
 
Upvote 0
Suppose you want to sum the size of the elements in your 500 bucket then this wolud worK:

confirm w/ ctrl + shift + Enter, Not just Enter

Code:
=SUM((INT(A1:A6/100)=5)*B1:B6)

chage index from 5 to 1,2,3, if you want your 100,200,300 bucket... etc


HTH
 
Upvote 0
Have you tried the Histogram function that is available if you have the ToolPack Add-in installed.

I have never used the Histogram function, but wouldn't that only give me the number count and not the sum?
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,380
Members
449,080
Latest member
Armadillos

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