Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike Saffer
 
Posts: n/a
Default My VLOOKUP isn't working. Drats

Greetings folks,

My formula in P7 is:
=VLOOKUP(O7,$Q$7:$S$21,3)
The answer in P7 appears to be wrong because 20140 is not found in my range.

But the answer in P8 appears to be correct since 20148 is in my range and
the 3rd column in the range (cell S21) says yes.




O P Q R S
7 20140 Yes 4990 WSJO No
8 20148 Yes 5001 WSJO No
9 20576 Yes 5107 WSJO Yes
10 20732 Yes 5144 WSJO No
11 20909 Yes 5350 WSJO No
12 21277 No 5468 WSJO No
13 21295 Yes 5479 WSJO No
14 21361 Yes 5488 WSJO Yes
15 21478 Yes 5745 WSJO No
16 21539 Yes 5821 WSJO Yes
17 21596 Yes 20000 WSJO No
18 21657 No 20111 WSJO Yes
19 21797 Yes 20114 WSJO Yes
20 21883 Yes 20128 WSJO Yes
21 22024 Yes 20148 WSJO Yes

Can anyone tell me what's wrong here?
Thanks a lot!

--
Mike
Jacksonville, Florida
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Elkar
 
Posts: n/a
Default My VLOOKUP isn't working. Drats

Try this:

=VLOOKUP(O7,$Q$7:$S$21,3,FALSE)

Without the FALSE portion, VLookUp will look for an approximate match rather
than an exact match. With FALSE, VLookUp will return an error if not found.

You may also want to consider something like this:

