Text position,remove and replace(inex? substitute?)

damian_lee

New Member
Joined
Jul 7, 2014
Messages
6

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
If your data starts in A2 then maybe:

=LEFT(A2,LEN(A2)-SEARCH("@",A2)+2)&"likeIcare.com"
 
Upvote 0
Here is another formula you can try...

=REPLACE(A2,FIND("@",A2),99,"@likeIcare.com")
 
Upvote 0
If your data starts in A2 then maybe:

=LEFT(A2,LEN(A2)-SEARCH("@",A2)+2)&"likeIcare.com"


the result not consistent:

[TABLE="width: 426"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]likeaboss@boss.com[/TD]
[TD]likeaboss@likeIcare.com[/TD]
[/TR]
[TR]
[TD]likeadude@dude.com[/TD]
[TD]likeadude@likeIcare.com[/TD]
[/TR]
[TR]
[TD]likeabrother@brother.com[/TD]
[TD]likeabrother@likeIcare.com[/TD]
[/TR]
[TR]
[TD]myneighbour.freak@freaky.com[/TD]
[TD]myneighbour.likeIcare.com[/TD]
[/TR]
[TR]
[TD]myniece.icecreamelolly@sweet.com[/TD]
[TD]myniece.icelikeIcare.com[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Here is another formula you can try...

=REPLACE(A2,FIND("@",A2),99,"@likeIcare.com")

so far the result is consistent:

[TABLE="width: 499"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]likeaboss@boss.com[/TD]
[TD]likeaboss@likeIcare.com[/TD]
[/TR]
[TR]
[TD]likeadude@dude.com[/TD]
[TD]likeadude@likeIcare.com[/TD]
[/TR]
[TR]
[TD]likeabrother@brother.com[/TD]
[TD]likeabrother@likeIcare.com[/TD]
[/TR]
[TR]
[TD]myneighbour.freak@freaky.com[/TD]
[TD]myneighbour.freak@likeIcare.com[/TD]
[/TR]
[TR]
[TD]myniece.icecreamelolly@sweet.com[/TD]
[TD]myniece.icecreamelolly@likeIcare.com[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
the result not consistent:

[TABLE="width: 426"]
<tbody>[TR]
[TD]likeaboss@boss.com[/TD]
[TD]likeaboss@likeIcare.com[/TD]
[/TR]
[TR]
[TD]likeadude@dude.com[/TD]
[TD]likeadude@likeIcare.com[/TD]
[/TR]
[TR]
[TD]likeabrother@brother.com[/TD]
[TD]likeabrother@likeIcare.com[/TD]
[/TR]
[TR]
[TD]myneighbour.freak@freaky.com[/TD]
[TD]myneighbour.likeIcare.com[/TD]
[/TR]
[TR]
[TD]myniece.icecreamelolly@sweet.com[/TD]
[TD]myniece.icelikeIcare.com[/TD]
[/TR]
</tbody>[/TABLE]
Vidar posted a slightly incorrect formula... I think this is what he meant to post.

=LEFT(A2,SEARCH("@",A2)+2)&"likeIcare.com"
 
Upvote 0
the result not consistent:

[TABLE="width: 426"]
<tbody>[TR]
[TD]likeaboss@boss.com[/TD]
[TD]likeaboss@likeIcare.com[/TD]
[/TR]
[TR]
[TD]likeadude@dude.com[/TD]
[TD]likeadude@likeIcare.com[/TD]
[/TR]
[TR]
[TD]likeabrother@brother.com[/TD]
[TD]likeabrother@likeIcare.com[/TD]
[/TR]
[TR]
[TD]myneighbour.freak@freaky.com[/TD]
[TD]myneighbour.likeIcare.com[/TD]
[/TR]
[TR]
[TD]myniece.icecreamelolly@sweet.com[/TD]
[TD]myniece.icelikeIcare.com[/TD]
[/TR]
</tbody>[/TABLE]

Sorry, my mistake. It should look like this.
=LEFT(A2,SEARCH("@",A2)+1)&"likeIcare.com"

Edit: Just noticed that Rick commented this.
 
Upvote 0
Or select the column to process, go to Edit/Replace, and replace „@*.” with „@likeIcare.” (without quotes).
 
Upvote 0
Note that using István's suggestion will physically changes your original (existing) data.

Thanks, Rick. @ OP: copy the column to process in another column first if you wish to keep the original.
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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