LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default exact match in a string

i1 = " week1, week2, week5, week16, week18, week24 "

i2 = " week16 "

If InStr( i1, i2 ) 0 Then

When I put above code in a loop to check all rows in my sheet not only
" week16 " responds but also " week1 " comes in.

How can I avoid "week1" ?
Or " week2 " while looping for " week24" ?

Any idea ? Thank you very much.
 
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
Find an exact match and go to that match Heath Excel Discussion (Misc queries) 0 February 12th 09 02:28 AM
Find Exact Match using INDEX, MATCH DoubleUU Excel Worksheet Functions 3 August 15th 08 02:42 PM
vlookup and finding text string that's not an exact match my Excel Discussion (Misc queries) 4 July 31st 07 05:04 PM
Getting an exact match Roland Excel Worksheet Functions 2 January 25th 05 05:00 AM
Test for exact match in string Jeremy Gollehon[_2_] Excel Programming 3 August 24th 04 12:58 AM


All times are GMT +1. The time now is 01:33 PM.

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

About Us

"It's about Microsoft Excel"