Find & copy into new sheet with macro

gazelle

New Member
Joined
Feb 15, 2011
Messages
2
Hello,

I have a problem that I think can be solved with a macro, but im not sure where to start.

I have a number of spreadsheets that are set up with varying amounts of data from several sites, with header information followed by the data. I want to take one part of the header info (station number), copy it into another sheet, and then copy the data so that each row becomes associated with the station number. And then repeat with the next station so i get a complete list with just the data and none of the extra header records.

I have an example sheet showing the original data and the desired output here:
http://homepage.ntlworld.com/steven.lee717/TrialSheet.xls

Ideally the Date and Time columns (B&C) in the output would be combined as shown in Column H, but I can live without that if its not easy to do.

Furthermore, if I could set it running on a number of individual sheets saved in a folder at once that would be fantastic.

Thanks for any help anyone can offer!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,215,172
Messages
6,123,447
Members
449,100
Latest member
sktz

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