Subtotal by Funding on one sheet but put the results on another sheet

mlindquist

New Member
Joined
Sep 6, 2019
Messages
24
What I'm trying to do is create a macro that does the following:
1. On the "By Transaction" worksheet sort by the Funding column .
2. Subtotal by Total Amount Due by a change of Funding
3. Copy the Funding and Total Amount Due Subtotal onto another sheet "By Funding" where there are other fields to be filled in but those values are easy to get.

Here is an example of the By Transaction Sheet

DateCampusFundingItem DescriptionTotal Amount Due
March 1-March 31, 2021UWABC123-4-12345Item 10.00
March 1-March 31, 2021UWABC123-4-12345Item 20.55
March 1-March 31, 2021UWABC123-4-12345Item 31.14
March 1-March 31, 2021UWABC123-4-12345Item 46.57
March 1-March 31, 2021UWABC155-1-11223Item 11.25
March 1-March 31, 2021UWABC155-1-11223Item 25.55
March 1-March 31, 2021UWABC155-1-11223Item 30.00
March 1-March 31, 2021UWABC155-1-11223Item 40.25
March 1-March 31, 2021UWABC155-1-11223Item 512.00
March 1-March 31, 2021UWABC167-5-12345Item 14.25
March 1-March 31, 2021UWABC167-5-12345Item 25.00
March 1-March 31, 2021UWABC167-5-12345Item 310.11
March 1-March 31, 2021UWABCand so on

After the macro runs this is what the By Funding page would look like (there are additional columns to populate but those are being taking from a header on another sheet):

CampusFundingTotal Amount Due
UWABC123-4-123458.26
UWABC155-1-1122319.05
UWABC167-5-1234519.36
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,224,813
Messages
6,181,114
Members
453,021
Latest member
Justyna P

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