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
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!