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

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
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,215,106
Messages
6,123,120
Members
449,096
Latest member
provoking

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