Alert when 3 travellers on same flight number
Best Answer
-
Please see if this will work for you. I split the Over and Notify formulas for demonstration, but they can be combined. You may need to modify the column names in the formulas below to match yours
Over 3: =COUNTIFS([Flight Number]:[Flight Number], =[Flight Number]@row, Date:Date, =Date@row) + COUNTIFS(Date:Date, =Date@row, [Flight Number]:[Flight Number], =[Flight Number]@row)
Alert: =IF(Over@row > 5, "Alert", "Ok")
Combined: =IF(COUNTIFS([Flight Number]:[Flight Number], =[Flight Number]@row, Date:Date, =Date@row) + COUNTIFS(Date:Date, =Date@row, [Flight Number]:[Flight Number], =[Flight Number]@row) > 5, "Alert", "Ok")
Then you'll need to setup notifications when the alert column changes to "Alert" with a condition that the Alert column contains "Alert".
I hope this helps - there may be other/better methods.
Answers
-
Please see if this will work for you. I split the Over and Notify formulas for demonstration, but they can be combined. You may need to modify the column names in the formulas below to match yours
Over 3: =COUNTIFS([Flight Number]:[Flight Number], =[Flight Number]@row, Date:Date, =Date@row) + COUNTIFS(Date:Date, =Date@row, [Flight Number]:[Flight Number], =[Flight Number]@row)
Alert: =IF(Over@row > 5, "Alert", "Ok")
Combined: =IF(COUNTIFS([Flight Number]:[Flight Number], =[Flight Number]@row, Date:Date, =Date@row) + COUNTIFS(Date:Date, =Date@row, [Flight Number]:[Flight Number], =[Flight Number]@row) > 5, "Alert", "Ok")
Then you'll need to setup notifications when the alert column changes to "Alert" with a condition that the Alert column contains "Alert".
I hope this helps - there may be other/better methods.
-
Thank you - that worked!
-
Thank you - that worked!
Help Article Resources
Categories
Check out the Formula Handbook template!