Adding Criteria with DSum

Status
Not open for further replies.

sassriverrat

Well-known Member
Joined
Oct 4, 2018
Messages
655
Good Morning,

I have an extensive data set. Within the data set, one column has date and one column has time (both formatted as such).
On another page/tab, I have a series of dsum formulas that add various columns from the data set. One of those formulas is below. I used to use the formula to add all data that fell within the date range specified in A16:B17 but I'd like to change this to now include times. So, the new formula should find all data within the specified date and time and add it. I'm not sure how to do this- my initial idea was to add a column in the data set for combined date and time but that hasn't seemed to have worked. Thanks.

Formula: =DSUM('VOYAGE DATA'!$A:$CY,"ME MGO",A14:B15)
Where
A14 is "Date"
A15 is >8/31/2019 12:00 PM
B14 is "Date"
B15 is <=10/01/2019 12:00 PM

And currently "Date" is a column heading in the data set and "Time" is another column heading.
 
Last edited:

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Status
Not open for further replies.

Forum statistics

Threads
1,214,649
Messages
6,120,728
Members
448,987
Latest member
marion_davis

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