copy monthly total expenses to summary worksheet by date

huntmc

New Member
Joined
Aug 17, 2004
Messages
18
i have 3 worksheets in my WB; sheet1 is a bill summary for each months total for that expense catagory. sheet1 is set up like a pivot table with the expense catagories listed in range(A2:A3). Range (B2:M2) are the months in the year.

Sheet 2 and 3 are for the respected expense catagories for example sheet 2 is "Utilities" and sheet 3 is "Home Repair". Both sheet 2 and 3 are setup the same; Range(A1:A65536) is the date the expense was incured. Range(C1:C65536) is the Amount of the Expense (in currency format).

What i need is a macro that will Loop through the rows of each worksheet and total the amount of the expenses by month. Then copy the total monthly amount from that expense catagory, into the correct cell in sheet 1.
This is sheet 1 the summary worksheet...

this is sheet2 the expense catagory worksheet...
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi:

You may want to try posting up again your data..it did not seem to transfer correctly

plettieri
 
Upvote 0
huntmc,

1) don't post the html maker code between code tags as the sheets won't render
2) there's a character limit to how much you can post - safest to post each snapshot in a new post to the thread
 
Upvote 0
Example HTML of sheet 2 and 3

These are examples of how sheet 2 and 3 are formated...
Expenses_06.xls
ABCD
1DateShortTextAmountLongText(optional)
23-JanWater$44.15Water/Sewer
312-JanDish$26.99DishNetwork(AutoPay)
419-JanElectrical$65.41AEPMonthlyBill
513-FebDish$26.99DishNetwork(AutoPay)
617-FebGas$124.26AquilaMonthlyBill
76-MarElectrical$50.92AEPMonthlyBill
813-MarDish$33.98MasterCard
915-MarGarbage$30.00GarbageCo.
1020-MarGas$105.92AquilaMonthlyBill
1120-MarWater$54.51Water/Sewer
124-AprElectrical$55.89AEPMonthlyBill
Utilities
 
Upvote 0

Forum statistics

Threads
1,223,249
Messages
6,171,031
Members
452,374
Latest member
keccles

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