Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
McDal
 
Posts: n/a
Default Replacing a specific position in a cell with something else

I need to replace in all my thousands of part numbers.....position number 10
which is the letter "S" to a blank.

Does anybody know how to do this?
  #2   Report Post  
Alan
 
Posts: n/a
Default

=REPLACE(A1,10,1," ")
I'm assuming that the 'S' will always be the 10th character or this wont
work,
Regards,
"McDal" wrote in message
...
I need to replace in all my thousands of part numbers.....position number
10
which is the letter "S" to a blank.

Does anybody know how to do this?



  #3   Report Post  
Duke Carey
 
Posts: n/a
Default

If the only S to be found in your part #s is the one to replace, or if it is
ALWAYS the first S in the #, use

=SUBSTITUTE(prt#,"S"," ",1)

otherwise use

=left(prt#,9)&" "&right(prt#,len(prt#)-10)


"McDal" wrote:

I need to replace in all my thousands of part numbers.....position number 10
which is the letter "S" to a blank.

Does anybody know how to do this?

  #4   Report Post  
McDal
 
Posts: n/a
Default

Thanks for the info...but I'll ask the next stupid question...where do I put
this code? And my letter S in my part number column in the excel sheet is
always in position 10. Do I have to format the cell to be text or a number
field? And, how do I get it not to truncate leading zeros?

"Duke Carey" wrote:

If the only S to be found in your part #s is the one to replace, or if it is
ALWAYS the first S in the #, use

=SUBSTITUTE(prt#,"S"," ",1)

otherwise use

=left(prt#,9)&" "&right(prt#,len(prt#)-10)


"McDal" wrote:

I need to replace in all my thousands of part numbers.....position number 10
which is the letter "S" to a blank.

Does anybody know how to do this?

  #5   Report Post  
McDal
 
Posts: n/a
Default

yes it is the 10th character. Where do I put this =replace code?

"Alan" wrote:

=REPLACE(A1,10,1," ")
I'm assuming that the 'S' will always be the 10th character or this wont
work,
Regards,
"McDal" wrote in message
...
I need to replace in all my thousands of part numbers.....position number
10
which is the letter "S" to a blank.

Does anybody know how to do this?






  #6   Report Post  
Alan
 
Posts: n/a
Default

If your part numbers are in column A, say A1:A5000, then in B1 enter
=REPLACE(A1,10,1," ")
Drag this formula down to the end of your range, A5000 in this example,
This will give you in column B your part numbers with the 'S' replaced by a
space.
You may then want to get rid of the formulas and leave just the values, if
so, highlight the whole column , right click in the highlighted area and go
'Copy', right click in the area again, go 'Paste Special', check 'Values',
OK
Regards,
"McDal" wrote in message
...
yes it is the 10th character. Where do I put this =replace code?

"Alan" wrote:

=REPLACE(A1,10,1," ")
I'm assuming that the 'S' will always be the 10th character or this wont
work,
Regards,
"McDal" wrote in message
...
I need to replace in all my thousands of part numbers.....position
number
10
which is the letter "S" to a blank.

Does anybody know how to do this?






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
Select specific cell Shawn Excel Discussion (Misc queries) 1 April 28th 05 09:00 PM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
How do I set the Enter key to go to a specific cell? John Excel Discussion (Misc queries) 2 March 18th 05 11:51 PM
Highlight a row if a specific cell is specific numbers/words sea0221 Excel Worksheet Functions 2 March 9th 05 12:06 AM
I am trying to link based on a text value instead of cell position John Links and Linking in Excel 3 December 3rd 04 06:29 PM


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