попробовать:
=ARRAYFORMULA(QUERY(IFERROR({DATEVALUE(F2:F), G2:G}),
"select Col1,sum(Col2)
where Col2 is not null
group by Col1
label sum(Col2)''"))

E2:
=ARRAYFORMULA(QUERY({QUERY(
IFERROR(SPLIT(SUBSTITUTE(FILTER(B1:B, A1:A="entered"), " at ", "♦"), "♦")),
"select Col1+Col2 label Col1+Col2''"); IFERROR(
IF(INDEX(SPLIT(SUBSTITUTE(FILTER(B:B, A:A="exited"), " at ", "♦"), "♦"),,1)<>
INDEX(SPLIT(SUBSTITUTE(FILTER(B1:B, A1:A="entered"), " at ", "♦"), "♦"),,1),
INDEX(SPLIT(SUBSTITUTE(FILTER(B1:B, A1:A="entered"), " at ", "♦"), "♦"),,1)+
"23:59:59.999",))}, "where Col1 is not null order by Col1", 0))
F2:
=ARRAYFORMULA(QUERY({TRANSPOSE(QUERY(TRANSPOSE(SPLIT(
SUBSTITUTE(FILTER(B:B, A:A="exited"), " at ", "♦"), "♦")),,99^99))*1; IFERROR(
IF(INDEX(SPLIT(SUBSTITUTE(FILTER(B:B, A:A="exited"), " at ", "♦"), "♦"),,1)<>
INDEX(SPLIT(SUBSTITUTE(FILTER(B:B, A:A="entered"), " at ", "♦"), "♦"),,1),
INDEX(SPLIT(SUBSTITUTE(FILTER(B:B, A:A="entered"), " at ", "♦"), "♦"),,1)
+"23:59:59", ))}, "where Col1 is not null order by Col1", 0))
G2:
=ARRAYFORMULA(IF(F2:F="",,F2:F-E2:E))