How to set valid if rule based on another field

I’m trying to run the following Valid IF but I’m getting the error below:

If the type field is ROUTE COMPLETE, then the Fuel Cost field is valid if its >0 but less than 1000. The field could otherwise be 0 or >0 but less than 1000.

0 8 184
8 REPLIES 8

You may wish to try below

OR(
AND([Type]=ROUTE_COMPLETE, [_THIS]>0, [_THIS]<1000),

AND([_THIS]>=0, [_THIS]<1000)
)

Thank you Suvrutt, this worked perfectly!

Steve
Platinum 4
Platinum 4

There is no => operator, which renders this expression invalid.
3X_f_0_f017c429b9e6a41a1c1cbb20698873b708997243.png

Good catch @Steve.

Got it. Very helpful. Thanks Steve

Just checking, => is invalid but >= works, correct?

I use >= all over the place in my app.

Yes you’re right. Greater/Less than symbol before equal symbol is the correct format;)

Yes.

Top Labels in this Space