Replacing sequencially all characters by a specific character

mlektra

New Member
Joined
Jun 2, 2008
Messages
14
Hi guys. Is there a formula here to replace sequencially all characters of a given value by a specific character?

Let me show you.

I have this value : google.com

need to replace one character after one character by the "*" symbol. So it will give me this :

*oogle.com
g*ogle.com
go*gle.com
goo*le.com
goog*e.com
googl*.com
google*com
google.*om
google.c*m
google.co*

Should work with any number of characters. Will use it maintly for domains, so it could be .com, .net, .me, .info, etc....

Thanks for the help.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi

Try :-
Code:
=IF(ROWS($A$1:$A2)-1>LEN($A$1),"",REPLACE($A$1,ROWS($A$1:$A2)-1,1,"*"))

hth
 
Upvote 0
Hi

Sorry, I meant to qualify that the formula should be entered in A2 and dragged down.
 
Upvote 0
Thanks! it worked ;)

But what if I have 3 columns (H-I-J) (that are output of formulas) and I want to take the output of these 3 columns and group them (in order) in one column only (K)?

WepZDGn.png
 
Upvote 0
Hi

The easiest way to do that is to copy each column sequentially into Column K by PasteValues then do a sort.

The alternative would be a complex formula, especially if each column has a different number of items.

hth
 
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,113,998
Members
448,539
Latest member
alex78

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top