Do you know any way to write a formula for vlookup/indexmatch which will look for first result other than "null" for "aaaa", and then for bbb etc?
I was trying to do that with using multiple if/offsets etc, but its not working.
Is it even possible (there can be one row with "aaa" but also 10 on even more).
The following array formula returns the first entry in column B
where it is not null
and also where column A
has cell value aaaaa
.
= IFERROR(INDEX(B1:B6,MATCH(1,(A1:A6="aaaaa")*(B1:B6<>"null"),0)),"no match")
Note this is an array formula, so you must press Ctrl + Shift + Enter on the keyboard after typing the formula rather than just pressing Enter .
To return a similar result except for bbbbb
, just replace aaaaa
in the above formula with bbbbb
.
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.