Forum Discussion
Officestar
Aug 16, 2023Copper Contributor
Formula to calculate # of single vs double rooms
Hi, so I’ve been struggling to find a formula to calculate the number of single occupancy room vs double occupancy by just adjusting the % of either the single or double occupancy to the total number of rooms, based off the total number of beds.
So say I have hotel with 94 beds in total and I want to figure out what is the number that will be be double vs single if I want to keep the proportion of double occupancy at 60%.
S = Single Occupancy
D = Double Occupancy
S+D = 94
D also = 2*S
and D is 60% of (S+D)
again I want to be able to control the % to spit out the actual room count based of the adjustable total number of beds (94 in the example above) shown in yellow box in image.
Need formulas for the green boxes. Thanks.
- OfficestarCopper Contributor
Hi Sergei, thanks for the reply.
The 40-60% is single vs double rooms hence on the total number of room count not the the bed count.I am also focussing finding the number of double rooms first, as it is going to be a fraction and I will round it up and then from there get the number of single occupancy rooms. It’s this first step I’m stuck at.
Sorry, my bad. So
2*D + S = 94
D = 0.6*(D+S)
From that
S = 4/6D and
D = 94*6/16
or rounding
E8: =INT( E4*6/16 ) E7: =E4-2*E8