Sumifs with 2 conditions from same column

csalcido
csalcido
edited 12/09/19 in Formulas and Functions

I am having trouble creating a formula with 2 conditions. I currently have formulas in a Spend summary sheet that only have one condition but I need to add a 2nd condition. Here is what I have for 1 condition: 

=SUMIFS({Team DD - Budget - FY19-FY20- Amount}, {Team DD - Budget - FY19-FY20- Requester Team}, "Computing", {Team DD - Budget - FY19-FY20- Director Approval}, "Approved", {Team DD - Budget - FY19-FY20- Priority}, "Plan A - P1", {Team DD - Budget - FY19-FY20- Quarter Funding}, "Q1 - FY20")

 

 I want to be able to pull info from "Plan A - P1" and also from "Critical" from the same column labeled as "Priority" but i am having trouble. 

Comments

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭

    Hi,

    Try something like this.

    {Team DD - Budget - FY19-FY20- Priority}, OR(@cell = "Plan A - P1"; @cell = "Critical",

    Did it work?

    Have a fantastic weekend!

    Best,

    Andrée Starå

    Workflow Consultant @ Get Done Consulting

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

    Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

  • It is saying that it is unparseable. I tried a couple of different varieties to make sure I am not adding or forgetting a space or quote mark but still same problem. 

    Here is what I used:

    =SUMIFS({Team DD - Budget - FY19-FY20- Amount}, {Team DD - Budget - FY19-FY20- Requester Team}, "Computing", {Team DD - Budget - FY19-FY20- Director Approval}, "Approved", {Team DD - Budget - FY19-FY20- Priority}, OR(@cell = "Plan A - P1"; @cell = "Critical"), {Team DD - Budget - FY19-FY20- Quarter Funding}, "Q1 - FY20")

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!