Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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
|
|||
|
|||
=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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Select specific cell | Excel Discussion (Misc queries) | |||
up to 7 functions? | Excel Worksheet Functions | |||
How do I set the Enter key to go to a specific cell? | Excel Discussion (Misc queries) | |||
Highlight a row if a specific cell is specific numbers/words | Excel Worksheet Functions | |||
I am trying to link based on a text value instead of cell position | Links and Linking in Excel |