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
[TABLE="width: 76"]
<colgroup><col></colgroup><tbody>[TR]
[TD][/TD]
[/TR]
[TR]
[TD]2,225,861[/TD]
[/TR]
[TR]
[TD]975,000[/TD]
[/TR]
[TR]
[TD]467,600[/TD]
[/TR]
[TR]
[TD]340,000[/TD]
[/TR]
[TR]
[TD]295,000[/TD]
[/TR]
[TR]
[TD]250,000[/TD]
[/TR]
[TR]
[TD]210,000[/TD]
[/TR]
[TR]
[TD]208,800[/TD]
[/TR]
[TR]
[TD]200,000[/TD]
[/TR]
[TR]
[TD]200,000[/TD]
[/TR]
[TR]
[TD]197,420[/TD]
[/TR]
[TR]
[TD]188,235[/TD]
[/TR]
[TR]
[TD]182,000[/TD]
[/TR]
[TR]
[TD]160,000[/TD]
[/TR]
[TR]
[TD]133,400[/TD]
[/TR]
[TR]
[TD]104,400[/TD]
[/TR]
[TR]
[TD]100,000[/TD]
[/TR]
[TR]
[TD]100,000[/TD]
[/TR]
[TR]
[TD]95,000[/TD]
[/TR]
[TR]
[TD]87,000[/TD]
[/TR]
[TR]
[TD]75,000[/TD]
[/TR]
[TR]
[TD]71,250[/TD]
[/TR]
[TR]
[TD]69,500[/TD]
[/TR]
[TR]
[TD]63,800[/TD]
[/TR]
[TR]
[TD]62,000[/TD]
[/TR]
[TR]
[TD]60,000[/TD]
[/TR]
[TR]
[TD]50,000[/TD]
[/TR]
[TR]
[TD]50,000[/TD]
[/TR]
[TR]
[TD]34,800[/TD]
[/TR]
[TR]
[TD]19,720[/TD]
[/TR]
[TR]
[TD]15,000[/TD]
[/TR]
[TR]
[TD]11,600[/TD]
[/TR]
[TR]
[TD]645,000[/TD]
[/TR]
[TR]
[TD]586,872[/TD]
[/TR]
[TR]
[TD]493,750[/TD]
[/TR]
[TR]
[TD]421,400[/TD]
[/TR]
[TR]
[TD]348,000[/TD]
[/TR]
[TR]
[TD]127,680[/TD]
[/TR]
[TR]
[TD]81,000[/TD]
[/TR]
</tbody>[/TABLE]



Can i do it through histogram or some other function?
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
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

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="bgcolor: #FFF2CC"]Lower[/TD]
[TD="bgcolor: #FFF2CC"]Upper[/TD]
[TD="bgcolor: #FFF2CC"]Sum[/TD]
[TD="bgcolor: #FFF2CC"]Frequency[/TD]

[TD="align: center"]2[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]100,000[/TD]
[TD="bgcolor: #E2EFDA, align: right"]964,670[/TD]
[TD="bgcolor: #E2EFDA, align: right"]16[/TD]

[TD="align: center"]3[/TD]
[TD="align: right"]100,000[/TD]
[TD="align: right"]300,000[/TD]
[TD="bgcolor: #E2EFDA, align: right"]2,456,935[/TD]
[TD="bgcolor: #E2EFDA, align: right"]13[/TD]

[TD="align: center"]4[/TD]
[TD="align: right"]300,000[/TD]
[TD="align: right"]500,000[/TD]
[TD="bgcolor: #E2EFDA, align: right"]2,070,750[/TD]
[TD="bgcolor: #E2EFDA, align: right"]5[/TD]

[TD="align: center"]5[/TD]
[TD="align: right"]500,000[/TD]
[TD="align: right"]1,000,000[/TD]
[TD="bgcolor: #E2EFDA, align: right"]2,206,872[/TD]
[TD="bgcolor: #E2EFDA, align: right"]3[/TD]

