KuraiChikara
Board Regular
- Joined
- Nov 16, 2016
- Messages
- 111
- Office Version
- 2013
- Platform
- Windows
Hello, I am trying to perform an IF function with multiple criteria. I'll explain what I'm trying to do first and then my formula is at the end.
There are 3 columns: Check Mark, Formula, Activity (in A, B & C)
In my example, imagine the "1" to be a check mark to do the activity in column C. If you have only one check mark or "1", that is only one activity to be done and FINE is populated from the formula. However, if another activity has a check mark or a "1" it means that activity is also being conducted at the same time as the first one. So the first selection errors out as a conflict because you can only do one thing at a time.
In the example below, a check mark is placed next to "Walk the Dog," since that's the only activity checked, FINE is populated. There is nothing in Column A next to the other activities so ZERO is populated where the formula is.
<tbody>
</tbody>
In this example, all activities have a check mark, all activities can't be done all at once so the first 4 activities CONFLICT and the last one is marked as FINE. This behavior is what I'm looking for, the last example is where I'm stumped.
<tbody>
</tbody>
Final example:
I put a "3" next to Bath Time, 3 has more significance to another project I have. Anyways, because of my formula it will calculate out to CONFLICT.
My formula reads like this:
=IF((A1+A2+A3+A4+A5)>1,"Conflict",IF(A1=1,"Fine",IF(A2=1,"FINE",IF(A3=1,"FINE",IF(A4=1,"FINE",IF(A5=1,"FINE",0))))))
Add Columns A1, A2, A3, A4 and A5 together, if greater than "1", put CONFLICT.
If not greater than "1" and A1, A2, A3, A4 or A5 just equals "1" put FINE.
What I want my formula to do, with columns A1, A2, A3, A4 and A5, is if it JUST equals 1 OR has a 1 AND specifically has a 3, to show FINE.
I don't know how to include the 3 like that.
I would like THIS:
<tbody>
</tbody>
To look like THIS:
<tbody>
</tbody>
There are 3 columns: Check Mark, Formula, Activity (in A, B & C)
In my example, imagine the "1" to be a check mark to do the activity in column C. If you have only one check mark or "1", that is only one activity to be done and FINE is populated from the formula. However, if another activity has a check mark or a "1" it means that activity is also being conducted at the same time as the first one. So the first selection errors out as a conflict because you can only do one thing at a time.
In the example below, a check mark is placed next to "Walk the Dog," since that's the only activity checked, FINE is populated. There is nothing in Column A next to the other activities so ZERO is populated where the formula is.
Check Mark | FORMULA | Activity |
1 | Fine | Walk the Dog |
0 | Bath Time | |
0 | Dishes | |
0 | Laundry | |
0 | Crafts |
<tbody>
</tbody>
In this example, all activities have a check mark, all activities can't be done all at once so the first 4 activities CONFLICT and the last one is marked as FINE. This behavior is what I'm looking for, the last example is where I'm stumped.
Check Mark | FORMULA | Activity |
1 | Conflict | Walk the Dog |
1 | Conflict | Bath Time |
1 | Conflict | Dishes |
1 | Conflict | Laundry |
1 | Fine | Crafts |
<tbody>
</tbody>
Final example:
I put a "3" next to Bath Time, 3 has more significance to another project I have. Anyways, because of my formula it will calculate out to CONFLICT.
My formula reads like this:
=IF((A1+A2+A3+A4+A5)>1,"Conflict",IF(A1=1,"Fine",IF(A2=1,"FINE",IF(A3=1,"FINE",IF(A4=1,"FINE",IF(A5=1,"FINE",0))))))
Add Columns A1, A2, A3, A4 and A5 together, if greater than "1", put CONFLICT.
If not greater than "1" and A1, A2, A3, A4 or A5 just equals "1" put FINE.
What I want my formula to do, with columns A1, A2, A3, A4 and A5, is if it JUST equals 1 OR has a 1 AND specifically has a 3, to show FINE.
I don't know how to include the 3 like that.
I would like THIS:
Check Mark | FORMULA | Activity |
1 | Conflict | Walk the Dog |
3 | Conflict | Bath Time |
1 | Conflict | Dishes |
1 | Conflict | Laundry |
1 | Fine | Crafts |
<tbody>
</tbody>
To look like THIS:
Check Mark | FORMULA | Activity |
1 | Conflict | Walk the Dog |
3 | Fine | Bath Time |
1 | Conflict | Dishes |
1 | Conflict | Laundry |
1 | Fine | Crafts |
<tbody>
</tbody>