I need help to get dozens and units separate subtraction

SilverChat

New Member
Joined
Feb 17, 2011
Messages
9
AVAILABLE
DATA
SALE
DATA
REMAINING
DATA
DOZENS
UNITS
DOZENS
UNITS
DOZENS
UNITS
5
3
1
6
3
9

<tbody>
</tbody>

Hi, every one please help me out on this....
I have to make the table in which these are the columns and rows where Available data is the stock available and sale data is the one which i want to insert manually but remaining data will automatically be calculated,
for suppose I have available data dozens and units I have sold dozens and units now the remaining data will automatically be subtracted from available data....
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
If I understand your question correctly, and assuming the table above represents columns A through F, put this in column E:
=INT(((A3*12+B3)-(C3*12+D3))/12)

And put this in Column F:
=MOD((A3*12+B3)-(C3*12+D3),12)
 
Last edited:
Upvote 0
A3,B3 available C3, D3 sale E3, F3 remaining
E3 (dozens) =QUOTIENT(((A3*12)+B3)-(C3*12+D3),12)
F3 (units) =MOD(((A3*12)+B3)-(C3*12+D3),12)
 
Upvote 0
clabulis and yshridhar Thanks alot both of you....
Thanks it worked.....
GOD BLESS YOU


user-offline.png



<link href="chrome://s3gt/skin/s3gt_tooltip.css" type="text/css" rel="stylesheet">
 
Upvote 0
Remaining
cartons (8) =QUOTIENT((SUM(A3*72,B3*12,C3)-SUM(D3*72,E3*12,F3)),72)
dozens (4 not 10) =QUOTIENT(MOD((SUM(A3*72,B3*12,C3)-SUM(D3*72,E3*12,F3)),72),12)
units (4) =MOD((SUM(A3*72,B3*12,C3)-SUM(D3*72,E3*12,F3)),12)

regards
sridhar
 
Upvote 0
Cartons =A12-D12-(E12>B12)
Dozens =MOD(B12-E12-(F12>C12) ,6)
Units =MOD(C12-F12, 12)

Or , to return the values for a-b

Units = MOD(aUnits-bUnits, 12)
Dozens = MOD(aDozens - bDozens -(bUnits>aUnits), 6)
Cartons = aCartons - bCartons - (bDozens>aDozens)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,063
Messages
6,128,552
Members
449,458
Latest member
gillmit

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