August 4, 201114 yr 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.
August 4, 201114 yr 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, 201114 yr by LaRetta
August 4, 201114 yr Author 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:
August 4, 201114 yr 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
August 4, 201114 yr Forgot to add If (Length ( field ) <150; TextColor ( Length (field) ; RGB ( 255 ;0 ; 0 ) ); Length(field))
August 4, 201114 yr 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 ) ) )
Create an account or sign in to comment