Forum Discussion

Misleiloee's avatar
Misleiloee
Copper Contributor
Jun 14, 2023

Re: Lookup function with specific cells

Thank you it worked !
Would you mind explaining what does the 2, 1/ stand for though ? I think I've understood how the rest of the formula works, but not this part... Thanks !

2 Replies

  • Lorenzo's avatar
    Lorenzo
    Silver Contributor

    Misleiloee 

    (ISNUMBER($L4:$W4)*($L$3:$W$3=H$3)) generates an array like {1,0,0,0,1,0...}

    1/(ISNUMBER($L4:$W4)*($L$3:$W$3=H$3)) gen. array {1,#DIV/0!,#DIV/0!,#DIV/0!,1,#DIV/0!..}

    for LOOKUP(2, {1,#DIV/0!,#DIV/0!,#DIV/0!,1,#DIV/0!..},...) you could refer i.e. to this post (there are others)