#1   Report Post  
francesrivera
 
Posts: n/a
Default No Match


Good morning everyone,

Quick question...

I need "NO MATCH" to appear in the cell rather than the value of the
closest LOOKUP match that satisfies the formula. How can I do this?

=LOOKUP(B25,'MO Add&Counter'!$E:$E,'MO Add&Counter'!$H:$H)
=LOOKUP(B25,'MO Add&Counter'!$E:$E,'MO Add&Counter'!$I:$I)
=LOOKUP(B25,'MO Add&Counter'!$E:$E,'MO Add&Counter'!$AN:$AN)

=LOOKUP(B25,MedicareOfc,'MO Ave Claims'!$T$2:$T$235)



FR


--
francesrivera
------------------------------------------------------------------------
francesrivera's Profile: http://www.excelforum.com/member.php...o&userid=26531
View this thread: http://www.excelforum.com/showthread...hreadid=397987

  #2   Report Post  
Junior Member
 
Location: Washington, DC
Posts: 16
Default

Frances,

Use VLOOKUP instead of LOOKUP. This gives you the ability to control what Excel returns to you (instead of always getting the closest value). Try the formula below:

=IF(ISERROR(VLOOKUP(B25,'MO Add&Counter'!$E:$H,4,FALSE)),"No Match",VLOOKUP(B25,'MO Add&Counter'!$E:$H,4,FALSE))

where B25 is your target value, the next argument is the full address of the table you are searching, the 4 is the column number within that table that contains the desired result, and "FALSE" tells Excel not to return the closest value, but to report an error instead. You then wrap this in an "ISERROR" function to return the desired message.

Knightly

Quote:
Originally Posted by francesrivera
Good morning everyone,

Quick question...

I need "NO MATCH" to appear in the cell rather than the value of the
closest LOOKUP match that satisfies the formula. How can I do this?

=LOOKUP(B25,'MO Add&Counter'!$E:$E,'MO Add&Counter'!$H:$H)
=LOOKUP(B25,'MO Add&Counter'!$E:$E,'MO Add&Counter'!$I:$I)
=LOOKUP(B25,'MO Add&Counter'!$E:$E,'MO Add&Counter'!$AN:$AN)

=LOOKUP(B25,MedicareOfc,'MO Ave Claims'!$T$2:$T$235)



FR


--
francesrivera
------------------------------------------------------------------------
francesrivera's Profile: http://www.excelforum.com/member.php...o&userid=26531
View this thread: http://www.excelforum.com/showthread...hreadid=397987
  #3   Report Post  
Anne Troy
 
Posts: n/a
Default

=if(isna(LOOKUP(B25,'MO Add&Counter'!$E:$E,'MO Add&Counter'!$H:$H,FALSE),"No
Match",LOOKUP(B25,'MO Add&Counter'!$E:$E,'MO Add&Counter'!$H:$H,FALSE))
************
Anne Troy
www.OfficeArticles.com

"francesrivera"
wrote in message
news:francesrivera.1u6xaf_1124755527.4895@excelfor um-nospam.com...

Good morning everyone,

Quick question...

I need "NO MATCH" to appear in the cell rather than the value of the
closest LOOKUP match that satisfies the formula. How can I do this?

=LOOKUP(B25,'MO Add&Counter'!$E:$E,'MO Add&Counter'!$H:$H)
=LOOKUP(B25,'MO Add&Counter'!$E:$E,'MO Add&Counter'!$I:$I)
=LOOKUP(B25,'MO Add&Counter'!$E:$E,'MO Add&Counter'!$AN:$AN)

=LOOKUP(B25,MedicareOfc,'MO Ave Claims'!$T$2:$T$235)



FR


--
francesrivera
------------------------------------------------------------------------
francesrivera's Profile:
http://www.excelforum.com/member.php...o&userid=26531
View this thread: http://www.excelforum.com/showthread...hreadid=397987



  #4   Report Post  
UofMoo
 
Posts: n/a
Default


Here is a sample that should help.

__ A ______ B___C______ D___
1| NO MATCH__________________
2|__________4___1_______11
3|______________3_______33
4|______________5_______55
5|______________7_______77


the formula in A1 is:
=IF(COUNTIF(C2:C5, B2) 0, VLOOKUP(B2,C2:D5,2,FALSE), "NO MATCH")


--
UofMoo
------------------------------------------------------------------------
UofMoo's Profile: http://www.excelforum.com/member.php...o&userid=26485
View this thread: http://www.excelforum.com/showthread...hreadid=397987

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
Look up data in colum a and find match in colum b Chris(new user) Excel Discussion (Misc queries) 1 March 22nd 05 01:41 PM
Look up data in colum a and find match in colum b Chris(new user) Excel Discussion (Misc queries) 1 March 19th 05 09:27 PM
Match & Index Phyllis B. Excel Worksheet Functions 2 November 27th 04 03:26 PM
Find a match that;s not exact Phyllis Excel Worksheet Functions 0 November 8th 04 08:12 PM
Vlookup, Index & Match Phyllis Excel Worksheet Functions 1 November 8th 04 06:11 PM


All times are GMT +1. The time now is 05:57 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"