Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Replacing data in a cell

I would like to scan specific columns (but all the rows in the specified
columns) for a certain value, in this case 99, and if a cell has a value of
99, I need to replace it with another number, 3 in this case.

I think this would be an 'if then' type of thing with a loop perhaps, but
its been so long since I worked with basic....

Any help would be appreciated.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default Replacing data in a cell

Consider EditReplace

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"green72" wrote in message ...
|I would like to scan specific columns (but all the rows in the specified
| columns) for a certain value, in this case 99, and if a cell has a value of
| 99, I need to replace it with another number, 3 in this case.
|
| I think this would be an 'if then' type of thing with a loop perhaps, but
| its been so long since I worked with basic....
|
| Any help would be appreciated.
|
| Thanks


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Replacing data in a cell

If you only want to replace a value with 99 as the only thing in the cell
select the range or columneditreplaceoptionswhole

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"green72" wrote in message
...
I would like to scan specific columns (but all the rows in the specified
columns) for a certain value, in this case 99, and if a cell has a value
of
99, I need to replace it with another number, 3 in this case.

I think this would be an 'if then' type of thing with a loop perhaps, but
its been so long since I worked with basic....

Any help would be appreciated.

Thanks


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Replacing data in a cell

Lots easier than that...

Sheets("Sheet1").Columns("A").Replace 99, 3, xlWhole
--
HTH...

Jim Thomlinson


"green72" wrote:

I would like to scan specific columns (but all the rows in the specified
columns) for a certain value, in this case 99, and if a cell has a value of
99, I need to replace it with another number, 3 in this case.

I think this would be an 'if then' type of thing with a loop perhaps, but
its been so long since I worked with basic....

Any help would be appreciated.

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
replacing contents of a cell with data froma list/file Andy T Excel Worksheet Functions 4 March 18th 07 08:09 AM
Replacing Data Grifito Excel Worksheet Functions 1 October 3rd 06 09:16 PM
Replacing Cell Data Mary Ann Excel Discussion (Misc queries) 1 October 3rd 06 07:46 PM
Replacing data Bkana Excel Discussion (Misc queries) 5 July 18th 06 06:29 AM
replacing data Tammy Excel Discussion (Misc queries) 4 March 3rd 05 07:33 PM


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