Macro to SumIF between a date range and loop Worksheets

xBlackClover

New Member
Joined
Feb 21, 2018
Messages
1
Hello,

I'm relatively new to macros, and need to run one that runs a loop that sums anything in 2017 in each worksheet. There are about 20 worksheets that all set up like this;

Payment date Beginning Balance Monthly Payment Interest Principal Ending Balance
[TABLE="width: 991"]
<tbody>[TR]
[TD]1-Jun-16[/TD]
[TD] $ 31,331.55[/TD]
[TD] 882.65[/TD]
[TD] 107.05[/TD]
[TD] 775.60[/TD]
[TD] $ 30,448.90[/TD]
[/TR]
[TR]
[TD]1-Jul-16[/TD]
[TD] $ 30,448.90[/TD]
[TD] 882.65[/TD]
[TD] 104.03[/TD]
[TD] 778.62[/TD]
[TD] $ 29,566.25[/TD]
[/TR]
[TR]
[TD]1-Aug-16[/TD]
[TD] $ 29,566.25[/TD]
[TD] 882.65[/TD]
[TD] 101.02[/TD]
[TD] 781.63[/TD]
[TD] $ 28,683.60[/TD]
[/TR]
[TR]
[TD]1-Sep-16[/TD]
[TD] $ 28,683.60[/TD]
[TD] 882.65[/TD]
[TD] 98.00[/TD]
[TD] 784.65[/TD]
[TD] $ 27,800.95[/TD]
[/TR]
[TR]
[TD]1-Oct-16[/TD]
[TD] $ 27,800.95[/TD]
[TD] 882.65[/TD]
[TD] 94.99[/TD]
[TD] 787.66[/TD]
[TD] $ 26,918.30[/TD]
[/TR]
[TR]
[TD]1-Nov-16[/TD]
[TD] $ 26,918.30[/TD]
[TD] 882.65[/TD]
[TD] 91.97[/TD]
[TD] 790.68[/TD]
[TD] $ 26,035.65[/TD]
[/TR]
[TR]
[TD]1-Dec-16[/TD]
[TD] $ 26,035.65[/TD]
[TD] 882.65[/TD]
[TD] 88.96[/TD]
[TD] 793.69[/TD]
[TD] $ 25,153.00[/TD]
[/TR]
[TR]
[TD]1-Jan-17[/TD]
[TD] $ 25,153.00[/TD]
[TD] 882.65[/TD]
[TD] 85.94[/TD]
[TD] 796.71[/TD]
[TD] $ 24,270.35[/TD]
[/TR]
[TR]
[TD]1-Feb-17[/TD]
[TD] $ 24,270.35[/TD]
[TD] 882.65[/TD]
[TD] 82.92[/TD]
[TD] 799.73[/TD]
[TD] $ 23,387.70[/TD]
[/TR]
[TR]
[TD]1-Mar-17[/TD]
[TD] $ 23,387.70[/TD]
[TD] 882.65[/TD]
[TD] 79.91[/TD]
[TD] 802.74[/TD]
[TD] $ 22,505.05[/TD]
[/TR]
[TR]
[TD]1-Apr-17[/TD]
[TD] $ 22,505.05[/TD]
[TD] 882.65[/TD]
[TD] 76.89[/TD]
[TD] 805.76[/TD]
[TD] $ 21,622.40[/TD]
[/TR]
[TR]
[TD]1-May-17[/TD]
[TD] $ 21,622.40[/TD]
[TD] 882.65[/TD]
[TD] 73.88[/TD]
[TD] 808.77[/TD]
[TD] $ 20,739.75[/TD]
[/TR]
[TR]
[TD]1-Jun-17[/TD]
[TD] $ 20,739.75[/TD]
[TD] 882.65[/TD]
[TD] 70.86[/TD]
[TD] 811.79[/TD]
[TD] $ 19,857.10[/TD]
[/TR]
[TR]
[TD]1-Jul-17[/TD]
[TD] $ 19,857.10[/TD]
[TD] 882.65[/TD]
[TD] 67.85[/TD]
[TD] 814.80[/TD]
[TD] $ 18,974.45[/TD]
[/TR]
[TR]
[TD]1-Aug-17[/TD]
[TD] $ 18,974.45[/TD]
[TD] 882.65[/TD]
[TD] 64.83[/TD]
[TD] 817.82[/TD]
[TD] $ 18,091.80[/TD]
[/TR]
[TR]
[TD]1-Sep-17[/TD]
[TD] $ 18,091.80[/TD]
[TD] 882.65[/TD]
[TD] 61.81[/TD]
[TD] 820.84[/TD]
[TD] $ 17,209.15[/TD]
[/TR]
[TR]
[TD]1-Oct-17[/TD]
[TD] $ 17,209.15[/TD]
[TD] 882.65[/TD]
[TD] 58.80[/TD]
[TD] 823.85[/TD]
[TD] $ 16,326.50[/TD]
[/TR]
[TR]
[TD]1-Nov-17[/TD]
[TD] $ 16,326.50[/TD]
[TD] 882.65[/TD]
[TD] 55.78[/TD]
[TD] 826.87[/TD]
[TD] $ 15,443.85[/TD]
[/TR]
[TR]
[TD]1-Dec-17[/TD]
[TD] $ 15,443.85[/TD]
[TD] 882.65[/TD]
[TD] 52.77[/TD]
[TD] 829.88[/TD]
[TD] $ 14,561.20[/TD]
[/TR]
[TR]
[TD]1-Jan-18[/TD]
[TD] $ 14,561.20[/TD]
[TD] 882.65[/TD]
[TD] 49.75[/TD]
[TD] 832.90[/TD]
[TD] $ 13,678.55[/TD]
[/TR]
[TR]
[TD]1-Feb-18[/TD]
[TD] $ 13,678.55[/TD]
[TD] 882.65[/TD]
[TD] 46.74[/TD]
[TD] 835.91[/TD]
[TD] $ 12,795.90[/TD]
[/TR]
[TR]
[TD]1-Mar-18[/TD]
[TD] $ 12,795.90[/TD]
[TD] 882.65[/TD]
[TD] 43.72[/TD]
[TD] 838.93[/TD]
[TD] $ 11,913.25[/TD]
[/TR]
[TR]
[TD]1-Apr-18[/TD]
[TD] $ 11,913.25[/TD]
[TD] 882.65[/TD]
[TD] 40.70[/TD]
[TD] 841.95[/TD]
[TD] $ 11,030.60[/TD]
[/TR]
[TR]
[TD]1-May-18[/TD]
[TD] $ 11,030.60[/TD]
[TD] 882.65[/TD]
[TD] 37.69[/TD]
[TD] 844.96[/TD]
[TD] $ 10,147.95[/TD]
[/TR]
[TR]
[TD]1-Jun-18[/TD]
[TD] $ 10,147.95[/TD]
[TD] 882.65[/TD]
[TD] 34.67[/TD]
[TD] 847.98[/TD]
[TD] $ 9,265.30[/TD]
[/TR]
[TR]
[TD]1-Jul-18[/TD]
[TD] $ 9,265.30[/TD]
[TD] 882.65[/TD]
[TD] 31.66[/TD]
[TD] 850.99[/TD]
[TD] $ 8,382.65[/TD]
[/TR]
[TR]
[TD]1-Aug-18[/TD]
[TD] $ 8,382.65[/TD]
[TD] 882.65[/TD]
[TD] 28.64[/TD]
[TD] 854.01[/TD]
[TD] $ 7,500.00[/TD]
[/TR]
</tbody><colgroup><col><col><col><col><col><col></colgroup>[/TABLE]



I appreciate any help that can point me in the right direction! :)

Thanks
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,223,903
Messages
6,175,279
Members
452,630
Latest member
OdubiYouth

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