COUNTIFS with OR

Hi everyone. I have a formula for which i have multiple criterion. The issue I am having is for one of the columns, I want it to be counted if it contains "x" or "y" or "z". I cant figure out how to phrase it appropriately and make it work. Here is my stab at it (but it doesn't work).

=COUNTIFS({New Disposition Tracker(All CMOs) Range 2}, "serum", {New Disposition Tracker(All CMOs) Range 4}, Contains ("Unlabeled Drug Product (DP)" or ("Final Drug Product (FDP)" or (Drug Product (DP)", {New Disposition Tracker(All CMOs) Range 6}, >=[Start Date]@row, {New Disposition Tracker(All CMOs) Range 6}, <=[End Date]@row)

Tags:

Best Answer

  • NicoLHC
    NicoLHC ✭✭✭✭✭
    Answer ✓

    @michellelkirkland Attention if you refer to other sheets please give a name to the coloumn to avoid issues in the future.

    Please try this formula, If it does not work feel free to share the sheet with me . nico.roepnack@lighthouseconsultings.com

    =COUNTIFS({New Disposition Tracker(All CMOs) Range 2}, "serum",
    {New Disposition Tracker(All CMOs) Range 4}, "Unlabeled Drug Product (DP)",
    {New Disposition Tracker(All CMOs) Range 6}, >=[Start Date]@row,
    {New Disposition Tracker(All CMOs) Range 6}, <=[End Date]@row)
    +
    COUNTIFS({New Disposition Tracker(All CMOs) Range 2}, "serum",
    {New Disposition Tracker(All CMOs) Range 4}, "Final Drug Product (FDP)",
    {New Disposition Tracker(All CMOs) Range 6}, >=[Start Date]@row,
    {New Disposition Tracker(All CMOs) Range 6}, <=[End Date]@row)
    +
    COUNTIFS({New Disposition Tracker(All CMOs) Range 2}, "serum",
    {New Disposition Tracker(All CMOs) Range 4}, "Drug Product (DP)",
    {New Disposition Tracker(All CMOs) Range 6}, >=[Start Date]@row,
    {New Disposition Tracker(All CMOs) Range 6}, <=[End Date]@row)

    If my comment helps you, I appreciate a 💡

    Kind regards

    Meet me at Engage in Seattle!

    Nico | LinkedIn

    CEO | Lighthouse Consultings

    Lecturer in Business Information Systems | DHBW

    ________________________________________________________________________________

    addvalue@lighthouseconsultings.com

    We offer Licenses - Training - Solution Engineering

    🔴Certified Smartsheet Partner _______________________________________________

    💯 SCALEABLE Solutions Engineered by Lighthouse Consultings

    We Don’t Just Implement Smartsheet; We Revolutionize How You Manage, Plan, And Execute.

    🎥 YouTube 🚀TimeLine View

    http://lighthouseconsultings.de/

Answers

  • NicoLHC
    NicoLHC ✭✭✭✭✭
    Answer ✓

    @michellelkirkland Attention if you refer to other sheets please give a name to the coloumn to avoid issues in the future.

    Please try this formula, If it does not work feel free to share the sheet with me . nico.roepnack@lighthouseconsultings.com

    =COUNTIFS({New Disposition Tracker(All CMOs) Range 2}, "serum",
    {New Disposition Tracker(All CMOs) Range 4}, "Unlabeled Drug Product (DP)",
    {New Disposition Tracker(All CMOs) Range 6}, >=[Start Date]@row,
    {New Disposition Tracker(All CMOs) Range 6}, <=[End Date]@row)
    +
    COUNTIFS({New Disposition Tracker(All CMOs) Range 2}, "serum",
    {New Disposition Tracker(All CMOs) Range 4}, "Final Drug Product (FDP)",
    {New Disposition Tracker(All CMOs) Range 6}, >=[Start Date]@row,
    {New Disposition Tracker(All CMOs) Range 6}, <=[End Date]@row)
    +
    COUNTIFS({New Disposition Tracker(All CMOs) Range 2}, "serum",
    {New Disposition Tracker(All CMOs) Range 4}, "Drug Product (DP)",
    {New Disposition Tracker(All CMOs) Range 6}, >=[Start Date]@row,
    {New Disposition Tracker(All CMOs) Range 6}, <=[End Date]@row)

    If my comment helps you, I appreciate a 💡

    Kind regards

    Meet me at Engage in Seattle!

    Nico | LinkedIn

    CEO | Lighthouse Consultings

    Lecturer in Business Information Systems | DHBW

    ________________________________________________________________________________

    addvalue@lighthouseconsultings.com

    We offer Licenses - Training - Solution Engineering

    🔴Certified Smartsheet Partner _______________________________________________

    💯 SCALEABLE Solutions Engineered by Lighthouse Consultings

    We Don’t Just Implement Smartsheet; We Revolutionize How You Manage, Plan, And Execute.

    🎥 YouTube 🚀TimeLine View

    http://lighthouseconsultings.de/

  • Thank you so much! That did it!

  • NicoLHC
    NicoLHC ✭✭✭✭✭

    @michellelkirkland it would be great if you click the 💡to share with others

    If my comment helps you, I appreciate a 💡

    Kind regards

    Meet me at Engage in Seattle!

    Nico | LinkedIn

    CEO | Lighthouse Consultings

    Lecturer in Business Information Systems | DHBW

    ________________________________________________________________________________

    addvalue@lighthouseconsultings.com

    We offer Licenses - Training - Solution Engineering

    🔴Certified Smartsheet Partner _______________________________________________

    💯 SCALEABLE Solutions Engineered by Lighthouse Consultings

    We Don’t Just Implement Smartsheet; We Revolutionize How You Manage, Plan, And Execute.

    🎥 YouTube 🚀TimeLine View

    http://lighthouseconsultings.de/

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!