How do we use lookup ?

  • Thread starter Thread starter khers Field
  • Start date Start date
K

khers Field

I have a table of values like this from A1 to B4
A B
1 123 wall
2 254 chair
3 389 book
4 478 pen

Now I want to write a function (maybe with "lookup") to look at the
first tree characters in coloum A and return the value of it (here,
writen in coloumb B) I have tried with this:

A B C
1 123 wall =lookup(left(A1;3);A1:B4;2)
2 254 chair
3 389 book
4 478 pen

but I get #N/A in C1
if I write =lookup(123;A1:B4;2) I get 2
where as I would like to get "wall"
I have also tried with =VLOOKUP(123,A1:B4,2,FALSE) it gives me "there is
an error in the formula"


can anyone help pls?
 
in the VLOOKUP variant, replace commas with semicolons (that is, if you have
European settings, as your lookup version suggests)

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel
 

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

need help with lookup 5
lookup duplicate value 7
lookup with IF criteria 2
Scrabble Value calculation for Welsh words 0
lookup 5
Sum / Lookup 9
LOOKUP 5
How to lookup a value in excel? 8

Back
Top