[TD="align: center"]6[/TD]
[TD="align: right"]1,000,000[/TD]
[TD="align: right"]1,500,000[/TD]
[TD="bgcolor: #E2EFDA, align: right"]0[/TD]
[TD="bgcolor: #E2EFDA, align: right"]0[/TD]

[TD="align: center"]7[/TD]
[TD="align: right"]1,500,000[/TD]
[TD="align: right"]2,000,000[/TD]
[TD="bgcolor: #E2EFDA, align: right"]0[/TD]
[TD="bgcolor: #E2EFDA, align: right"]0[/TD]

[TD="align: center"]8[/TD]
[TD="align: right"]2,000,000[/TD]
[TD="align: right"]2,500,000[/TD]
[TD="bgcolor: #E2EFDA, align: right"]2,225,861[/TD]
[TD="bgcolor: #E2EFDA, align: right"]1[/TD]

[TD="align: center"]9[/TD]
[TD="align: right"]2,500,000[/TD]
[TD="align: right"]3,000,000[/TD]
[TD="bgcolor: #E2EFDA, align: right"]0[/TD]
[TD="bgcolor: #E2EFDA, align: right"]0[/TD]

[TD="align: center"]10[/TD]
[TD="align: right"]3,000,000[/TD]
[TD="align: right"]3,500,000[/TD]
[TD="bgcolor: #E2EFDA, align: right"]0[/TD]
[TD="bgcolor: #E2EFDA, align: right"]0[/TD]

[TD="align: center"]11[/TD]
[TD="align: right"]3,500,000[/TD]
[TD="align: right"]4,000,000[/TD]
[TD="bgcolor: #E2EFDA, align: right"]0[/TD]
[TD="bgcolor: #E2EFDA, align: right"]0[/TD]

[TD="align: center"]12[/TD]
[TD="align: right"]4,000,000[/TD]
[TD="align: right"]4,500,000[/TD]
[TD="bgcolor: #E2EFDA, align: right"]0[/TD]
[TD="bgcolor: #E2EFDA, align: right"]0[/TD]

[TD="align: center"]13[/TD]
[TD="align: right"]4,500,000[/TD]
[TD="align: right"]5,000,000[/TD]
[TD="bgcolor: #E2EFDA, align: right"]0[/TD]
[TD="bgcolor: #E2EFDA, align: right"]0[/TD]

[TD="align: center"]14[/TD]
[TD="align: right"]5,000,000[/TD]
[TD="align: right"]5,500,000[/TD]
[TD="bgcolor: #E2EFDA, align: right"]0[/TD]
[TD="bgcolor: #E2EFDA, align: right"]0[/TD]

[TD="align: center"]15[/TD]
[TD="align: right"]5,500,000[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6E0B4, align: right"]0[/TD]
[TD="bgcolor: #C6E0B4, align: right"]0[/TD]

[TD="align: center"]16[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #E2EFDA, align: right"]9,925,088[/TD]
[TD="bgcolor: #E2EFDA, align: right"][/TD]

[TD="align: center"]17[/TD]
[TD="bgcolor: #FFF2CC"]Data[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]18[/TD]
[TD="align: right"]2,225,861[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

</tbody>
Sheet28

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: #DAE7F5"]
[TH="width: 10"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10, bgcolor: #DAE7F5"]C2[/TH]
[TD="align: left"]=SUMIFS($A$18:$A$55,$A$18:$A$55,">"&A2,$A$18:$A$55,"<="&B2)[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]C15[/TH]
[TD="align: left"]=SUMIFS($A$18:$A$55,$A$18:$A$55,">"&A15)[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]C16[/TH]
[TD="align: left"]=SUM(C2:C15)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Array Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: #DAE7F5"]
[TH="width: 10"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10, bgcolor: #DAE7F5"]D2:D15[/TH]
[TD="align: left"]{=FREQUENCY(A18:A55,B2:B14)}[/TD]
[/TR]
</tbody>[/TABLE]
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself[/TD]
[/TR]
</tbody>[/TABLE]
 
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,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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