RE: need help with lookup

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



The difficulty is that A1 is numeric and Left (A1) is text
you can change your equation to
=lookup(value(left(A1,3)),A1:B4)
[note I had to change ";" to "," and do not know why you have ";2" at the
end of your equation. It does not work for me]

"khers Field" wrote:

> 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
>
> can anyone help pls?
>
.



Relevant Pages

  • need help with lookup
    ... 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, ... if I write =lookupI get 2 where as I would like to get wall ...
    (microsoft.public.excel.misc)
  • SQL beginner question - JOIN / relational database.
    ... Coloum name, and then retrive data from the two tables with some kind ... Cah ... Prev by Date: ...
    (comp.lang.php)
  • subtotal on each page
    ... page of the report, but I would like to have the subtotal of each coloum for ... at then end of page 1 each colum would have a total of 100 ... Page two would have a total for each coloum of 100 ... Prev by Date: ...
    (microsoft.public.access.reports)
  • How do we use lookup ?
    ... 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, ... 123 wall =lookup;A1:B4;2) ...
    (microsoft.public.excel.misc)
  • list to table
    ... i would like to leave coloum A as a list (but filter out the duplicate) ... coloum b i would like to have a titles accross the top and coloum C i would ... Prev by Date: ...
    (microsoft.public.excel.worksheet.functions)