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
|