Formula

Hi
I am changing the formula below but it doesnt work as expected. Can someone show me the correct way. Thanks


From:
=IF(OR([Item Status]@row = "(LTB)", [Item Status]@row = "(BB)"), "esh@gmail.com", IF([GSP Status]@row = "Cancel", "", IFERROR(INDEX({Site Ivt Lead}, MATCH([MSI / EMS Site]@row, {Site1}, 0)), "")))


To:


=IF(OR([Item Status]@row = "(LTB)", [Item Status]@row = "(BB)"), "esh@gmail.com",IF(OR([Item Status]@row = "(LTB)", [Item Status]@row = "(BB)"),"anurz@gmail.com", IF([GSP Status]@row = "Cancel", "", IFERROR(INDEX({Site Ivt Lead}, MATCH([MSI / EMS Site]@row, {Site1}, 0)), "")))

The scenario that need to be add in just additional name for the LTB and BB which is anurz@gmail.com

Best Answer

  • Mark.poole
    Mark.poole ✭✭✭✭✭✭
    edited 08/11/24 Answer ✓

    @HZAR,

    @NickStaffordPM is right in how the iff statement works. The easiest way to get this to would would be to put both emails in another cell and reference that cell when the criteria is true. Rather you do it in the same sheet or seperate sheets.

    Or, you can use automation to assign both people to the cell given the correct criteria.

    If you found this comment helpful. Please respond with any of the buttons below. Awesome🖤, Insightful💡, Upvote⬆️, or accepted answer. Not only will this help others searching for the same answer, but help me as well. Thank you.

Answers

  • NickStaffordPM
    NickStaffordPM ✭✭✭✭✭✭

    So the IF statement will stop running once it sees a correct logical statement, that means that once

    OR([Item Status]@row = "(LTB)", [Item Status]@row = "(BB)", "esh@gmail.com"

    is true it will input the value esh@gmail.com then STOP, it won't continue to the second

    IF(OR([Item Status]@row = "(LTB)", [Item Status]@row = "(BB)"),"anurz@gmail.com"

    That would be why your formula is not working for two names.. Let me do some research on some formula options for you / maybe someone from the community can help us out as well

  • HZAR
    HZAR ✭✭✭

    Hi @Paul Newcome

    Hi @Mark.poole

    Can you help to light some guide on this

  • Mark.poole
    Mark.poole ✭✭✭✭✭✭
    edited 08/11/24 Answer ✓

    @HZAR,

    @NickStaffordPM is right in how the iff statement works. The easiest way to get this to would would be to put both emails in another cell and reference that cell when the criteria is true. Rather you do it in the same sheet or seperate sheets.

    Or, you can use automation to assign both people to the cell given the correct criteria.

    If you found this comment helpful. Please respond with any of the buttons below. Awesome🖤, Insightful💡, Upvote⬆️, or accepted answer. Not only will this help others searching for the same answer, but help me as well. Thank you.

  • HZAR
    HZAR ✭✭✭

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!