anewlevel0419
New member
- Local time
- Today, 06:58
- Joined
- Mar 15, 2019
- Messages
- 1
Hello,
I am having trouble with this nested IIF statement. I understand there is a lot going on with this, but IIF
I can get this last condition, I will be all set.
=IIf([Primary Result 1]="ND","",IIf(Val([Primary Result 1])>=[MCL1],"O",""))
This portion works fine.
I want to nest one additional condition that states that if Primary Param 1 = pH and primary results is between the value of 6.5-8.5 then "", "O".
=IIf([Primary Result 1]="ND","",IIf(Val([Primary Result 1])>[MCL1],"O","",IIf([Primary Param 1]="pH" and [Primary Results 1] between 6.5 and 8.5,"","O")))
What this last condition is stating is that if the parameter selected is "pH" and the result value that is inputted is between 6.5 and 8.5 then the box stays blank otherwise the box shows a "O" to indicate that it is outside the limit. This is only specific to "pH" so the condition only needs to be true if primary parameter is "pH". There are 22 parameters, so I will copy paste this code throughout all the parameters.
Thanks,
Greg
I am having trouble with this nested IIF statement. I understand there is a lot going on with this, but IIF

=IIf([Primary Result 1]="ND","",IIf(Val([Primary Result 1])>=[MCL1],"O",""))
This portion works fine.
I want to nest one additional condition that states that if Primary Param 1 = pH and primary results is between the value of 6.5-8.5 then "", "O".
=IIf([Primary Result 1]="ND","",IIf(Val([Primary Result 1])>[MCL1],"O","",IIf([Primary Param 1]="pH" and [Primary Results 1] between 6.5 and 8.5,"","O")))
What this last condition is stating is that if the parameter selected is "pH" and the result value that is inputted is between 6.5 and 8.5 then the box stays blank otherwise the box shows a "O" to indicate that it is outside the limit. This is only specific to "pH" so the condition only needs to be true if primary parameter is "pH". There are 22 parameters, so I will copy paste this code throughout all the parameters.
Thanks,
Greg