I have a SUMIF formula incorrect and not sure how to fix, Sum of a quantity between dates and time

197527

New Member
Joined
Jun 3, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I cannot get this formula to work, i currently have =SUMIFS(Table1[Singles Quantity],Table1[Van leaves],">"&H40,Table1[Van leaves],"<"&H41) for the below. I need the number of singles that left on a van between 5am and 6am worked out in a formula.

Site IDOrder typeSingles QuantityOrder placedOrder releasedCluster startCluster endPick startPick endPack startPack endReady for DespatchStart Load into VanEnd Load into VanVan leaves
1001Box418/06 17:0819/06 00:1519/06 00:3019/06 00:3019/06 00:5119/06 01:0819/06 01:1619/06 01:2519/06 01:3419/06 04:3519/06 04:5819/06 06:21
1004Box217/06 16:0918/06 23:4219/06 00:4919/06 01:0319/06 01:2319/06 01:4819/06 02:0119/06 02:1719/06 02:1919/06 04:4519/06 05:2419/06 06:25
1009Box317/06 08:2518/06 23:3619/06 00:5819/06 01:1119/06 01:3219/06 01:4119/06 01:4519/06 01:5319/06 01:5319/06 02:2219/06 02:5519/06 04:31
1009Box118/06 20:4319/06 00:0319/06 00:3919/06 00:5319/06 00:5819/06 01:1119/06 01:3919/06 01:4019/06 01:4519/06 04:5719/06 05:0819/06 06:45
1010Box118/06 13:3619/06 00:0419/06 02:0419/06 02:2919/06 02:3219/06 02:4319/06 02:4519/06 02:5719/06 02:5919/06 03:0719/06 03:2219/06 05:01
1006Box118/06 22:1719/06 00:1719/06 01:2919/06 01:3019/06 01:5619/06 02:1819/06 02:3719/06 02:4219/06 02:4819/06 04:3819/06 04:4219/06 05:25
1006Box417/06 17:4318/06 23:4519/06 00:0419/06 00:2719/06 00:4119/06 01:0719/06 01:1919/06 01:3219/06 01:4019/06 02:5919/06 03:2319/06 04:58
1002Box617/06 06:1618/06 23:1018/06 23:3118/06 23:5319/06 00:1819/06 00:2119/06 00:2319/06 00:3919/06 00:4719/06 02:4419/06 03:1719/06 05:14
1001Box218/06 18:0818/06 23:0719/06 00:0919/06 00:3619/06 00:3819/06 01:0019/06 01:0319/06 01:1719/06 01:2419/06 02:1819/06 02:5219/06 03:10
1001Box118/06 00:0318/06 23:5719/06 00:5019/06 01:1919/06 01:4419/06 01:5019/06 02:2019/06 02:3119/06 02:3219/06 03:2119/06 04:0119/06 04:50
1008Box317/06 09:3418/06 23:5919/06 01:2019/06 01:2419/06 01:3719/06 01:4619/06 01:5519/06 02:0019/06 02:0519/06 03:4219/06 04:1019/06 05:26
1004Box218/06 03:1618/06 23:4019/06 00:1519/06 00:2119/06 00:3319/06 00:4219/06 01:0519/06 01:1419/06 01:1519/06 02:4819/06 03:2519/06 04:52
1005Box317/06 23:4018/06 23:2719/06 00:3819/06 01:0519/06 01:3319/06 01:5119/06 01:5819/06 02:0419/06 02:0819/06 04:0219/06 04:2019/06 06:15
1007Box118/06 11:0419/06 00:1719/06 00:2019/06 00:4019/06 00:4319/06 00:4419/06 01:0919/06 01:2719/06 01:2819/06 02:1319/06 02:2719/06 04:08
1003Split117/06 22:4618/06 23:5019/06 01:4219/06 01:4319/06 01:5619/06 02:0919/06 02:3019/06 02:3219/06 02:3619/06 05:3619/06 05:4119/06 06:40
1007Split118/06 22:5619/06 00:2119/06 01:3719/06 02:0619/06 02:0719/06 02:2819/06 02:5719/06 03:0719/06 03:1119/06 05:5419/06 06:2519/06 08:05
1005Split418/06 01:0518/06 23:5619/06 01:2619/06 01:4619/06 01:5519/06 02:0019/06 02:2719/06 02:3519/06 02:3719/06 05:2919/06 05:3019/06 05:40
1003Split618/06 15:5018/06 23:3919/06 00:3119/06 00:4119/06 00:4219/06 00:5119/06 01:1619/06 01:1819/06 01:1919/06 03:5819/06 04:2519/06 05:05
1001Split218/06 08:1518/06 23:2519/06 00:1619/06 00:2719/06 00:3519/06 00:4119/06 01:0719/06 01:2619/06 01:3019/06 04:1919/06 04:5819/06 06:56
1007Split118/06 07:2018/06 23:4919/06 00:1319/06 00:3719/06 01:0619/06 01:0619/06 01:1919/06 01:3119/06 01:3519/06 01:5619/06 02:2119/06 03:12
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
You've got a date in the Van Leaves, and presumably just a time in H40 and H41.

I'd change Table1[Van leaves] to
MOD(Table1[Van leaves],1)

That will just take the time part.

But I think that will give you a problem in SUMIFS - I don't think it will take a formula, just a range. So you might switch to SUMPRODUCT.
 
Upvote 0

Forum statistics

Threads
1,225,757
Messages
6,186,848
Members
453,379
Latest member
gabriellegonzalez

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