#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default vlookup error...

i have 2 tabs.

sheet1 -- contain list of name and id#.
ID# (sorted), Name
101
102
103
1001
1002

sheet 2 -- contain id#
ID#. Col. B
101
1001
102
103
1002

in sheet 2, i want to check if the id# exists in Sheet 1, and if does, i
want it to display the id in col. b.
=VLOOKUP(A1,Sheet1!$1:$100,1)

When, i do this, most of the time, it works, however some time the result
does not come exact.
Like if it was looking for 1002, the result will show as 102 and end.

Formatted all col. as text. what can i do to fix this.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default vlookup error...

PS: sometimes, i have to go back to the col 1 on sheet 2. and "ENTER"
individually to get them to work.



"Rajmahal" wrote:

i have 2 tabs.

sheet1 -- contain list of name and id#.
ID# (sorted), Name
101
102
103
1001
1002

sheet 2 -- contain id#
ID#. Col. B
101
1001
102
103
1002

in sheet 2, i want to check if the id# exists in Sheet 1, and if does, i
want it to display the id in col. b.
=VLOOKUP(A1,Sheet1!$1:$100,1)

When, i do this, most of the time, it works, however some time the result
does not come exact.
Like if it was looking for 1002, the result will show as 102 and end.

Formatted all col. as text. what can i do to fix this.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 459
Default vlookup error...

Nel ,
Rajmahal ha scritto:
i have 2 tabs.

sheet1 -- contain list of name and id#.
ID# (sorted), Name
101
102
103
1001
1002

sheet 2 -- contain id#
ID#. Col. B
101
1001
102
103
1002

in sheet 2, i want to check if the id# exists in Sheet 1, and if
does, i want it to display the id in col. b.
=VLOOKUP(A1,Sheet1!$1:$100,1)

When, i do this, most of the time, it works, however some time the
result does not come exact.
Like if it was looking for 1002, the result will show as 102 and end.

Formatted all col. as text. what can i do to fix this.


try this way:

=VLOOKUP(A1,Sheet1!$1:$100,1,0)

or also:

=VLOOKUP(A1,Sheet1!$1:$100,1,false)



--
(I'm not sure of names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.


Thanks in advance for your feedback.


Ciao


Franz Verga from Italy
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default vlookup error...

Make sure ToolsOptionsCalculation is set to Automatic.


Gord Dibben MS Excel MVP

On Sat, 22 Sep 2007 17:56:00 -0700, Rajmahal
wrote:

PS: sometimes, i have to go back to the col 1 on sheet 2. and "ENTER"
individually to get them to work.


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 error Vlookup not accurate Excel Discussion (Misc queries) 9 October 5th 06 04:06 PM
vlookup error Vlookup not accurate Excel Discussion (Misc queries) 0 October 4th 06 06:21 PM
VLOOKUP error in VBA [email protected] Excel Discussion (Misc queries) 1 September 20th 06 03:57 PM
REF# error using VLOOKUP Amy Excel Worksheet Functions 8 May 18th 06 01:06 AM
VLOOKUP error Eintsein_mc2 Excel Discussion (Misc queries) 2 September 17th 05 07:12 AM


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

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

About Us

"It's about Microsoft Excel"