=IF(ISERROR(VLOOKUP(O7,$Q$7:$S$21,3,FALSE)),"Not
Found",VLOOKUP(O7,$Q$7:$S$21,3,FALSE))

This gives a more informative result rather than just an error.

HTH,
Elkar


"Mike Saffer" wrote:

Greetings folks,

My formula in P7 is:
=VLOOKUP(O7,$Q$7:$S$21,3)
The answer in P7 appears to be wrong because 20140 is not found in my range.

But the answer in P8 appears to be correct since 20148 is in my range and
the 3rd column in the range (cell S21) says yes.




O P Q R S
7 20140 Yes 4990 WSJO No
8 20148 Yes 5001 WSJO No
9 20576 Yes 5107 WSJO Yes
10 20732 Yes 5144 WSJO No
11 20909 Yes 5350 WSJO No
12 21277 No 5468 WSJO No
13 21295 Yes 5479 WSJO No
14 21361 Yes 5488 WSJO Yes
15 21478 Yes 5745 WSJO No
16 21539 Yes 5821 WSJO Yes
17 21596 Yes 20000 WSJO No
18 21657 No 20111 WSJO Yes
19 21797 Yes 20114 WSJO Yes
20 21883 Yes 20128 WSJO Yes
21 22024 Yes 20148 WSJO Yes

Can anyone tell me what's wrong here?
Thanks a lot!

--
Mike
Jacksonville, Florida

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Marcelo
 
Posts: n/a
Default My VLOOKUP isn't working. Drats

Hi Mike

change the formula to =VLOOKUP(O7,$Q$7:$S$21,3,0)

or to do not have a #value try to use

=if(iserror(VLOOKUP(O7,$Q$7:$S$21,3,0)),"",VLOOKUP (O7,$Q$7:$S$21,3,0))


hope this helps
Regards from Brazil
Marcelo


"Mike Saffer" escreveu:

Greetings folks,

My formula in P7 is:
=VLOOKUP(O7,$Q$7:$S$21,3)
The answer in P7 appears to be wrong because 20140 is not found in my range.

But the answer in P8 appears to be correct since 20148 is in my range and
the 3rd column in the range (cell S21) says yes.




O P Q R S
7 20140 Yes 4990 WSJO No
8 20148 Yes 5001 WSJO No
9 20576 Yes 5107 WSJO Yes
10 20732 Yes 5144 WSJO No
11 20909 Yes 5350 WSJO No
12 21277 No 5468 WSJO No
13 21295 Yes 5479 WSJO No
14 21361 Yes 5488 WSJO Yes
15 21478 Yes 5745 WSJO No
16 21539 Yes 5821 WSJO Yes
17 21596 Yes 20000 WSJO No
18 21657 No 20111 WSJO Yes
19 21797 Yes 20114 WSJO Yes
20 21883 Yes 20128 WSJO Yes
21 22024 Yes 20148 WSJO Yes

Can anyone tell me what's wrong here?
Thanks a lot!

--
Mike
Jacksonville, Florida

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben
 
Posts: n/a
Default My VLOOKUP isn't working. Drats

You have left off the False argument and are getting a "closest match"

Use this instead. =VLOOKUP(O7,$Q$7:$S$21,3,FALSE)

Better yet, trap for the N/A error.

=IF(ISNA(VLOOKUP(O7,$Q$7:$S$21,3,FALSE)),"",VLOOKU P(O7,$Q$7:$S$21,3,FALSE))

I prefer the ISNA to ISERROR .

ISERROR will pick up all errors and may make it hard to troubleshoot.


Gord Dibben MS Excel MVP

On Tue, 20 Jun 2006 13:11:02 -0700, Mike Saffer
wrote:

Greetings folks,

My formula in P7 is:
=VLOOKUP(O7,$Q$7:$S$21,3)
The answer in P7 appears to be wrong because 20140 is not found in my range.

But the answer in P8 appears to be correct since 20148 is in my range and
the 3rd column in the range (cell S21) says yes.




O P Q R S
7 20140 Yes 4990 WSJO No
8 20148 Yes 5001 WSJO No
9 20576 Yes 5107 WSJO Yes
10 20732 Yes 5144 WSJO No
11 20909 Yes 5350 WSJO No
12 21277 No 5468 WSJO No
13 21295 Yes 5479 WSJO No
14 21361 Yes 5488 WSJO Yes
15 21478 Yes 5745 WSJO No
16 21539 Yes 5821 WSJO Yes
17 21596 Yes 20000 WSJO No
18 21657 No 20111 WSJO Yes
19 21797 Yes 20114 WSJO Yes
20 21883 Yes 20128 WSJO Yes
21 22024 Yes 20148 WSJO Yes

Can anyone tell me what's wrong here?
Thanks a lot!


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike Saffer
 
Posts: n/a
Default My VLOOKUP isn't working. Drats

Thank you all.
That helps a lot in understanding the False argument.
Much obliged.


--
Mike
Jacksonville, Florida


"Gord Dibben" wrote:

You have left off the False argument and are getting a "closest match"

Use this instead. =VLOOKUP(O7,$Q$7:$S$21,3,FALSE)

Better yet, trap for the N/A error.

=IF(ISNA(VLOOKUP(O7,$Q$7:$S$21,3,FALSE)),"",VLOOKU P(O7,$Q$7:$S$21,3,FALSE))

I prefer the ISNA to ISERROR .

ISERROR will pick up all errors and may make it hard to troubleshoot.


Gord Dibben MS Excel MVP

On Tue, 20 Jun 2006 13:11:02 -0700, Mike Saffer
wrote:

Greetings folks,

My formula in P7 is:
=VLOOKUP(O7,$Q$7:$S$21,3)
The answer in P7 appears to be wrong because 20140 is not found in my range.

But the answer in P8 appears to be correct since 20148 is in my range and
the 3rd column in the range (cell S21) says yes.




O P Q R S
7 20140 Yes 4990 WSJO No
8 20148 Yes 5001 WSJO No
9 20576 Yes 5107 WSJO Yes
10 20732 Yes 5144 WSJO No
11 20909 Yes 5350 WSJO No
12 21277 No 5468 WSJO No
13 21295 Yes 5479 WSJO No
14 21361 Yes 5488 WSJO Yes
15 21478 Yes 5745 WSJO No
16 21539 Yes 5821 WSJO Yes
17 21596 Yes 20000 WSJO No
18 21657 No 20111 WSJO Yes
19 21797 Yes 20114 WSJO Yes
20 21883 Yes 20128 WSJO Yes
21 22024 Yes 20148 WSJO Yes

Can anyone tell me what's wrong here?
Thanks a lot!



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 formula not working with data on separate sheet akee Excel Worksheet Functions 18 March 16th 06 03:18 PM
Vlookup not working because of duplicate matches BBS Excel Worksheet Functions 8 February 3rd 06 11:39 AM
Using single cell reference as table array argument in Vlookup CornNiblet Excel Worksheet Functions 3 September 22nd 05 09:15 AM
Vlookup not working in 2000 - worked in 97! [email protected] Excel Discussion (Misc queries) 3 September 7th 05 11:30 AM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM


All times are GMT +1. The time now is 11:51 PM.

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

About Us

"It's about Microsoft Excel"