smide
Board Regular
- Joined
- Dec 20, 2015
- Messages
- 162
- Office Version
- 2016
- Platform
- Windows
Hello.
This is my example data set.
<tbody>
</tbody>
With formula (in cell C1) =lookup(2,1/(A1:A10=3),B1:B10) I could find the last value in column B for a number 3 and result in cell C1 is letter G.
I need a formula to find a second to last value for number 3 (in this example) and result in cell C1 should be letter C.
This is my example data set.
A | B | C | |
1 | 1 | A | G |
2 | 2 | B | |
3 | 3 | C | |
4 | 4 | D | |
5 | 1 | E | |
6 | 2 | F | |
7 | 3 | G | |
8 | 4 | H | |
9 | .... | .... |
<tbody>
</tbody>
With formula (in cell C1) =lookup(2,1/(A1:A10=3),B1:B10) I could find the last value in column B for a number 3 and result in cell C1 is letter G.
I need a formula to find a second to last value for number 3 (in this example) and result in cell C1 should be letter C.