chuckcou Posted August 4, 2011 Posted August 4, 2011 How do you count the letter within a field? Also can I do an if statement that changes the color of this field. ie. red. Thanks in advance.
LaRetta Posted August 4, 2011 Posted August 4, 2011 (edited) Length() If you wish to use in conditional formatting, the calculation must evaluate to Boolean true (1) so the 'If' or 'Case' is already implemented, just as in If[] script-step. Type the calculation that you want to evaluate to true. Length ( fieldA ) > 150 ... and below specify red. Edited August 4, 2011 by LaRetta
chuckcou Posted August 4, 2011 Author Posted August 4, 2011 It looks like to me that length does not include the spaces between words. Am I correct? If so, how would I count every character including the spaces. Also-- ... and below specify red. Having trouble getting the red. Currently the fomula evaluated to 1. To make the cell red-Do I put it in the calculation? :hmm:
efen Posted August 4, 2011 Posted August 4, 2011 Length does include the spaces. Select the field then right click and select conditional formatting. Use LaRetta's calculation as the Formula and choose the fill colour you need. BUT you show that you use version 8 - no conditional formatting
efen Posted August 4, 2011 Posted August 4, 2011 Forgot to add If (Length ( field ) <150; TextColor ( Length (field) ; RGB ( 255 ;0 ; 0 ) ); Length(field))
comment Posted August 4, 2011 Posted August 4, 2011 If (Length ( field ) <150; TextColor ( Length (field) ; RGB ( 255 ;0 ; 0 ) ); Length(field)) I think you meant = If (Length ( field ) <150; TextColor ( field ; RGB ( 255 ;0 ; 0 ) ); field) This should be an auto enter calculation (replacing existing value). However, it won't work to remove the color when adding characters, so try: TextColor ( YourField ; Case ( Length ( YourField ) < 150 ; RGB ( 255 ; 0 ; 0 ) ) )
Recommended Posts
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