Share via

Lookup result one row off

Anonymous
2011-11-14T18:22:54+00:00

I am using the lookup vector function. Suddenly, my result is always one row off. It is returning B3 for A4. Has anyone experienced this? How can I fix it?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2011-11-14T19:02:29+00:00

Sure - it's happening no matter how basic I get: =lookup(J2, E:E, G:G). (It started happening in a more complicated scenario, but now I can't get it to work correctly anywhere)

Hi,

I would expect =lookup(J2, E:E, G:G) to work in the normal way and find the value of J2 in EE and return the corresponding value in G:G but there are circumstances where it might not.

Lets say that J2 was a calculated value containing several decimal places of which we're displaying 2. The way lookup works is that it searches for an exact match but if it doesn't find it then it returns the largest match that is less than the lookup value and because the real value isn't what we see in j2 this coulld mean it returns results we don't expect.

You may have to ROUND the lookup value in J2

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

Answer accepted by question author

Anonymous
2011-11-15T12:45:42+00:00

Hi, try this formula

=index(G:G,match(J2,E:E,0))

Was this answer helpful?

0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2011-11-14T18:58:52+00:00

    It is returning B3 for A4.

    That indicates a row off AND a column off...

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2011-11-14T18:51:50+00:00

    Sure - it's happening no matter how basic I get: =lookup(J2, E:E, G:G). (It started happening in a more complicated scenario, but now I can't get it to work correctly anywhere)

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2011-11-14T18:33:11+00:00

    Hi, can you post the formula you are using

    Was this answer helpful?

    0 comments No comments