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

1MLIBGB.

CAN I USE AN IF STATEMENT FOR THE ABOVE WORD THAT TAKES INTO ACCOUNT THE 1
AND THE M

IE THE 1 AND M CHANGES CAN I CAPTURE THIS USING AN IF STATEMENT?--
chesty
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default if statements.

Typing in all CAPS is considered bad netiqutte. SHOUTING!
try this idea
=IF(ISERR(FIND("M",A14)),1,2)

--
Don Guillett
SalesAid Software

"chesty" wrote in message
...
1MLIBGB.

CAN I USE AN IF STATEMENT FOR THE ABOVE WORD THAT TAKES INTO ACCOUNT THE 1
AND THE M

IE THE 1 AND M CHANGES CAN I CAPTURE THIS USING AN IF STATEMENT?--
chesty



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default if statements.

Try this, let us know how you get on

Sub IfChange()

Dim LastRow
LastRow = Sheet1.UsedRange.Row - 1 _
+ Sheet1.UsedRange.Rows.Count

For x = 1 To LastRow

If Mid(Sheet1.Range("A" & x).Value, 1, 2) < "IM" Then
MsgBox "Its Change! " & Mid(Sheet1.Range("A" & x).Value, 1, 2)
End If
Next x

End Sub



--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200605/1
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
IF Statements Jillian Excel Discussion (Misc queries) 1 May 13th 10 09:39 PM
If, Then Statements Dave F Excel Worksheet Functions 0 November 30th 06 05:33 PM
IF Statements (Mutliple Statements) Deezel Excel Worksheet Functions 3 October 19th 06 06:13 AM
If statements redlion Excel Discussion (Misc queries) 1 July 7th 06 06:44 AM
operator statements, shorting when reusing one of the statements? KR Excel Programming 1 August 4th 05 06:20 PM


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