I have an interesting challenge - I need to run a check on the following data in Excel:
| A - B - C - D | |------|------|------|------| | 36 |
Try this;
=IF(B1>=0, B1, OFFSET($X$1, MATCH(B1, $X:$X, Z) - 1, Y)
WHERE X = The columns you are indexing into Y = The number of columns to the left (-Y) or right (Y) of the indexed column to get the value you are looking for Z = 0 if exact-match (if you want to handle errors)