Sum of tray between various amount salb

Attique Tariq

New Member
Joined
Mar 19, 2016
Messages
6
I want to sum values between various amounts slabs i.e.


Sum between Slabs Total sum
0-100,000 ?
100,000-300,000 ?
300,000-500,000 ?
500,000-1,000,000 ?
1,000,000-1,500,000 ?
15,000,00-2,000,000 ?
2,000,000-2,500,000 ?
2,500,000-3,000,000 ?
3,000,000-3,500,000 ?
3,500,000-4,000,000 ?
4,000,000-4,500,000 ?
4,500,000-5,000,000 ?
5,000,000-5,500,000 ?
Greater than 5,500,000 ?

Array Value
2,225,861
975,000
467,600
340,000
295,000
250,000
210,000
208,800
200,000
200,000
197,420
188,235
182,000
160,000
133,400
104,400
100,000
100,000
95,000
87,000
75,000
71,250
69,500
63,800
62,000
60,000
50,000
50,000
34,800
19,720
15,000
11,600
645,000
586,872
493,750
421,400
348,000
127,680
81,000

<colgroup><col></colgroup><tbody>
</tbody>



Can i do it through histogram or some other function?
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
A histogram will give you the frequency or count, you want the sum.

Let's say that your array is in column A. You can use a formula such as =SUMIFS(A:A,A:A,">=0",A:A,"<100000"). This will take the sum of everything in column A that is greater than or equal to 0 and less than 100000.

Then =SUMIFS(A:A,A:A,">=100000",A:A,"<300000")
Use this until the last slab (greater than 5,500,000). For this one use =SUMIF(A:A,A:A,">5500000")
 
Last edited:
Upvote 0
I'm not sure whether the 'Array Value' is just a range of cells or is the result of another formula. If it's just a range, this might do it for you. Copy C2 row 14; C15 is different. The formula in D2:D15 must be entered as an array. Your data goes down to row 55.



ABCD
1LowerUpperSumFrequency
20100,000964,67016
3100,000300,0002,456,93513
4300,000500,0002,070,7505
5500,0001,000,0002,206,8723
61,000,0001,500,00000
71,500,0002,000,00000
82,000,0002,500,0002,225,8611
92,500,0003,000,00000
103,000,0003,500,00000
113,500,0004,000,00000
124,000,0004,500,00000
134,500,0005,000,00000
145,000,0005,500,00000
155,500,00000
169,925,088
17Data
182,225,861

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet28

Worksheet Formulas
CellFormula
C2=SUMIFS($A$18:$A$55,$A$18:$A$55,">"&A2,$A$18:$A$55,"<="&B2)
C15=SUMIFS($A$18:$A$55,$A$18:$A$55,">"&A15)
C16=SUM(C2:C15)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Array Formulas
CellFormula
D2:D15{=FREQUENCY(A18:A55,B2:B14)}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0

Excel 2016
ABCDEFG
122,25,861Lower LimitUpper LimitTotalCount
29,75,00001,00,0008,45,67015
34,67,6001,00,0003,00,00026,56,93515
43,40,0003,00,0005,00,00020,70,7505
52,95,0005,00,00010,00,00022,06,8723
62,50,00010,00,00015,00,00000
72,10,00015,00,00020,00,00000
82,08,80020,00,00025,00,00022,25,8611
92,00,00025,00,00030,00,00000
102,00,00030,00,00035,00,00000
111,97,42035,00,00040,00,00000
121,88,23540,00,00045,00,00000
131,82,00045,00,00050,00,00000
141,60,00050,00,00055,00,00000
151,33,40055,00,00000
161,04,400
171,00,000Total1,00,06,08839
181,00,000
1995,000
2087,000
2175,000
2271,250
2369,500
2463,800
2562,000
2660,000
2750,000
2850,000
2934,800
3019,720
3115,000
3211,600
336,45,000
345,86,872
354,93,750
364,21,400
373,48,000
381,27,680
3981,000
40
41Total1,00,06,088
Sheet14
Cell Formulas
RangeFormula
F2{=SUM(IF($B$1:$B$39D2="",9.999999E+307,E2),$B$1:$B$39,0))-SUM(F$1:F1)}
G2{=SUM(IF($B$1:$B$39D2="",9.999999E+307,E2),1,0))-SUM(G$1:G1)}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,160
Messages
6,129,215
Members
449,494
Latest member
pmantey13

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