![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
I have four text fields. For each one of them that equals an assigned value, I want to return a 1 that is added together to get a sum. For example: textfield1 textfield2 textfield3 textfield4 calculation black white black black By having the calculation field as below I want it to return a value of 3: If(textfield1 = "black", 1, 0) + If(textfield2 = "black", 1, 0) + If(textfield3 = "black", 1, 0) + If(textfield4 = "black", 1, 0) For some reason this function only returns "0". It makes no difference if I say the calculation result is text or a number. I tried simplifying the calcuation to: If(textfield1 = "black", 1, 0) Still I only get 0 returned, or nothing if textfield1 is blank. What am I doing wrong? Thanks, Dan |
#4
| |||
| |||
|
#5
| |||
| |||
|
#6
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |