Alert when 3 travellers on same flight number

I have a very simple form which records booking reference (text), flight number (text) and date (date) and Alert (free text)

I want an alert if a third traveller is booked on the same flight and date.

Best Answer

  • ker9
    ker9 ✭✭✭✭✭✭
    Answer ✓

    Hi @Ellenvanschaik67

    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

  • ker9
    ker9 ✭✭✭✭✭✭
    Answer ✓

    Hi @Ellenvanschaik67

    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

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!