COUNTIF - EXCEPT When

Options

Hi,

I would like to write a formula that includes all {Deals} at "Tour" but not if {Lead Broker} is "Ryan", "Molly" or "Casey"

The formula below counts Deals at "Tour" AND NOT xyz broker. Instead I need Deals at "Tour" except for when Lead Broker is XYZ

=COUNTIFS({Transactions Master Data Range 2}, "Tour", {Transactions Master Data Range 3}, <>"Ryan Lawrence", {Transactions Master Data Range 3}, <>"Casey McCullough", {Transactions Master Data Range 3}, <>"Molly Glasgow")


Please help!

Best Answer

  • annaleeware
    Answer ✓
    Options

    I think I got it:

    =COUNTIFS({Transactions Master Data Range 3}, NOT(OR(@cell = "Molly Glasgow", @cell = "Ryan Lawrence", @cell = "Casey McCullough")), {Transactions Master Data Range 2}, @cell = "Tour")

Answers

  • annaleeware
    Answer ✓
    Options

    I think I got it:

    =COUNTIFS({Transactions Master Data Range 3}, NOT(OR(@cell = "Molly Glasgow", @cell = "Ryan Lawrence", @cell = "Casey McCullough")), {Transactions Master Data Range 2}, @cell = "Tour")

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!