can you please advise how to write a formula to:
Karl Jane Adam Pete Dona
300 0 200 100 0
Using just the LOOKUP
formula, you merely set your result_vector
argument to the row from which you want to get the result.
Try:
=LOOKUP(2,1/(A2:E2>0),$A$1:$E$1)
(If your formula is not in the same row, you can use whole-row references)
=LOOKUP(2,1/(2:2>0),$1:$1)
To stick with LOOKUP
, you could use it in INDEX
:
=INDEX(1:1,LOOKUP(2,1/(2:2>0),COLUMN(2:2)))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.