Conditional Lookup.xlsx | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | |||
1 | |||||||||||||||
2 | |||||||||||||||
3 | Prior Month | Current Month | Expected Result | ||||||||||||
4 | 0 | 0 | No Episode in Period | If prior month is equal to zero and current month is equal to zero then return "No Episode in Period" | |||||||||||
5 | 0 | 1 | Episode in current month | If prior month is equal to zero and current month is greater than zero then return "Episode in Current Month" | |||||||||||
6 | 1 | 0 | No Recidivate | If prior month is greater than zero and current month is equal to zero then return"No Recidivate" | |||||||||||
7 | 1 | 1 | Recidivate | If prior month is greater than zero and current month is greater than zero then return "Recidivate" | |||||||||||
8 | 2 | 0 | No Recidivate | ||||||||||||
9 | 0 | 2 | Episode in current month | ||||||||||||
10 | 2 | 2 | Recidivate | ||||||||||||
11 | 2 | 1 | Recidivate | ||||||||||||
12 | |||||||||||||||
13 | |||||||||||||||
Sheet1 |
+Fluff 1.xlsm | |||||
---|---|---|---|---|---|
J | K | L | |||
1 | |||||
2 | 0 | 0 | No epsiode | ||
3 | 0 | 1 | Epsiode | ||
4 | 1 | 0 | No recidivate | ||
5 | 1 | 1 | Recividate | ||
6 | 2 | 0 | No recidivate | ||
7 | 0 | 2 | Epsiode | ||
8 | 2 | 2 | Recividate | ||
9 | 2 | 1 | Recividate | ||
Main |
Cell Formulas | ||
---|---|---|
Range | Formula | |
L2:L9 | L2 | =IF(J2=0,IF(K2=0,"No epsiode","Epsiode"),IF(K2=0,"No recidivate","Recividate")) |
Book3.xlsx | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Prior Month | Current Month | |||
2 | 0 | 0 | No Episode in Period | ||
3 | 0 | 1 | Episode in Current Month | ||
4 | 1 | 0 | No Recidivate | ||
5 | 1 | 1 | Recidivate | ||
6 | 2 | 0 | No Recidivate | ||
7 | 0 | 2 | Episode in Current Month | ||
8 | 2 | 2 | Recidivate | ||
9 | 2 | 1 | Recidivate | ||
Sheet783 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C2:C9 | C2 | =IF(A2,IF(B2,"Recidivate","No Recidivate"),IF(B2,"Episode in Current Month","No Episode in Period")) |
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
J K L 1 2 0 0 No epsiode 3 0 1 Epsiode 4 1 0 No recidivate 5 1 1 Recividate 6 2 0 No recidivate 7 0 2 Epsiode 8 2 2 Recividate 9 2 1 Recividate Main
Cell Formulas Range Formula L2:L9 L2 =IF(J2=0,IF(K2=0,"No epsiode","Epsiode"),IF(K2=0,"No recidivate","Recividate"))