Hello, my first post here :D
I am trying to make a formula to test for certain cases, it looks like this, but doesnt work... Any help appreciated! For easy of reading I have put every case on a new line, of course this is not so in Excel.
There are 16 cases: Cells C27 to C30 can be 1 or 2 and should give the a,b,c,d or e as result in C32.
1 1111 a
2 1112 a
3 1121 b
4 1122 a
5 1211 b
6 1212 a
7 1221 c
8 1222 b
9 2111 c
10 2112 b
11 2121 d
12 2122 c
13 2211 d
14 2212 c
15 2221 e
16 2222 d
=IF(AND(C27 = 1; C28 = 1; C29 = 1; C30 = 1);"PL = a";
=IF(AND(C27 = 1; C28 = 1; C29 = 1; C30 = 2);"PL = a";
=IF(AND(C27 = 1; C28 = 1; C29 = 2; C30 = 1);"PL = b";
=IF(AND(C27 = 1; C28 = 1; C29 = 2; C30 = 2);"PL = a";
=IF(AND(C27 = 1; C28 = 2; C29 = 1; C30 = 1);"PL = b";
=IF(AND(C27 = 1; C28 = 2; C29 = 1; C30 = 2);"PL = a";
=IF(AND(C27 = 1; C28 = 2; C29 = 2; C30 = 1);"PL = c";
=IF(AND(C27 = 1; C28 = 2; C29 = 2; C30 = 2);"PL = b";
=IF(AND(C27 = 2; C28 = 1; C29 = 1; C30 = 1);"PL = c";
=IF(AND(C27 = 2; C28 = 1; C29 = 1; C30 = 2);"PL = b";
=IF(AND(C27 = 2; C28 = 1; C29 = 2; C30 = 1);"PL = d";
=IF(AND(C27 = 2; C28 = 1; C29 = 2; C30 = 2);"PL = c";
=IF(AND(C27 = 2; C28 = 2; C29 = 1; C30 = 1);"PL = d";
=IF(AND(C27 = 2; C28 = 2; C29 = 1; C30 = 2);"PL = c";
=IF(AND(C27 = 2; C28 = 2; C29 = 2; C30 = 1);"PL = e";
=IF(AND(C27 = 2; C28 = 2; C29 = 2; C30 = 2);"PL = d";"ERROR")
EDIT: of course I tried to end the formula like this "....C30 = 2);"PL = d";"ERROR"))))))))))))))))" Did not work...
Bookmarks