Question

I'm looking to add some functionality to a spreadsheet that does the following.

I would like to run a Vlookup that looks for a match with another cell, if it finds a match in I20, I would like to return the value of I21. It will always have to return the value with the cell directly below it. Is there a way for me to do this?

I do not want to hard code, since the values in the vlookup maybe different, but it will always need the value directly below the match.

Was it helpful?

Solution

As I mentioned in comments, you can use

=INDEX(I:I,MATCH("something",I:I,0)+1)

Index/Match is pretty similar to Vlookup, you can read more here.

Also for error hadling you can use:

1) for Excel 2007 and later:

=IFERROR(INDEX(I:I,MATCH("something",I:I,0)+1),"there is no match")

2) for Excel 2003:

=IF(ISERROR(INDEX(I:I,MATCH("something",I:I,0)+1)),"there is no match",INDEX(I:I,MATCH("something",I:I,0)+1))
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top