Newbies ovozeh Posted February 15, 2007 Newbies Posted February 15, 2007 I have a calculation field which is a SUM of several other fields (all numbers). I would like to compare this calculation field to another number field, with the result of either GREEN or RED number, depending on whether or not this field has a higher numerical value. In other words, if field A is smaller then field B, I want the field A be in RED, etc. How would you write such a calculation and how can it be added to the existing calculation ? Many thanks !
mr_vodka Posted February 15, 2007 Posted February 15, 2007 Assuming that field A is the calc field that sums up your other numbers, and Field B is the field to compare the value to, and R, S, T are the fields which values are bering summed together, then the calculation for field A is: Let ( x = r+s+t; Case ( x < B ; TextColor ( x ; RGB ( 255 ; 0 ; 0 ) ); TextColor ( x ; RGB ( 0 ; 255 ; 0 ) ) ) )
Recommended Posts
This topic is 6552 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now