Help with IF statements and calculated parameters

Help with IF statements and calculated parameters

bmyrumYGWJ2
Participant Participant
539 Views
2 Replies
Message 1 of 3

Help with IF statements and calculated parameters

bmyrumYGWJ2
Participant
Participant

I am trying to get a door to show two values depending on the occupant load (Count). I have an equation that gets me the required door width but since the minimum is 32" I need to say 32 unless it is larger.

 

If the occupant load Required Width requires less than 32" I want it to say 32.

If the occupant load Required Width requires more than 32" I want it to say the value 

 

(Count * Factor) is the calculation for our Required Width

If ((Count * Factor) < 32 , 32 , IF (Count * Factor) > 32, (Count * Factor))

 

I don't know if I am doing too much in one equation or just not getting my statement correct. I have made this work with windows before but it has been awhile.

Does this make sense?

0 Likes
Accepted solutions (2)
540 Views
2 Replies
Replies (2)
Message 2 of 3

barthbradley
Consultant
Consultant
Accepted solution

You're not doing too much.  Embedding IF statements is pretty common.  What error is being thrown?  

 

Why the embedded If Statement? Wouldn't "If ((Count * Factor) < 32 , 32 , (Count * Factor))" yeild the same result? 

 

Ah, I see.  You need an additonal result at end.  If true: do this. If not true: do this.

 

If ((Count * Factor) < 32 , 32 , IF (Count * Factor) > 32, (Count * Factor), DO THIS))

Message 3 of 3

ToanDN
Consultant
Consultant
Accepted solution
if((Count * Factor) < 32, 32, (Count * Factor))