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

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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