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)

    Kind regards

    Meet me at Engage in Seattle !

    Nico | LinkedIn

    CEO | Lighthouse Consultings

    🔴Certified Smartsheet Partner _______________________________________________

    addvalue@lighthouseconsultings.com

    💯 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

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!