Sorting Dates

adamsm

Active Member
Joined
Apr 20, 2010
Messages
444
I've been wanting to know a code that would copy the date in column “F” of the sheet “Memo” and paste the date to column “A” of the sheet “Orders”.

My data in sheet “Memo” starts from row 4 where I have column headers in row 3. And the data in sheet “Orders” start from row 5 where I have column headers in row 4.

In sheet “Memo”, I have the serial number in column “B”. And in sheet “Orders” I have Serial number in column “B”. The serial numbers are in the format 0679 and so on.

What I’m trying to do is to copy the date from the sheet “Memo” and paste the date in the rows of the sheet “Orders” that matches with the serial number.

Let’s say for example the serial number in column “B” of sheet “Memo” is 0697 and date in column “F” of the same sheet & same row is 26/01/2010.
And in column “B” of the sheet “Orders” I’m having the serial number 0697 starting from rows 5 to 10.

What I want to get with the macro code is to copy the date from the sheet “Memo” and paste it in column “A” from rows 5 to 10 where the serial number 0697 exists in the sheet “Orders”.

And to repeat the same with other serial numbers.

I hope I’ve made my question clear.

Any help on this would be kindly appreciated.

Thanks in advance.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,212,933
Messages
6,110,751
Members
448,295
Latest member
Uzair Tahir Khan

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