LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default Vlookup to Find one value but exclude another

Question about the values that may be returned? Are they just numbers, such
as 17; 7; 4,7; 3,17 etc? I'm asking because typically FIND is used to find
something within a longer string (as finding 7 in 17,54).

If they are just numbers then this might work for you:
=IF(ISNA(VLOOKUP($A410,Lookup!$A:$K,9,FALSE)),"",I F(VLOOKUP($A410,Lookup!$A:$K,9,FALSE)=7,"Found 7","Not 7"))

"Sarah (OGI)" wrote:

I have the following formula:

=IF(COUNT(FIND(7,VLOOKUP($A410,Lookup!$A:$K,9,FALS E))),"Yes","No")

If the result of the vlookup finds a "7", the returned value will show
"Yes", but how can I exclude something like "17". The values that I'm
looking through might show "7", "4,7", "3,17", etc and what I want is, if the
value contains the number 7 (but not 17, 27, 37, or whatever it might be), I
want to see a returned value of "Yes".

I hope that makes sense and that someone can help.

Thanks

 
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 to Find one value but exclude another MS-Exl-Learner Excel Discussion (Misc queries) 0 September 9th 09 10:56 AM
VLookup - find new items Shazaxacpcc Excel Worksheet Functions 0 May 6th 09 09:08 PM
VLookup to find two values first [email protected] Excel Discussion (Misc queries) 5 September 15th 07 10:54 AM
Can vlookup find the last row without it in the formula? zerOman Excel Discussion (Misc queries) 3 June 6th 06 02:49 AM
Vlookup & Find Caroline Excel Worksheet Functions 2 April 7th 06 03:13 PM


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