K
Khalil Handal
Can we make this formula in a different way (maybe different functions) to
make it shorter.
=IF(CP15=1,"",IF(AND(CN15=1,CO15=0),LOOKUP($CO$1,Y!A:A,Y!B:B),IF(AND(CN15=0,CO15=1),LOOKUP($CN$1,Y!A:A,Y!B:B),LOOKUP($CP$1,Y!A:A,Y!B:B))))
This is the case:
three adjacen cell: cn15, co15, cp15.
All possible values are only 0 and 1 according to the following
combinations:
cn15 co15 cp15
1 1 1
0 0 0
1 0 0
0 1 0
make it shorter.
=IF(CP15=1,"",IF(AND(CN15=1,CO15=0),LOOKUP($CO$1,Y!A:A,Y!B:B),IF(AND(CN15=0,CO15=1),LOOKUP($CN$1,Y!A:A,Y!B:B),LOOKUP($CP$1,Y!A:A,Y!B:B))))
This is the case:
three adjacen cell: cn15, co15, cp15.
All possible values are only 0 and 1 according to the following
combinations:
cn15 co15 cp15
1 1 1
0 0 0
1 0 0
0 1 0