Hello Community!
I am trying to add nested IF formula in the Query to fullfill the below requirement
| A | B | C | |
| 1 | Column 1 | Column 2 | Column3 |
| 2 | 1.00 | Yes | |
| 3 | 1.00 | 1.00 | Not Sure |
| 4 | 1.00 | No | |
| 5 | default |
I want Coulmn 3 to be yes, Not Sure, No, or Default based on these combinations of values ("1" and "null") in Column 1 and Column 2
(Column 1 and Column 2 values are coming by using the COUNT formula for Objects)
and for that I have written below nested IF Formula.
=IF(A2=="1.00";IF(B2=="1.00";"Not-Sure";"Yes");IF(B2=="1.00";"No";"default"))
But When I run the query I am getting Below error message.png)
Could you please suggest me where am I doing logical/Syntactical error.
how can I modify the Formula to get required result out of the Query.
Thank you
Best regards,
Rushikesh
.png)
.png)
.png)
.png)

.png)
.png)
.png)
Veronika Ellermann on
Hi Rushikesh,
I don't understand which value you want to display in which case. But I understand you have 4 options:
not sure
default
No
Yes
So, in my example, they correspond to the following numbers (and you don't need to put the numbers into quotation marks unless they are text)
not sure: 1
default: 2
No: 3
Yes: 4
=IF(D2==1;"not sure";IF(D2==2;"default";IF(D2==3;"No";"Yes")))
I am not sure if you want to add the possibility that a sum is created and that based on the result of the sum, the result is displayed. If that is the case, you can use the formula below:
=IF(SUM(C2:D2)==1;"not sure";IF(SUM(C2:D2)==2;"default";IF(SUM(C2:D2)==3;"No";"Yes")))
Hope this helps.
Best,
Veronika