Formula to change content in a cell

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I have a column of vendor numbers such as m6501p01 in one cell, the next record is m6501p02 and so on. The person that entered the numbers should have entered an S instead of a 5. I have over 100 records to change. Is there a forumla that will change all the 5's in that position to an S

Thanks!
 
Hi,
Try
=SUBSTITUTE(A1,MID(A1,3,1),5) in another range,
Copy > Paste Special > Values back to the original range,
Regards,
Alan.
Laura said:
Hi,
I have a column of vendor numbers such as m6501p01 in one cell, the next
record is m6501p02 and so on. The person that entered the numbers should
have entered an S instead of a 5. I have over 100 records to change. Is
there a forumla that will change all the 5's in that position to an S?
 
Laura, try this, =SUBSTITUTE(A1,LEFT(A1,3),"m6s") put in another column,
copy down and then paste special valves over your data
--
Paul B
Always backup your data before trying something new
Using Excel 97 & 2000
Please post any response to the newsgroups so others can benefit from it
** remove news from my email address to reply by email **

Laura said:
Hi,
I have a column of vendor numbers such as m6501p01 in one cell, the next
record is m6501p02 and so on. The person that entered the numbers should
have entered an S instead of a 5. I have over 100 records to change. Is
there a forumla that will change all the 5's in that position to an S?
 
select all cells to be changed
select from the menu "edit"
select "replace"
type in the replace box "m65"
type in the with what box "m6s"
select "replace all"
done
-----Original Message-----
Hi,
I have a column of vendor numbers such as m6501p01 in one
cell, the next record is m6501p02 and so on. The person
that entered the numbers should have entered an S instead
of a 5. I have over 100 records to change. Is there a
forumla that will change all the 5's in that position to
an S?
 
That was my first thought, but in potentially lengthy strings the same three
letters may turn up elsewhere
 
Alan,
=substitute(text,oldtext, newtext,instanceNo). I am using ExcelXL. A
simpler formula would be:
=substitute(A1,5,"S",1).

Greg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top