How to remove desired text or numbers from a cell

mohanprabhus

New Member
Joined
Dec 7, 2016
Messages
17
HI All,

Can any help me with below format in excel formula,Please find the below mentioned details i need to remove text or numbers from a cell

Raw DataAlready Data PresentRequired Result
Shastri Market,Mohan CinemaMohan CinemaShastri Market
SCO.2 & 3, Sector-65/A, Phase-11, Near Punjab Mandi BoardSector-65/ASCO.2 & 3, Phase-11, Near Punjab Mandi Board
Birla Road, Near Vardhman Factory, Solan, Near AbbottBirla RoadNear Vardhman Factory, Solan, Near Abbott
LH Electronics, Near Gurudwara Guru Aanad Dev, Janakpuri Vilas Park, Near Street No -11Janakpuri Vilas ParkLH Electronics, Near Gurudwara Guru Aanad Dev, Near Street No -11

<tbody>
</tbody>
 
Hi All,

Thank you for the solutions, but i have problem, If i have two word in sentence it removes both, But i want to remove exact match word only.




Raw DataAlready Data PresentRequired Result
BPCL Mettupalayam, 211 Karamadai RoadCnasps, Coimbatore-Ooty Main Road,MettupalayamMettupalayamBPCL Mettupalayam, 211 Karamadai RoadCnasps, Coimbatore-Ooty Main Road
BPCL Mettupalayam, 211 Karamadai RoadCnasps,Mettupalayam,
Coimbatore-Ooty Main Road,
MettupalayamBPCL Mettupalayam, 211 Karamadai RoadCnasps, Coimbatore-Ooty Main Road

<tbody>
</tbody>

The below mentioned data i need to extract numbers (exact 6 digits or i can choose how many numbers like 10 digit phone number) with comma & without comma separated, these numbers can in in b/w also.

Raw DataRequired Result 1Required Result 2
BPCL Mettupalayam, 211 Karamadai RoadCnasps, Coimbatore-Ooty Main Road,Mettupalayam 123456BPCL Mettupalayam, 211 Karamadai RoadCnasps, Coimbatore-Ooty Main Road,Mettupalayam123456
BPCL Mettupalayam, 211 Karamadai RoadCnasps, Coimbatore-Ooty Main Road,Mettupalayam, 123456BPCL Mettupalayam, 211 Karamadai RoadCnasps, Coimbatore-Ooty Main Road,Mettupalayam123456

<tbody>
</tbody>

Upper exhibit, Sheet1...

In C2 enter and copy down:

=REPLACE(SUBSTITUTE(","&SUBSTITUTE(A2,", ",",")&",",","&B2&",",""),1,1,"")

Lower exhibit, Sheet2...

In c2 enter and copy down:

=REPLACE(SUBSTITUTE(A2,B2,""),1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},SUBSTITUTE(A2,B2,"")&"0123456789"))-1,"")+0
 
Upvote 0

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,214,980
Messages
6,122,563
Members
449,088
Latest member
Motoracer88

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