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

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
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,215,762
Messages
6,126,740
Members
449,335
Latest member
Tanne

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