Hi everyone,
I am re-creating a process that audits people entering a lounge, and if we can charge them.
If they enter in once they can have a blank in the "duplicate" column
if they enter in more than once outside of a 30 minute window (leave, wait at least 30 min, then re-enter) the duplicate column should be ">2"
if they enter only twice outside of a 30 minute window duplicate column should be "x"
if their entrances are within the 30 min window or they only come once then leave blank.
Below is the excel sample w/ data and the excel formula.
Excel formula also here:
=IF(COUNTIFS($A$1:A6,A6,$B$1:B6,B6,$C$1:C6,C6,$E$1:E6,E6)>2,">2",IF(AND((ABS(SUMIFS(D$1:$D5,B$1:B5,B6,A$1:$A5,A6,E$1:$E5,E6,C$1:$C5,C6)-D6)*(60*24))<31,(COUNTIFS($A$1:A5,A6,$B$1:B5,B6)>0)),"x",""))
There is no need to recreate this formula, unless it is the only way to get it done.
Thanks so much this will be a huge help!