Book4 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | HR | Sales | Finance | Existing department | |||||||
2 | Tom | Yes | #N/A | FALSE | TRUE | FALSE | |||||
3 | Pete | Yes | #N/A | TRUE | FALSE | FALSE | |||||
4 | Fred | #N/A | FALSE | FALSE | FALSE | ||||||
5 | Sally | Yes | Yes | FALSE | FALSE | TRUE | |||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E2 | E2 | =LOOKUP(1,B2:D2<>"",B2:D2) |
E3:E4 | E3 | =LOOKUP("TRUE",(B3:D3<>""),B3:D3) |
E5 | E5 | =LOOKUP(2,1/(B5:D5<>""),B5:D5) |
G2:I5 | G2 | =B2:D2<>"" |
Dynamic array formulas. |
Trying to understand why the formulae in Rows 2 and 3 show errors, ie for Tom and Pete. Columns G to I with the relevant tests show that there are TRUE values but they aren't being picked up by the Lookup values in the formulae.