Find n replace

VBABEGINER

Well-known Member
Joined
Jun 15, 2011
Messages
1,284
Office Version
  1. 365
Platform
  1. Windows
Hi,

i have stuck with final touch up.

Can any one tell me the idea about following?
In col A-

P07.SG-12 P012.SG19................cell a1
P05.SG-19 P011.SG09................cell a2
P111A.SG-012 P112.SG23...........cell a3

How i can find content of cell? actually im totally unware about this.
Im trying to find first .red marking above.
OR
.Replace What:=".SG- ", Replacement:=" ", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False

but, this ".SG-12"
can we have any trick that find . and "SG-12" this content how can we search?

woooow....this makes confusing, more explaination.

can any one understand or help me how to guide you.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Thank You for kind attention.

It should look like this -

P07 P012................cell a1
P05 P011................cell a2
P111A P112.............cell a3
 
Upvote 0
You don't need a macro, you can use this formula:-
=MID(A1,1,FIND(".",A1)-1)&MID(A1,FIND(" ",A1),FIND(".",A1,FIND(" ",A1))-FIND(" ",A1))
and drag it down.
I've assumed all your codes are in column A.
 
Upvote 0
Actually my all requirement in coding only.
this is what my seniours want.
any ways i try it first.

Thanx again, for kind reply.
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,750
Members
452,940
Latest member
rootytrip

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