Sum data depending on time?

Cadderly

New Member
Joined
Oct 10, 2002
Messages
3
Hello,

I need to sum data between a time period. For example :-
Time Quantity
11:48 134
12:25 152
12:28 121
12:35 143

I need to Sum all quantities that arrived between 12:00 and 12:30. Can anyone help?

Thanks
Cadderly
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
On 2002-10-11 04:34, Cadderly wrote:
Hello,

I need to sum data between a time period. For example :-
Time Quantity
11:48 134
12:25 152
12:28 121
12:35 143

I need to Sum all quantities that arrived between 12:00 and 12:30. Can anyone help?

Thanks
Cadderly

Let A2:B5 house the sample you provided, excluding the labels...

In D2 enter: 12:00

In E2 enter: 12:30

In F2 enter:

=SUMIF($B$2:$B$5,">="&D2)-SUMIF($B$2:$B$5,">"&E2)

will compute the desired sum.
 
Upvote 0

Forum statistics

Threads
1,214,789
Messages
6,121,593
Members
449,038
Latest member
Arbind kumar

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