Identify Orders with empty Project type

Hi dear community, this is my first question here... Please help to understand if i'm doing something incorrectly. I did a search in this site, but didn't find an answer.

I have a number of SalesOrders (SO) and many products inside each SO. I need to create a formula to identify SO containing 1 or more lines with empty Project Type.

I tried to use IF(MAX(CONTAINS) like I use to identify Duplicate, but can't finalize it.

Could you please help to find a right formula?

Thanks in advance


Best Answer

  • Stanislav Morozov
    Stanislav Morozov ✭✭✭
    Answer ✓

    Hi @Genevieve P. thanks a lot!

    As always, just after I posted my question, an idea with COUNTIFS popped up in my mind ))

    I understand that in fact I need to consider 2 conditions: Project Type and Project Start Date. Please find below current solution:

    =IF(COUNTIFS([Project Type]:[Project Type], ="", SO:SO, SO@row) + COUNTIFS([Project Start Date]:[Project Start Date], ="", SO:SO, SO@row) > 0, 1, 0)

    Very friendly beginning in a Community, thanks a lot again!

Answers

  • Genevieve P.
    Genevieve P. Employee Admin
    edited 11/22/22

    Hi @Stanislav Morozov

    Thanks for posting your question, and welcome to the Community! 🙂

    For your formula, you'll want to use an IF statement to see if the current row has an SO number that is associated with a blank cell in the Type column. We do this by seeing if the current SO has a COUNT greater than 1 of blank cells in the Type column.


    Try something like this:

    =IF(COUNTIFS(SO:SO, SO@row, Type:Type, "") > 0, 1, 0)


    The "" in the COUNTIFS function is searching for blank cells.

    Let me know if this works for you!

    Cheers,

    Genevieve

  • Stanislav Morozov
    Stanislav Morozov ✭✭✭
    Answer ✓

    Hi @Genevieve P. thanks a lot!

    As always, just after I posted my question, an idea with COUNTIFS popped up in my mind ))

    I understand that in fact I need to consider 2 conditions: Project Type and Project Start Date. Please find below current solution:

    =IF(COUNTIFS([Project Type]:[Project Type], ="", SO:SO, SO@row) + COUNTIFS([Project Start Date]:[Project Start Date], ="", SO:SO, SO@row) > 0, 1, 0)

    Very friendly beginning in a Community, thanks a lot again!

  • Genevieve P.
    Genevieve P. Employee Admin

    Ah that makes sense, thanks for posting your solution, @Stanislav Morozov!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!