Mayin S.
asked 07/25/17Calculating number of seed bags need for planting
Assuming that i have seed bag sizes of 1kg, 2 kg, and 5kg. And my clients typically have a land size between 0.25 and 5 acres and will plant 10kgs per acre.
What formualar can i use to calculate for each client the number of 5kg, 2kg and 1kg seed bags they need for planting. In the calculation, i want to try to assign the larger bags first while avoiding to assign half bags to a client as much as possible.
What formualar can i use to calculate for each client the number of 5kg, 2kg and 1kg seed bags they need for planting. In the calculation, i want to try to assign the larger bags first while avoiding to assign half bags to a client as much as possible.
More
1 Expert Answer
Andy C. answered 07/26/17
Tutor
4.9
(27)
Math/Physics Tutor
I don't see at this time how a single formula will solve this.
A single formula is insufficient, you need an entire algorithm.
You will need to create a spreadsheet or write a computer program.
I did it in excel,and saved the spreadsheet for you if you want it.
Here is a description of the sheet.
CELL Contents Description/Comments
C2 "# of acres prompts the user to input the # of acres
D2 where the user will input the # of acres
C4 # of kilograms needed labels the # of kilograms of seeds needed
D4 =D2*10 multiplies the # of acres by 10
C6 # of whole kilograms needed labels te # of kilograms needed after throwing the fraction away
D6 = FLoor(D4,1) throws away the fraction in the result of D4
F6 fractions kg labels the fraction of a kilogram needed
G6 =D4-D6 calculates the fractional part
C8 # of 5 kg bags needed labels the # of 5 kg bags needed
D8 =FLOOR(d6/5,1) calculates the # of WHOLE 5 kg bags needed
F8 remainder labels how many kgs are left to go
G8 =MOD(d6,5) calculates how much weight remains
C10 # of 2 kg bags needed labels the # of 2 kg bags needed
D10 =FLOOR(g8/2,1) calculates the # of WHOLE 2 kg bags needed
F10 remainder labels the remaining weight
G10 = MOD(g8,2) calculates the remaining weight
c12 # of bags needed labels the # of WHOLE 1 kg bags needed
d12 = g10
c14 # of half pound bags needed labels the # of half pound bags needed
D14 =G6/0.5
Mayin S.
thank you very much Andy, would kindly share with the spreadsheet you saved.
Report
07/26/17
Andy C.
I posted it in the resources/files.
As described in the comments discussion,
I changed the formula so that it rounds the number of 1 kg bags up
if the fractional part is greater than 1/2 and
includes 1/2 kg if the fractional part is less than 1/2
Report
07/26/17
Andy C.
My apologies,
The file name is seeds.xlsx
Report
07/26/17
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
Andy C.
07/26/17