Copying a particular data from one cell to another Macro

Janani

New Member
Joined
Mar 26, 2011
Messages
1
Hi,

Can anybody guide me how to copy a particular string from the cell and paste it in the another cell using macros?Here is my sample data...

data available in cell D : CSRGRID=%5E96006106098%99009109097%5E

I want to extract the data available in between the constant %5E and paste it in cell c. I have recorded the macro and getting the result.Please help me how to generalise the code.Thanks in advance !

Regards,
Janani
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi. I think that this can be done with a formula:

=MID(D1,FIND("%5E",D1)+3,FIND("%5E",SUBSTITUTE(D1,"%5E","~~~",1))-FIND("%",D1)-3)
 
Upvote 0

Forum statistics

Threads
1,224,506
Messages
6,179,158
Members
452,892
Latest member
yadavagiri

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