Conditionally copy selected cells in rows depending on cell contents.

danando

New Member
Joined
Jul 5, 2011
Messages
1
Hello All,

Running into some problems with Excel. My understanding of Macros is quite basic, but can read code at a basic level.

This document is pulling information from multiple (10-15) schedules that contain all scheduling data for an event, and compiling just the Transport information. All current schedules are formatted the same, so the macro shouldn't need to change for each document.

What I'm trying to do is copy the contents from specific cells in a row, to a new workbook, only if a cell in column F contains "GT". And then re-arrange the order of the rows in the new workbook.

i.e. If Cell F24 contained "GT", then Copy C24(Date) to the next fully available row in A column in the new workbook, then copy D24(Start Time) to the same row that C24 went into, however this time in B column. Then copy E24(End Time) to the same row that C24 went into, however this time in C column.

And so on and so forth, until there is no more data to read in each file.

Any help that you could send my way would be greatly appreciated.

Thanks in advance,
Dan.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Forum statistics

Threads
1,224,600
Messages
6,179,835
Members
452,947
Latest member
Gerry_F

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