Not really - unless you're looking to sum between specific DateTimes
The version I posted previously will sum miles where time span crosses midnight...
If you want a version whereby you can have pattern that may/may not cross midnight then I think you would need to adapt to perhaps something along the lines of:
=SUMPRODUCT(--(LEFT($A$2:$A$100,LEN($E$1))=$E$1),--(($B$2:$B$100+((--$B$2:$B$100<=$E$3)*($E$3<$E$2)))<=($E$3+($E$3<$E$2))),--(($B$2:$B$100+((--$B$2:$B$100<=$E$3)*($E$3<$E$2)))>=$E$2),$D$2:$D$100)
in the above version I adjusted such that you could specify a Reg of varying length in E1 - eg L to sum all plates beginning with L or you can make as specific as you like (ie adding full Reg)
Note also - in your example the values in B2 onwards are actually text strings...on that basis the values are coerced in the above where necessary.
Bookmarks