close

I've been using vlookups for a couple of years now and my colleague and I
have noticed that when we use them in large speadsheets (50k lines ) the
vlookup comes out with the wrong answer. As anyone else ever come across
this? It happens especially when I use VBA to calculate vlookups for
particular cells.

Any advice would be very much appreciated. Thank you.
I hit the same problem with a VLOOKUP on ca. 1000 rows.
Tried to get around with INDEX(MATCH)), results were the same.

HTH
--
AP

quot;Davequot; gt; a écrit dans le message de
...
gt; I've been using vlookups for a couple of years now and my colleague and I
gt; have noticed that when we use them in large speadsheets (50k lines ) the
gt; vlookup comes out with the wrong answer. As anyone else ever come across
gt; this? It happens especially when I use VBA to calculate vlookups for
gt; particular cells.
gt;
gt; Any advice would be very much appreciated. Thank you.
gt;
gt;
This never happens with correct data and formulas, not even with 64K lines tables.

Frequent causes:

1. Some cells look like numbers, but are actually text. You can check with the ISTEXT function. Check both the search arguments
and the table. Formatting as numbers afterwards doesn't help.
Remedy:
Format an empty cell as Number. Enter the number 1. Editgt;Copy. Select your quot;numbersquot;. Editgt;Paste Special, check Multiply.

2. The data is not sorted and the 4 argument of the VLOOKUP is TRUE or omitted.

3. There are spaces or other invisible characters in either the search arguments or the table.

How exactly do you use VBA to calculate vlookups? What are the values of the arguments?

--
Kind regards,

Niek Otten
quot;Davequot; gt; wrote in message ...
gt; I've been using vlookups for a couple of years now and my colleague and I
gt; have noticed that when we use them in large speadsheets (50k lines ) the
gt; vlookup comes out with the wrong answer. As anyone else ever come across
gt; this? It happens especially when I use VBA to calculate vlookups for
gt; particular cells.
gt;
gt; Any advice would be very much appreciated. Thank you.
gt;
gt;
lt;This never happens gt; Of course I should have said quot;this never happened to mequot;

--
Kind regards,

Niek Otten

quot;Niek Ottenquot; gt; wrote in message ...
gt; This never happens with correct data and formulas, not even with 64K lines tables.
gt;
gt; Frequent causes:
gt;
gt; 1. Some cells look like numbers, but are actually text. You can check with the ISTEXT function. Check both the search arguments
gt; and the table. Formatting as numbers afterwards doesn't help.
gt; Remedy:
gt; Format an empty cell as Number. Enter the number 1. Editgt;Copy. Select your quot;numbersquot;. Editgt;Paste Special, check Multiply.
gt;
gt; 2. The data is not sorted and the 4 argument of the VLOOKUP is TRUE or omitted.
gt;
gt; 3. There are spaces or other invisible characters in either the search arguments or the table.
gt;
gt; How exactly do you use VBA to calculate vlookups? What are the values of the arguments?
gt;
gt; --
gt; Kind regards,
gt;
gt; Niek Otten
gt;
gt;
gt;
gt; quot;Davequot; gt; wrote in message ...
gt;gt; I've been using vlookups for a couple of years now and my colleague and I
gt;gt; have noticed that when we use them in large speadsheets (50k lines ) the
gt;gt; vlookup comes out with the wrong answer. As anyone else ever come across
gt;gt; this? It happens especially when I use VBA to calculate vlookups for
gt;gt; particular cells.
gt;gt;
gt;gt; Any advice would be very much appreciated. Thank you.
gt;gt;
gt;gt;
gt;
gt;
Another common problem is forgetting to use absolute references for the
lookup table range.

Hope this helps.

Pete

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()