I have a worksheet like this:
|| A | B | C |
---++--------+-------+-----|
---++--------+-------+-----|
1 || 1 | a | |
2 || 2 | b | |
3 || 3 | X | |
4 || 5 | d | |
5 || 7 | X | |
6 || 8 | f | |
7 || 11 | g | |
8 || | | |
9 || | | |
In cell D1, i need a formula that will return 7.
It should return 7, because 7 is in the cell to the left of last occurance of value "X" in column B.
I have been trying with vlookup, offset, match and other builtins, but I can't do it.
I would prefer to do it with builtin functions if this is possible.
Many thanks
Jon