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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
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,223,911
Messages
6,175,335
Members
452,636
Latest member
laura12345

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