Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Need Help with If,Then

What I am trying to do is: if there is a name(text) in the cell, then change
it to an X, otherwise if the cell is blank, leave it blank. The data is in
the following range, E2:G3959

Thanks,
mrsjcd3


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Need Help with If,Then

Sub change_um()
For Each cell In Range("E2:G3959")
If cell.Value = "" Then
Else
cell.Value = "X"
End If
Next
End Sub

--
Gary''s Student - gsnu200803


"mrsjcd3" wrote:

What I am trying to do is: if there is a name(text) in the cell, then change
it to an X, otherwise if the cell is blank, leave it blank. The data is in
the following range, E2:G3959

Thanks,
mrsjcd3


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Need Help with If,Then

Thank you so much for the speedy help!!!

"Gary''s Student" wrote:

Sub change_um()
For Each cell In Range("E2:G3959")
If cell.Value = "" Then
Else
cell.Value = "X"
End If
Next
End Sub

--
Gary''s Student - gsnu200803


"mrsjcd3" wrote:

What I am trying to do is: if there is a name(text) in the cell, then change
it to an X, otherwise if the cell is blank, leave it blank. The data is in
the following range, E2:G3959

Thanks,
mrsjcd3


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



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