ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Partial replace (https://www.excelbanter.com/new-users-excel/27659-partial-replace.html)

Sept

Partial replace
 
Hello,
I'm trying to search and replace but I do not want to replace the whole
cell, only a few characters in them.
Namely, I have list of names, some of which have two stars ** after it and I
want to get rid of those 2 stars after the name. How do I do that?
Thanks a lot
Sandra


Max

One way ..

Assuming data in A1 down,

Put in B1:
=TRIM(SUBSTITUTE(A1,"**"," "))
Copy down
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Sept" wrote in message
...
Hello,
I'm trying to search and replace but I do not want to replace the whole
cell, only a few characters in them.
Namely, I have list of names, some of which have two stars ** after it and

I
want to get rid of those 2 stars after the name. How do I do that?
Thanks a lot
Sandra




Bob Phillips

Sandra,

Just do a find and replace, Ctrl-H, but precede the * with a tilde ~, so ~**
as the string to replace.

--
HTH

Bob Phillips

"Sept" wrote in message
...
Hello,
I'm trying to search and replace but I do not want to replace the whole
cell, only a few characters in them.
Namely, I have list of names, some of which have two stars ** after it and

I
want to get rid of those 2 stars after the name. How do I do that?
Thanks a lot
Sandra





All times are GMT +1. The time now is 07:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com