weight on a bar denomination calculator

willRM

New Member
Joined
Jun 29, 2015
Messages
12
I have created the following :
[TABLE="width: 384"]
<colgroup><col width="64" span="6" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl64, width: 64"][/TD]
[TD="class: xl65, width: 320, colspan: 5"][TABLE="width: 384"]
<colgroup><col width="64" span="6" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl66, width: 64"]Total[/TD]
[TD="class: xl67, width: 320, colspan: 5"]weight [/TD]
[/TR]
[TR]
[TD="class: xl65"] [/TD]
[TD="class: xl65, align: right"]45[/TD]
[TD="class: xl65, align: right"]25[/TD]
[TD="class: xl65, align: right"]15[/TD]
[TD="class: xl65, align: right"]10[/TD]
[TD="class: xl65, align: right"]5[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]220[/TD]
[TD="class: xl65, align: right"]4[/TD]
[TD="class: xl65, align: right"]1[/TD]
[TD="class: xl65, align: right"]1[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]100[/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"] [/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD="class: xl63, align: right"][/TD]
[TD="class: xl63"][/TD]
[TD="class: xl63"] [/TD]
[TD="class: xl63"] [/TD]
[TD="class: xl63"] [/TD]
[TD="class: xl63"]

[/TD]
[/TR]
</tbody>[/TABLE]
I am trying to get the total to be split down into the different weights:

B3: =INT(A3/B2)
C3: =INT(($A3-SUMPRODUCT($B$2:B$2,$B3:B3))/C$2)

it only works on line 1. once expanded:

[TABLE="width: 384"]
<colgroup><col width="64" span="6" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl66, width: 64"]Total[/TD]
[TD="class: xl67, width: 64"]weight [/TD]
[TD="class: xl67, width: 64"] [/TD]
[TD="class: xl67, width: 64"] [/TD]
[TD="class: xl67, width: 64"] [/TD]
[TD="class: xl67, width: 64"] [/TD]
[/TR]
[TR]
[TD="class: xl65"] [/TD]
[TD="class: xl65, align: right"]45[/TD]
[TD="class: xl65, align: right"]25[/TD]
[TD="class: xl65, align: right"]15[/TD]
[TD="class: xl65, align: right"]10[/TD]
[TD="class: xl65, align: right"]5[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]220[/TD]
[TD="class: xl65, align: right"]4[/TD]
[TD="class: xl65, align: right"]1[/TD]
[TD="class: xl65, align: right"]1[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[/TR]
[TR]
[TD="class: xl65, align: right"]100[/TD]
[TD="class: xl65, align: right"]25[/TD]
[TD="class: xl65, align: right"]-41[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0[/TD]
[TD="class: xl65, align: right"]0

[/TD]
[/TR]
</tbody>[/TABLE]
Obviously not correct please help
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
i'm trying to make it a bit more complex. with putting weights on to a olympic bar you will only put the weight on if you can do one both sides. So if if the number of certain weighted plates used is not = 2 , then i want it to be 0.?
 
Upvote 0
i'm trying to make it a bit more complex. with putting weights on to a olympic bar you will only put the weight on if you can do one both sides. So if if the number of certain weighted plates used is not = 2 , then i want it to be 0.?

Hi, not sure I follow, maybe it would help if you could you post some example data along with the expected results?
 
Upvote 0
not sure I follow

Hi, the penny dropped - you could give this a try:


Excel 2013/2016
ABCDEF
2452515105
322040202
410020002
Sheet1
Cell Formulas
RangeFormula
B3=INT(INT(A3/B$2/2)*2)
C3=INT(($A3-SUMPRODUCT($B$2:B$2,$B3:B3))/2/C$2)*2
 
Upvote 0
A slightly different solution.


Excel 2010
ABCDEFGH
6TotalWeight Pairs
72 weights per
8Weight45251510510.05
9Weight * 2905030201021
102202010100
111001000100
122352100021
13
1b
Cell Formulas
RangeFormula
B9=B8*2
B10=INT(A10/B$9)
C10=INT(($A10-SUMPRODUCT($B10:B10,$B$9:B$9))/C$9)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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