Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 124
Default Matching Case

How can I test a text value in a cell when CAPITALIZATION DOES NOT EQUAL
LOWER CASE???

In other words, "MIAMI" and "Miami" is NOT a match.

Thanks,

FLKulchar
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Matching Case

Are you asking how to make the formula disregard the case of the text when it
compares?


"F. Lawrence Kulchar" wrote:

How can I test a text value in a cell when CAPITALIZATION DOES NOT EQUAL
LOWER CASE???

In other words, "MIAMI" and "Miami" is NOT a match.

Thanks,

FLKulchar

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Matching Case

"F. Lawrence Kulchar" wrote in
message ...
How can I test a text value in a cell when CAPITALIZATION DOES NOT EQUAL
LOWER CASE???

In other words, "MIAMI" and "Miami" is NOT a match.


and it should be? It's not clear from your question what the desired
outcome of that comparison would be.

If you want to ignore the case then

If UCase(someVar) = "MIAMI" then
'stuff
End if

Tim


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Matching Case

On Sun, 24 Sep 2006 17:39:01 -0700, F. Lawrence Kulchar
wrote:

How can I test a text value in a cell when CAPITALIZATION DOES NOT EQUAL
LOWER CASE???

In other words, "MIAMI" and "Miami" is NOT a match.

Thanks,

FLKulchar


In VBA, with the default Option Compare Binary, you can use the "Like"
operator.

In Excel, you can use the EXACT worksheet function.


--ron
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default Matching Case

i am not using macros or VBA...only the EXCEL formulas.
"Ron Rosenfeld" wrote in message
...
On Sun, 24 Sep 2006 17:39:01 -0700, F. Lawrence Kulchar
wrote:

How can I test a text value in a cell when CAPITALIZATION DOES NOT EQUAL
LOWER CASE???

In other words, "MIAMI" and "Miami" is NOT a match.

Thanks,

FLKulchar


In VBA, with the default Option Compare Binary, you can use the "Like"
operator.

In Excel, you can use the EXACT worksheet function.


--ron





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Matching Case

Ron wasn't kidding.

Look at excel's help for =exact().



FLKulchar wrote:

i am not using macros or VBA...only the EXCEL formulas.
"Ron Rosenfeld" wrote in message
...
On Sun, 24 Sep 2006 17:39:01 -0700, F. Lawrence Kulchar
wrote:

How can I test a text value in a cell when CAPITALIZATION DOES NOT EQUAL
LOWER CASE???

In other words, "MIAMI" and "Miami" is NOT a match.

Thanks,

FLKulchar


In VBA, with the default Option Compare Binary, you can use the "Like"
operator.

In Excel, you can use the EXACT worksheet function.


--ron


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default Matching Case

EUREKA...=IF(Exact(A1,B1),"YES","NO")

"FLKulchar" wrote in message
...
i am not using macros or VBA...only the EXCEL formulas.
"Ron Rosenfeld" wrote in message
...
On Sun, 24 Sep 2006 17:39:01 -0700, F. Lawrence Kulchar
wrote:

How can I test a text value in a cell when CAPITALIZATION DOES NOT EQUAL
LOWER CASE???

In other words, "MIAMI" and "Miami" is NOT a match.

Thanks,

FLKulchar


In VBA, with the default Option Compare Binary, you can use the "Like"
operator.

In Excel, you can use the EXACT worksheet function.


--ron





  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Matching Case

On Sun, 24 Sep 2006 21:03:40 -0400, "FLKulchar"
wrote:

i am not using macros or VBA...only the EXCEL formulas.


As I wrote:

"In Excel, you can use the EXACT worksheet function."

Did you check that out?
--ron
  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default Matching Case

yes...all is great
"Ron Rosenfeld" wrote in message
...
On Sun, 24 Sep 2006 21:03:40 -0400, "FLKulchar"
wrote:

i am not using macros or VBA...only the EXCEL formulas.


As I wrote:

"In Excel, you can use the EXACT worksheet function."

Did you check that out?
--ron



  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default Matching Case

Okay..I understand the =EXACT(a1,b1) function...but how can i test using the
=IF function.

i.e. =IF(A1=B1, "YES","NO")

And I desire an EXACT match...so A1 < B1 if "MIAMI" and "Miami" are within
the cells!!

How to use th =IF function??

Thanks,

FLKLulchar
"Ron Rosenfeld" wrote in message
...
On Sun, 24 Sep 2006 17:39:01 -0700, F. Lawrence Kulchar
wrote:

How can I test a text value in a cell when CAPITALIZATION DOES NOT EQUAL
LOWER CASE???

In other words, "MIAMI" and "Miami" is NOT a match.

Thanks,

FLKulchar


In VBA, with the default Option Compare Binary, you can use the "Like"
operator.

In Excel, you can use the EXACT worksheet function.


--ron





  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Matching Case

=IF(EXACT(A1,B1),"yes","no")

FLKulchar wrote:

Okay..I understand the =EXACT(a1,b1) function...but how can i test using the
=IF function.

i.e. =IF(A1=B1, "YES","NO")

And I desire an EXACT match...so A1 < B1 if "MIAMI" and "Miami" are within
the cells!!

How to use th =IF function??

Thanks,

FLKLulchar
"Ron Rosenfeld" wrote in message
...
On Sun, 24 Sep 2006 17:39:01 -0700, F. Lawrence Kulchar
wrote:

How can I test a text value in a cell when CAPITALIZATION DOES NOT EQUAL
LOWER CASE???

In other words, "MIAMI" and "Miami" is NOT a match.

Thanks,

FLKulchar


In VBA, with the default Option Compare Binary, you can use the "Like"
operator.

In Excel, you can use the EXACT worksheet function.


--ron


--

Dave Peterson
  #12   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default Matching Case

I see it now...thank you..all is okay

flkulchar
"Dave Peterson" wrote in message
...
=IF(EXACT(A1,B1),"yes","no")

FLKulchar wrote:

Okay..I understand the =EXACT(a1,b1) function...but how can i test using
the
=IF function.

i.e. =IF(A1=B1, "YES","NO")

And I desire an EXACT match...so A1 < B1 if "MIAMI" and "Miami" are
within
the cells!!

How to use th =IF function??

Thanks,

FLKLulchar
"Ron Rosenfeld" wrote in message
...
On Sun, 24 Sep 2006 17:39:01 -0700, F. Lawrence Kulchar
wrote:

How can I test a text value in a cell when CAPITALIZATION DOES NOT
EQUAL
LOWER CASE???

In other words, "MIAMI" and "Miami" is NOT a match.

Thanks,

FLKulchar

In VBA, with the default Option Compare Binary, you can use the "Like"
operator.

In Excel, you can use the EXACT worksheet function.


--ron


--

Dave Peterson



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
change data of entire column from small case to upper case Ann Excel Worksheet Functions 1 August 16th 08 01:06 PM
Changing multiple cell text from lower case to upper case Patti Excel Discussion (Misc queries) 2 January 4th 08 08:35 PM
excel'03 how to convert a column from upper case to proper case sharie palmer Excel Discussion (Misc queries) 1 January 30th 06 11:50 PM
Change the text from lower case to upper case in an Excel work boo dave01968 Excel Discussion (Misc queries) 2 December 9th 05 09:09 AM
How to use formula auditing to change upper case to Title Case. ScoobeyDoo Excel Worksheet Functions 1 November 19th 04 06:26 PM


All times are GMT +1. The time now is 11:12 AM.

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"