Copying specific cells from multiple files

rashdeep

New Member
Joined
Jun 27, 2019
Messages
1
Hi ALL!!

I have voyage data for few ships telling me how the ships performed in each voyage.The database is divided into two halves in the same worksheet i.e when the ship is empty and when the ship is full.
Although I am able to extract the whole data but i want only specific data, lets say when the ship was full(carrying cargo). Once i have the rows that tell me when the ship was full, i want to transfer the data to another excel sheet and compile data for each vessel, in each condition(full/empty).

Code:
 DestLastRow = ThisWorkbook.Sheets("Sheet1").Cells(ThisWorkbook.Sheets("Sheet1").Rows.Count, "A").End(xlUp).Offset(1).Row

Like i said, with the above command I get the data for the whole sheet but i want data only when the ship is full/empty.

Any kind of help on this would be much appreciated.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hi ALL!!

I have voyage data for few ships telling me how the ships performed in each voyage.The database is divided into two halves in the same worksheet i.e when the ship is empty and when the ship is full.
Although I am able to extract the whole data but i want only specific data, lets say when the ship was full(carrying cargo). Once i have the rows that tell me when the ship was full, i want to transfer the data to another excel sheet and compile data for each vessel, in each condition(full/empty).

Code:
 DestLastRow = ThisWorkbook.Sheets("Sheet1").Cells(ThisWorkbook.Sheets("Sheet1").Rows.Count, "A").End(xlUp).Offset(1).Row

Like i said, with the above command I get the data for the whole sheet but i want data only when the ship is full/empty.

Any kind of help on this would be much appreciated.


You can put all your code and explain how we identify if it is empty or full.
 
Upvote 0

Forum statistics

Threads
1,214,611
Messages
6,120,509
Members
448,967
Latest member
screechyboy79

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