Formula help!

Workerl3ee

New Member
Joined
Dec 4, 2024
Messages
4
Office Version
  1. 365
Platform
  1. Windows
I need help with a formula that will give me accurate results.

I have created a staff to child ratio tracker.
0-2 is a ratio of 1:4
2-3 is a ratio of 1:5
3+ is a ratio of 1:10
Over school is 1:15

I have used ROUNDUP(B2/4+B3/5......etc) but the number is not consistently correct.

(Pictured example) It says 4 required but it is actually 5 needed because all ratios fall to the youngest age group.
 

Attachments

  • 1000042299.jpg
    1000042299.jpg
    48.8 KB · Views: 8
  • 1000042301.jpg
    1000042301.jpg
    145 KB · Views: 8

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Welcome to the Board!

You need to apply the ROUNDUP formula to each age bracket, if you want to do it like that, i.e.
Excel Formula:
=ROUNDUP(B2/4,0)+ROUNDUP(B3/5,0)+ROUNDUP(B4/10,0)+ROUNDUP(B6/15,0)

This will return the 5 you want.

Otherwise, what you are doing is this:
=ROUNDUP(2.25 + 1.00 + 0.60 + 0.00,0)
=ROUNDUP(3.85,0)
=4
 
Upvote 0
Welcome to the Board!

You need to apply the ROUNDUP formula to each age bracket, if you want to do it like that, i.e.
Excel Formula:
=ROUNDUP(B2/4,0)+ROUNDUP(B3/5,0)+ROUNDUP(B4/10,0)+ROUNDUP(B6/15,0)

This will return the 5 you want.

Otherwise, what you are doing is this:
=ROUNDUP(2.25 + 1.00 + 0.60 + 0.00,0)
=ROUNDUP(3.85,0)
=4
Yes, I tried this way too but then I get the opposite and it over estimates the number for some.
 
Upvote 0
Yes, I tried this way too but then I get the opposite and it over estimates the number for some.
I don't think that shouldn't happen, if you are consistent and always use the logic you displayed in your original example.
Please show us an example where it overestimates it.
 
Upvote 0
I asked you to please show us an example where our formulas are over estimating.
The formulas followed the logic you seem to present in your original example.
So if it is not working correctly, you may have not presenting it clearly or entirely, and there may be some important piece of the logic you left out.
If we could see an example of where it is not working the way you envision, I think it may become much more clear to us exactly how you expect this to work.
But right now, you haven't given us very much to work with. Both our formulas work perfectly on the example you presented.
 
Upvote 0
I asked you to please show us an example where our formulas are over estimating.
The formulas followed the logic you seem to present in your original example.
So if it is not working correctly, you may have not presenting it clearly or entirely, and there may be some important piece of the logic you left out.
If we could see an example of where it is not working the way you envision, I think it may become much more clear to us exactly how you expect this to work.
But right now, you haven't given us very much to work with. Both our formulas work perfectly on the example you presented.
I didn't see that part sorry.
So using the ROUNDUP in staff required and underneath I've put the calculations manually in.

Essentially when the first age group of 1:4 has left over they need to borrow the remaimder to make it full from the next age group and so on until we find the absolute minimum number required. It works for the majority but not all and it needs to be accurate for legal purposes
 

Attachments

  • 1000046473.jpg
    1000046473.jpg
    254.6 KB · Views: 4
  • 1000046471.jpg
    1000046471.jpg
    197 KB · Views: 4
Upvote 0
Please pick a specific example that is not working correctly, and walk us through it, showing us exactly what your EXPECTED result should be.
If you are "borrowing" from the other groups, I am not quite sure how you would determine that, since every group has different requirements (you are comparing "apples to oranges").
Like in the very first example you posted in your initial question, if you can "borrow" from other groups, why couldn't the first group of 1:4 "borrow" from the group of 1:10 to make it a total of 4 people instead of 5?

So I think you need to explain the logic of exactly how you wish to do that in detail, as it is not obvious the methodology you want to apply here.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

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