VBA code to sum cells between two dates

Audit214

New Member
Joined
Oct 18, 2021
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
Help!!!

I rebuilt a transaction history for +-50 000 records using formulas and now my analysis has moved to determining whether money was received between two specified dates for each record.

The transaction history has a unique reference for each record in column A and the dates for each month (Nov 2019 to August 2021) are in row 1. I have been struggling to write a formula to sum the amounts between these dates because of the way the date is organized. My next idea is to try to use a macro to select the cells between the two dates and sum these cells for each record.

Does anyone have an idea on how I can do this with vba.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
It would be very helpful if you supplied a small sample of data which represented what you have and then what you need. Use XL2BB so that we can manipulate the data. Pictures are not a good idea as the data is not manipulative.
 
Upvote 0

Forum statistics

Threads
1,213,507
Messages
6,114,029
Members
448,543
Latest member
MartinLarkin

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