Don't know what formula to use...

CherryxDarling

New Member
Joined
Mar 30, 2011
Messages
39
I'm creating a spreadsheet that basically tells someone how many bathrooms, toilets, drinking fountains etc. are needed per occupant load. I have different ratios for male/female, and what kind of building it is. So that being said I need a formula for these ratios:

Male: 1 per 75 for the first 1,500 and 1 per 120 for the remainder exceeding 1,500

Female: 1 per 40 for the first 1,520 and 1 per 60 for the remainder exceeding 1,520

I want to make it so that when I input a # into cell E19 for example, it will tell me how many bathrooms are needed according to this ratio. However, whatever # is inputed into E19 needs to be divided in half, half of it for males, and half for females.

I know it's complicated and I'm having trouble explaining it all as simply as I can, but if someone can give it a shot I would greatly appreciate it.
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
In that case, as Lenze mentioned above, replace ROUNDDOWN, with ROUNDUP and you should then be good to go. :)

Do you want me to also produce the FEMALE equation or are you ok to edit?

i.e

=IF((E19/2)>1500,20+ROUNDUP(((E19/2)-1500)/120,0),ROUNDUP((E19/2)/75,0))
I tried editing it and I kept getting the wrong answer, so if you wouldn't mind I would really appreciate it.
 
Upvote 0
For FEMALES

=IF((E19/2)>1520,38+ROUNDUP(((E19/2)-1520)/60,0),ROUNDUP((E19/2)/40,0))
Oh my god thank you so much! I can do all the other formulas for my spreadsheet just fine now, but this one had me wanting to bang my head against the wall. It all works perfectly =)
 
Upvote 0
Okay just one more thing and I'm done:

Would it be possible to make it so that when nothing is in cell E19 it won't display anything in F20 and G20? Right now when there's nothing in E19 it displays 0 in those cells and I would like it to be blank.
 
Upvote 0
I created a table in Range A1:E3 (Which can be modified), but formula in F20 and G20 read off the amts therein... HTH Jim
Excel Workbook
ABCDEFG
1For FirstCountEachOver 1st
2Male15007520120
3Female1520403860
4
5
6
7
8
9
10
11
12
13
14
15
16
17MalesFemales
1850%50%
195200
203056
Sheet1
Excel 2007
Cell Formulas
RangeFormula
D2=B2/C2
D3=B3/C3
F20=IF(($E$19*F$18)<$B$2,ROUNDUP(($E$19*F$18)/$C$2,0),IF(($E$19*F$18)>$B$2,$D$2+ROUNDUP((($E$19*F$18)-$B$2)/$E$2,0),0))
G20=IF(($E$19*G$18)<$B$3,ROUNDUP(($E$19*G$18)/$C$3,0),IF(($E$19*G$18)>$B$3,$D$3+ROUNDUP((($E$19*G$18)-$B$3)/$E$3,0),0))
 
Upvote 0
Yeah, that should definitely work. Sorry, didn't get chance to reply before you solved it yourself lol :stickouttounge: Hope all is well now.
I actually copied and pasted it from another formula I had in the spreadsheet lol. Forgot I had already done it. Thanks again for all your help.
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,734
Members
452,939
Latest member
WCrawford

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