Forum Discussion
Misleiloee
Jun 14, 2023Copper Contributor
Lookup function with specific cells
Hello, I want to have the last value entered for each column A B C D but I don't know how to do it. It's not working when I select only the cells I want it to take into account for the formula f...
- Jun 14, 2023
Lorenzo
Jun 14, 2023Silver Contributor
Misleiloee
Jun 14, 2023Copper Contributor
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 !
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 !
- SergeiBaklanJun 14, 2023Diamond Contributor
As a comment to Lorenzo comment, instead of 2 as first parameter you may use any number greater than 1, for example PI().
- LorenzoJun 14, 2023Silver Contributor
(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 https://answers.microsoft.com/en-us/msoffice/forum/all/how-some-function-like-lookup-vlookup-match/411d17a2-3488-4e83-9dbd-c29d8512a3e6?LastReply=true#LastReply (there are others)