Forum Discussion
GeoffL
Mar 20, 2019Copper Contributor
IF Function
I'm looking to write an equation / function for a lavatory fixture count which will allow calculations below the lowest divisor value. 1 LAV / 40 occupants for the 1st 80 occupants; 1 LAV / 80 o...
PeterBartholomew1
Mar 20, 2019Silver Contributor
= IF( occupants < 80, occupants/40, 1 + occupants/80 )
Since occupants is a single value rather than a list of alternatives, you could also have
= MIN( occupants/40, 1 + occupants/80 )
Either way, to avoid partial fixtures, you will need to round up, giving
= CEILING( IF( occupants < 80, occupants/40, 1 + occupants/80 ), 1 )