#1   Report Post  
Old April 25th 06, 11:40 PM posted to microsoft.public.excel.newusers
 
Posts: n/a
Default vlookup

How can I make this work?
I have a worksheet. I need to extract the first two digits of a number. The
two digit number determines which equipment to use.That number checks
against a vlookup table and then the equipment is entered in another cell.
The worksheet is much larger than this but this should give you an idea what
the problem is.

Example:
A1 = 8110332
B1 =LEFT(A1,2) B1 now shows 81
C1 =VLOOKUP(B1,D1:E1,2,FALSE)
D1 =81
E1 =Thingy

The #N/A error shows. I just need to enter the number in A1 and all the rest
is done for me. I know the problem rests with the formula in B1.



  #2   Report Post  
Old April 25th 06, 11:56 PM posted to microsoft.public.excel.newusers
Peo Sjoblom
 
Posts: n/a
Default vlookup

Try

=VLOOKUP(--B1,D1:E1,2,FALSE)

or in B1 use

=--LEFT(A1,2)

then use your vlookup as originally stated

all the text functions return a text string


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com




wrote in message
. net...
How can I make this work?
I have a worksheet. I need to extract the first two digits of a number.
The two digit number determines which equipment to use.That number checks
against a vlookup table and then the equipment is entered in another cell.
The worksheet is much larger than this but this should give you an idea
what the problem is.

Example:
A1 = 8110332
B1 =LEFT(A1,2) B1 now shows 81
C1 =VLOOKUP(B1,D1:E1,2,FALSE)
D1 =81
E1 =Thingy

The #N/A error shows. I just need to enter the number in A1 and all the
rest is done for me. I know the problem rests with the formula in B1.



  #3   Report Post  
Old April 25th 06, 11:57 PM posted to microsoft.public.excel.newusers
Max
 
Posts: n/a
Default vlookup

B1 =LEFT(A1,2) B1 now shows 81
C1 =VLOOKUP(B1,D1:E1,2,FALSE)


Try instead in B1: =LEFT(A1,2)+0

The "+0" will coerce the text number
returned by LEFTinto a real number
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
" wrote:
How can I make this work?
I have a worksheet. I need to extract the first two digits of a number. The
two digit number determines which equipment to use.That number checks
against a vlookup table and then the equipment is entered in another cell.
The worksheet is much larger than this but this should give you an idea what
the problem is.

Example:
A1 = 8110332
B1 =LEFT(A1,2) B1 now shows 81
C1 =VLOOKUP(B1,D1:E1,2,FALSE)
D1 =81
E1 =Thingy

The #N/A error shows. I just need to enter the number in A1 and all the rest
is done for me. I know the problem rests with the formula in B1.

  #4   Report Post  
Old April 26th 06, 12:28 AM posted to microsoft.public.excel.newusers
 
Posts: n/a
Default vlookup

Thank You So Much. Exactly What I Wanted.


"Max" wrote in message
...
B1 =LEFT(A1,2) B1 now shows 81
C1 =VLOOKUP(B1,D1:E1,2,FALSE)


Try instead in B1: =LEFT(A1,2)+0

The "+0" will coerce the text number
returned by LEFTinto a real number
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
" wrote:
How can I make this work?
I have a worksheet. I need to extract the first two digits of a number.
The
two digit number determines which equipment to use.That number checks
against a vlookup table and then the equipment is entered in another
cell.
The worksheet is much larger than this but this should give you an idea
what
the problem is.

Example:
A1 = 8110332
B1 =LEFT(A1,2) B1 now shows 81
C1 =VLOOKUP(B1,D1:E1,2,FALSE)
D1 =81
E1 =Thingy

The #N/A error shows. I just need to enter the number in A1 and all the
rest
is done for me. I know the problem rests with the formula in B1.



  #5   Report Post  
Old April 26th 06, 01:55 AM posted to microsoft.public.excel.newusers
Max
 
Posts: n/a
Default vlookup

You're welcome ! Glad it helped.
See also Peo's reply for other ways to do it
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
wrote in message
et...
Thank You So Much. Exactly What I Wanted.





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP Problem Ian Excel Discussion (Misc queries) 3 April 6th 06 06:47 PM
Using single cell reference as table array argument in Vlookup CornNiblet Excel Worksheet Functions 3 September 22nd 05 09:15 AM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
Have Vlookup return a Value of 0 instead of #N/A Mr Mike Excel Worksheet Functions 4 May 25th 05 04:51 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM


All times are GMT +1. The time now is 05:05 AM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright 2004-2020 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"

 

Copyright © 2017