View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
ker_01 ker_01 is offline
external usenet poster
 
Posts: 395
Default Help with if statement

It is never evaluated because the evaluation of text strings is case
sensitive. The easiest way to get around that would be:

If lcase(c1.Value) = lcase(c2.Value) then

HTH,
Keith

"Ayo" wrote:

if c1="INDIANAPOLIS" and c2="Indianapolis" why is the statement after the if
statement never executed?
If c1.Value = c2.Value then
c1.Offset(0, 6) = c1.Offset(0, 6) + c2.Offset(0, 3)