MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Mar 30th, 2004, 03:17 PM   #1
rickyc
 
Join Date: Mar 2004
Posts: 21
Default LOOKUP

I understand that if the LOOKUP function can not find a exact match, it chooses the largest value in the lookup_range that is less than or equal to the value.

Is there anyway round this?
rickyc is offline   Reply With Quote
Old Mar 30th, 2004, 03:22 PM   #2
just_jon
MrExcel MVP
 
just_jon's Avatar
 
Join Date: Sep 2002
Location: Alabama/State of Disarray
Posts: 10,473
Default Re: LOOKUP

Hi, Hello, and Welcome to MrExcel -- see the VLOOKUP function. With its 4th argument set to FALSE/0, it forces an exact match as in --

=VLOOKUP(TargetString, SearchArray, Column, 0 )
__________________
just_jon
Book of the Month: I'm Not Really an MVP, I Just Play One on TV [j. jon, 2004]
just_jon is offline   Reply With Quote
Old Mar 30th, 2004, 03:22 PM   #3
onlyadrafter
 
Join Date: Aug 2003
Location: England
Posts: 4,584
Default Re: LOOKUP

Hello,

Yes, add ,0 at the end

i.e.

=VLOOKUP(A1,B1:D4,3,0)

this will return #N/A if an exact match isn't found.
__________________
-------------------------
Hope this is helpful.
-------------------------
only a drafter,
but broadening my Excel knowledge.
onlyadrafter is offline   Reply With Quote
Old Mar 30th, 2004, 10:25 PM   #4
rickyc
 
Join Date: Mar 2004
Posts: 21
Default Re: LOOKUP

Many thanks for your help! Didn't expect such a quick response. Very impressed new user
rickyc is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


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


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.