Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Replacing cells that have 2-3 letters


What I need to replace the cells that have 2-3 letters is:
"Not A Defect Code!!!"
I have a sheet that has many different defect codes such as:
MC
WP
MPI,ect,ect
All of these will be change to the defect code they represent.
I could not figure out how to change a defect code that was improperl
entered in such as:
"FC": to "Not A Defect Code!!!"

thank you for the help
Dre

--
drew
-----------------------------------------------------------------------
drewd's Profile: http://www.excelforum.com/member.php...fo&userid=1474
View this thread: http://www.excelforum.com/showthread.php?threadid=26369

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default Replacing cells that have 2-3 letters

Assuming there are no single letters, in another column, say G1

=IF(LEN(A1)<42,"Not a Defect Code!!!",A1)

Copy this down as far as needed. Then Edit/Copy the column of formulas, select
the column with the erroneous codes and Edit/Paste Special and select the
Values option.


On Sun, 26 Sep 2004 22:08:32 -0500, drewd
wrote:


What I need to replace the cells that have 2-3 letters is:
"Not A Defect Code!!!"
I have a sheet that has many different defect codes such as:
MC
WP
MPI,ect,ect
All of these will be change to the defect code they represent.
I could not figure out how to change a defect code that was improperly
entered in such as:
"FC": to "Not A Defect Code!!!"

thank you for the help
Drew


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default Replacing cells that have 2-3 letters

Typo the should be 4, not 42.

=IF(LEN(A1)<42,"Not a Defect Code!!!",A1)


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 capital letters jezzica85 Excel Discussion (Misc queries) 5 February 23rd 10 06:49 AM
Count only Letters in cells that contain both letters and numbers TommyB Excel Worksheet Functions 2 August 8th 09 12:29 AM
Replacing letters for figures in formula Irene Excel Discussion (Misc queries) 11 January 6th 06 02:39 PM
Replacing blank cells Chris Stammers Excel Worksheet Functions 2 December 1st 05 01:41 PM
Replacing cells that have 2-3 letters drewd Excel Programming 2 September 27th 04 03:09 AM


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