Forum Discussion
rrjwt
Jan 31, 2023Copper Contributor
Help in create a conditional formula
I need help guys to create a formula based upon the column "Name" and "Answer".
- If name=Identify or protect and Answer=yes then add 3.5 in total
- If name=Identify or protect and Answer=Partial then add 1.5 in total
- If name=Recover and Answer=yes then add 5 in total
I want one formula for this conditions. Your help is really appreciate.
| S.no | Name | Data | Data1 | data2 | Answer |
| 1 | Identify | ABCD | nothing | nothing | Yes |
| 2 | Identify | XYZ | nothing | nothing | Partial |
| 3 | Protect | XYZ | nothing | nothing | Yes |
| 4 | Recover | XYZ | nothing | nothing | Yes |
| total | 0 |
1 Reply
Hi rrjwt
You should use a column for total to do the calculation for each row, so you can write this formula in G2
=IFS(AND(OR(B2="identify",B2="protect"),F2="yes"),3.5,AND(OR(B2="identify",B2="protect"),F2="partial"),1.5,AND(B2="recover",F2="yes"),5)