plumbing count formula issue

plumbing count formula issue

Ian_H
Advocate Advocate
1,307 Views
7 Replies
Message 1 of 8

plumbing count formula issue

Ian_H
Advocate
Advocate

I found a family that had formulas to calculate plumbing fixtures, but it was based on 2012 IBC. I was updating the formulas for the latest California code but don't seem to be getting the correct result. The women's count is 150, so it should use 4-(150/200) which equals 3.75, but it's showing -5. 

 

Can someone help me pinpoint where the issue is?

 

Ian_H_0-1680715880435.png

 

0 Likes
Accepted solutions (2)
1,308 Views
7 Replies
Replies (7)
Message 2 of 8

ToanDN
Consultant
Consultant

Share the family here.

0 Likes
Message 3 of 8

Ian_H
Advocate
Advocate

Here it is

 

0 Likes
Message 4 of 8

ToanDN
Consultant
Consultant
Accepted solution

Your < and > are wrong in the formula below, they should be reversed.

 

if(Women > 25, (1 - (Women / 25)), if(and(Women < 25, Women > 50), (2 - (Women / 50)), if(and(Women < 50, Women > 100), (3 - (Women / 100)), if(and(Women < 100, Women > 200), (4 - (Women / 200)), if(and(Women < 200, Women > 300), (6 - (Women / 300)), 0)))))

 

After reversing > and <:

 

ToanDN_0-1680717489143.png

 

 

Message 5 of 8

Ian_H
Advocate
Advocate

Thanks for catching that. I'm glad it's a simple fix, but I feel dumb for not catching that. lol

0 Likes
Message 6 of 8

Ian_H
Advocate
Advocate

@ToanDN 

Is there a way to denote the number of decimal points you want in a number? 

 

Ian_H_0-1680793896142.png


In the screenshot you can see there is a number that is 6 decimals deep and one that is 3 decimals deep. I don't want it to round to 2 decimals. 

 

0 Likes
Message 7 of 8

ToanDN
Consultant
Consultant
Accepted solution

Format the label's units.  Example to set it to 6 decimal places.

 

ToanDN_0-1680796382457.png

 

Message 8 of 8

Ian_H
Advocate
Advocate

Thanks again

0 Likes