COUNTIFS w/ multiple criteria (date present & phrase inclusion) across 2 ranges in same sheet

DHolmes
DHolmes ✭✭
edited 04/20/23 in Formulas and Functions

I am a relatively new user, and I'm struggling with the creation of a COUNTIFS formula that checks one range/column to determine if a particular phrase is present, followed by a second criteria to determine if a date is present (or entry not blank) in a second range on the same sheet.

The entries in this combined formula work just fine individually, but they do not work together (UNPARSEABLE):

=COUNTIFS([{Data Tracker Range 8}, FIND("Phrase", @cell)], [{Data Tracker Range 6}, <>""])

If I'm not mistaken, the Excel formula would be:

=COUNTIFS({Data Tracker Range 2},"=Phrase",{Data Tracker Range 1},"<>"&"")

I've even tried multiple COUNTIFS. Help! I'm stumped.

Pardon if referencing "Excel" is taboo here.

Best Answer

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭
    Answer ✓

    It looks like you have some extra characters tucked in. Try this:


    =COUNTIFS({Data Tracker Range 8}, FIND("Phrase", @cell)>0, {Data Tracker Range 6}, <>"")


    Note: The FIND function is case sensitive. If you don't want to have to worry about that, you can incorporate a LOWER or UPPER function wrapped around the @cell portion, or you can use a CONTAINS function in place of the FIND function.

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!