Macro help for copy and paste based on Date and account category

MarcusV

New Member
Joined
Oct 4, 2011
Messages
4
Hi Guys,

I have a typical Visa CC type list of entries in a worksheet. This list if grouped and totalled according to month. I then 'Categorise' the entry using a drop down list
[List of 20 items located in a WS called 'Categories'] of groups and reconcile with my online statement. all good and works a treat.

Data looks like this:

WS: Visa
A.Date, B.Description, C.Amount, D.Total, E.Category
20-Dec-07, Supermarket, -78.00, ,Groceries
28-Dec-07, Pizza, -28.00, ,Entertainment
28-Dec-07, PubX, -35.00, ,Entertainment
29-Dec-07, Dry cleaning, -25.00, ,Dry Cleaning
etc..

WS: Categories
Entertainment
Groceries
Dog
Car
Dry cleaning
Dental
Electricity
etc..

What I want to be able to do is highlight/ Select a range of cells including the A-E columns OR select a start date and end date, a Category [from the Drop down data - think [Groceries, Car, Dog, School etc]

Note - this can be a custom dialog box / form with User entry for: Start date, End Date, Category

Then a button that once selected, triggers a macro to scan through the data looking for rows of data that meet the start date <> end date + category criteria AND write this data to a new worksheet called "results" so i can see all entries in a given category.

It would be good to then provide a Category amount total - but i can also do this manually.

I am meeting the accountant thursday and this would help if anyone has time.

Br Marcus
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,224,591
Messages
6,179,769
Members
452,941
Latest member
Greayliams

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