View Single Post
  #2   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

See Help for VLOOKUP. As you have written the formula, VLOOKUP assumes
that banking!$C$10:banking!$C$500 is in ascending order (if that column
is not sorted, then you probably want to use the optional 4th argument).
As posted, if N10<banking!C10, then your formula will return #N/A.
Othewise it will search down banking!$C$10:banking!$C$500 until it finds
the first value =N10.

For concreteness, say that occurs in row 27. If banking!C27=N10, then
VLOOKUP will return banking!D27. If banking!C27N10, then VLOOKUP will
return banking!D26, even if there is a value farther down in
banking!$C$10:banking!$C$500 that is exactly equal to N10.

Jerry

steve alcock wrote:

Hi,

why when I use vlookup on cells that have a formula in
does vlookup return me 0.00 values i.e.

if(vlookup($n10,banking!$c$10:banking!$j$500,2)
="","",vlookup($n10,banking!$c$10:banking!$j$500,2 ))

n10=20091

banking has 20091 but this is obtained automatically by :

=IF(J260,J26,"")

the values returned are sometimes correct or 0.00 AND if $N
(X) is blank ( no returned value ) it always returns me
0.00

anyone any ideas how to overcome this please

thanks

steve.