How many times a number is within or exceeds another number, not by simply dividing

Sonic_blue_j

New Member
Joined
May 17, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I need a formula that will tell me how many orders I need to place of items, the problem is simply dividing isn't giving me what I need. -Unless I'm using something incorrectly-

They have as set order weight of, say, 20g; set by the retailer.
I need multiple quantities of the items, one being 38g and only 6g of another. Other entries are different weights, but I'll just use those 2 for my example.
The quantity is in column A and the retailer weight is in column B, with the output in column C.

What is the formula to tell me that I only need to place 1 order (of 20g) to cover the 6g and 2 orders (of 20g) to cover the 38g?

Obviously; I could just visually do this (as shown in the question above)....but that's not the point.
It can ignore the left-over amounts.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Use the ROUNDUP function.

ROUNDUP( 6/20, 0) and ROUND(38/20,0) will give you what you want.
 
Upvote 0

Forum statistics

Threads
1,215,156
Messages
6,123,339
Members
449,098
Latest member
thnirmitha

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