vlookup when correct

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a lookup table and have put the formula into another worksheet where it works. I am chaning an old number to a new number. However if a value is entered which is neither on the lookup table or the new number the lookup selects the last number in my lookup table. Does anyone know how i can make it stay the same if its not there or if its the new number to simply keep it the same.
Thanks
 
Hi Mas

Look at the last argument in Vlookup(True or False)

If you don't like the error you can use this

=IF(ISNA(VLOOKUP(.............)),0,VLOOKUP(...............))

This will return a zero if the Vlookup returns a #N/A error.

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)




mas said:
I have a lookup table and have put the formula into another worksheet where it works. I am chaning an old number to a new
number. However if a value is entered which is neither on the lookup table or the new number the lookup selects the last number
in my lookup table. Does anyone know how i can make it stay the same if its not there or if its the new number to simply keep it
the same.
 
You may want to try

VLOOKUP(VALUE,RANGE,ROW,FALSE)

The key part that I think will solve your problem is placing a "FALSE
at the end of your formula, by place "FALSE" it tell the formula tha
not necessarily your result is in certain order, thus returing the las
value in your record set. Hope this helps
 
Hi Fable

sorry to butt in (and i don't even know the original question) but the
syntax of VLOOKUP is

=VLOOKUP(Value, Range - or Table array, COLUMN NUMBER, false)

where false requires the VLOOKUP to return an EXACT match as opposed to an
approximate match. If no exact match is found (when False is specified)
then the VLOOKUP will return #NA.

Cheers
JulieD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

VLOOKUP TABLE ERROR 6
Access Command button to look up and copy data from a query to a table 0
Vlookups and formats 3
VLookup 1
nested vlookup? 9
Two Condition Vlookup 1
VLOOKUP combined with AND 4
VLOOKUP 2

Back
Top