Using CountIFs with cross reference and multiple criteria

Hello!

I am looking for some assistance on a formula. I have a Master Sheet and a Helper Sheet. I am trying to calculate the number of specific events associated with a person within a date range utilizing cross-sheet reference.

I have tried multiple formulas, but not having any luck

=COUNTIFS({Sample Master Type}, "New Patient [1003]", {Sample Empanelment Reports_combined Range 1}, "Haynes, John Harlan, MD", (DATE), AND((IFERROR((MONTH(@cell), 0) = 1, IFERROR(*YEAR(@Cell), 0) = 2024)

I am looking to count the number of events with a specific type, assigned to a specific individual, during January 2024.

Here is sample information from the Master Sheet.

Based on the PCP, Visit Date, and Type, I would like to have a total count on the helper sheet.

Any help would be appreciated.

Tags:

Answers

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    Your syntax is off. Try this instead:

    =COUNTIFS({Sample Master Type}, "New Patient [1003]", {Sample Empanelment Reports_combined Range 1}, "Haynes, John Harlan, MD", {DATE}, AND(IFERROR(MONTH(@cell), 0) = 1, IFERROR(YEAR(@cell), 0) = 2024))

    Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!

    CERTIFIED SMARTSHEET PLATINUM PARTNER

    10xViz.com

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!