Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Comparing String Values

You can make all string comparisons in a given module case insensitive by
adding:

Option Compare Text

at the top.

Otherwise you can use:

lcase(str1) = lcase(str2)

or

StrComp(str1,str1, vbTextCompare)

--
Jim Rech
Excel MVP
"Ben H" wrote in message
...
| Spot on, Gentlemen! Thanks!
|
| Now about the follow!
| Is there a way to make it to return true when comparing, "J45006" to
| "j45006"?
|
| Thanks!
|
|


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
Comparing the first 2 characters of a coloumn to a string Jaime Excel Worksheet Functions 1 April 16th 08 06:28 AM
Help with Comparing values and retrieving values in Excel!!!!!! [email protected] Excel Worksheet Functions 1 November 17th 06 12:21 AM
Comparing String Values Roderick[_4_] Excel Programming 0 September 2nd 04 03:18 PM
Comparing String Values Jim Rech Excel Programming 0 September 2nd 04 03:14 PM
Question about comparing mixed case string values TBA[_2_] Excel Programming 4 January 17th 04 06:32 PM


All times are GMT +1. The time now is 07:50 AM.

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"