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
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!