Macro to copy date related date from one sheet and paste into new sheet

excelnovice128

New Member
Joined
Oct 29, 2018
Messages
1
Hi all,

I'm a relative newbie to VBA, macros etc and am trying to learn a few things, was hoping you could help/guide me in the right direction. I am looking to create a macro which will copy data from one sheet and then sort into the correct sheets with the specified data. For example, i want to copy data from the below table into 2 separate sheets:

Sales dateFruit SoldColourQuantityWeightPurchase PriceSales Price
01-Jan-18ApplesRed30101020
02-Jan-18ApplesGreen5151020
02-Jan-18OrangesOrange84201020
02-Jan-18ApplesRed11101020
01-Jan-18OrangesOrange6951020
03-Jan-18OrangesOrange1751020
01-Jan-18OrangesOrange2651020
04-Jan-18ApplesRed23101020
03-Jan-18ApplesRed9151020
04-Jan-18ApplesGreen65201020
01-Jan-18ApplesGreen151020

<tbody>
</tbody>

into:

Apples
DATEQuantity SoldPurchase PriceSales Price
01-Jan
02-Jan
03-Jan
04-Jan

<tbody>
</tbody>

Any help or push in the right direction would be much appreciated!!!

Thanks
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,214,530
Messages
6,120,071
Members
448,943
Latest member
sharmarick

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