I've asked a similar question in the past but for some reason I can't figure this one out. I'm using multirow formulas but I'm not getting the right result and I can't see what I'm doing wrong.
If two times are the same but the milliseconds are +/-5 then I want to flag them for removal. (can filter it out later)
I'd like to do this:

1st multi row formula:
if [Time]=[Row-1:Time] and [Milliseconds]+5 >= [Row-1:Milliseconds] or
[Time]=[Row-1:Time] and [Milliseconds]-5 <= [Row-1:Milliseconds]
then 'Remove' else null() endif
2nd multi row formula
if [Time]=[Row+1:Time] and [Milliseconds]+5 >= [Row+1:Milliseconds] or
[Time]=[Row+1:Time] and [Milliseconds]-5 <= [Row+1:Milliseconds]
then 'Remove' else [New Field] endif
Can any one help?