Formula or Macro Needed

it's an excel world

Board Regular
Joined
Sep 17, 2008
Messages
126
Hello all,

I have a report that I export into Excel on a daily basis. One of the columns of data contains a long sting of characters of which I only need a certain part. Each row of data in this column ends with </a>, which I want to drop off and capture all the characters prior to that until I reach the character >. An example is <a href='Default.aspx?PageID=72&PackageHdrID=206066'>1ZV5V4420601084086</a>. All I really want is the 1ZV5V4420601084086.

I wasn't sure if I should use a formula and copy it down the file or create a macro. Please keep in mind that the amount of characters prior to the > is not always the same. But each row does end with </a>. The quantity of rows per export will also very day to day.

Thank you in advance!
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,224,590
Messages
6,179,762
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