Can you round up using sumproduct?

Jamie Ramos

New Member
Joined
Jun 10, 2011
Messages
28
I have a sheet where I am calculating the amount of product need based on footage.

The lengths are 40, 16, 8 (Columns D4,E4,F4). In rows G4-I4 the formula should be calculating how many of each piece we need based on the total footage (B4). I think it is the INT that is wrong but when I try to use ROUND it only works in H4 but then shows I4 as a negative number. I think INT makes it round down from what I have read. For this particular product I need to send more product than less. Ie if the total is 331 feet I would send 336 rather than 328 (which is what I currently get)

G4==INT($B4/D4)
H4-=INT(($B4-SUMPRODUCT(D4:$D4,G4:$G4))/E4)
I4= I cant figure out.

Thank you in advance for your help.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,224,541
Messages
6,179,418
Members
452,912
Latest member
alicemil

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