Reputation: 117
I got a strange task to perform and I can't imagine how to do it or even come up with a term to google, since I'm not that good with excel formulas, and I am not allowed to use VBA:
If column 'D' contains either an 'S' or an 'H' the following needs to be done:
I know it's confusing, so I'm adding a screenshot:
There are some conditions:
I hope I made myself clear, since english is not my native language. Feel free to ask questions if something is unclear.
Upvotes: 3
Views: 4228
Reputation: 75840
Try the following:
Formula in B2
:
=IF(OR(D2="S",D2="H"),INDEX(F:F,MATCH(LOOKUP(2,1/(ISNUMBER(E$1:INDEX(E:E,ROW(E1)))),E$1:INDEX(E:E,ROW(E1))),E:E,0)),"")
Drag down...
Upvotes: 5