I've encountered a problem where QUERY
slightly changes some datetime values. Here goes a minimal reproducible example.
A sheet to play with.
A:A
has datetime values.B:B
repeats them using=FILTER(A2:A, SEQUENCE(ROWS(A2:A), 1, 1, 0))
.C:C
shows row numbers for any values that do not match the original. There isN/A
, everything matches.D:D
repeats original datetimes with=QUERY(A2:A,,0)
.E:E
shows row numbers for any values that do not match the original. There is a few.F:F
shows the original values andG:G
shows the values after theQUERY
for the non-matching pairs. 10th digit after the dot is differentH:H
shows the difference betweenF:F
andG:G
. Always the same:-0.000000000007276...
Why is that? Any way to remedy that? Maybe it is a bug in Google Sheets?
P.S.: the data is from another question (removed everything except datetimes). I had to use a FILTER
solution in the answer despite a QUERY
solution being simpler.