Sum Values of an array to a set number

Bduncan871

New Member
Joined
Oct 10, 2017
Messages
6
i have weights of concrete mats in column "I"(I6:I100).

I need those to sum in column "J" only if they add up to a range between 46,000 & 48,000.

If rows 6 through 10 meet range, populate that sum in J column on rows 6-10, and so on all the way through row 100.

Is this possible?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Excel 2010
IJ
6555.00
76,666.00
81,999.00
9999.00
10666.00
1116,694.00
121,614.00
1317,000.0046,193.00
142,000.00
154,444.00
166,666.00
179,000.00
187,000.00
1910,000.00
205,000.00
213,000.0047,110.00
229,999.00
2335,000.00
241,001.0046,000.00

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

In J7 and copy down
Code:
=IF(AND(SUM($I$6:I7)-SUM($J$6:J6)>=46000,SUM($I$6:I7)-SUM($J$6:J6)<=48000),SUM($I$6:I7)-SUM($J$6:J6),IF(SUM($I$6:I7)-SUM($J$6:J6)>48000,"slabs add to over 48,000",""))
 
Upvote 0
I can not download files from dropbox at work.
How is it not working for you?
 
Upvote 0
I did not get a change to look at the file last night. Could you post an example of your data and the formula you are using.
 
Upvote 0
Excel 2010
H
I
J
5
mat
6
8,800.00
7
8,800.00
8
8,800.00
9
8,800.00
10
44,000.00
8,800.00
11
52,800.00
8,800.00
slabs add to over 48,000
12
8,800.00
slabs add to over 48,000
13
5,863.00
slabs add to over 48,000

<tbody>
</tbody>
Sheet4
The total to row 10 is 44,000 which is under the 46,000 min but if you add the next Mat you get 52,800 which is over your max of 48,000. What should happen in this case?

Assuming it should sum to below the 46,000 min try.
Code:
=IF(AND(SUM($I$6:I7)-SUM($J$6:J6)>=46000,SUM($I$6:I7)-SUM($J$6:J6)<=48000),SUM($I$6:I7)-SUM($J$6:J6),IF(SUM($I$6:I8)-SUM($J$6:J6)>48000,SUM($I$6:I7)-SUM($J$6:J6),""))
 
Last edited:
Upvote 0
correct.. what it is is a truck load sheet.

legal cargo weight on a flat bed truck is 48,000lbs.

So it seems the new formula works as it should now.

any totals up to 48,000, populates in that cell like it is. if it goes over 48,000, it would just ignore it and put it on the next sequence.
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,657
Members
449,462
Latest member
Chislobog

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