Cross reference sheet formula with date limits

I'm trying to count the number of complaints for Family Medicine within the last 30 days on a metric sheet referencing the source sheet Complaint Tracker. Here is the formula I think should work:

=COUNTIFS({PR - Complaint/Grievance Data Collection Range 2}, "Complaint", {PR - Complaint/Grievance Data Collection Range 1}, "Family Medicine", {PR - Complaint/Grievance Data Collection Range 3}, >=TODAY(-30))

However, it comes back as "Incorrect Argument". What am I doing wrong/missing?

Tags:

Answers

  • SSFeatures
    SSFeatures ✭✭✭

    Hi @mhahn,

    I just tested out your formula and it worked correctly for me:

    =COUNTIFS({Sheet A Range 1}, "Complaint", {Sheet A Range 2}, "Family Medicine", {Sheet A Range 3}, >=TODAY(-30))
    

    Can you double check your {PR - Complaint/Grievance Data Collection Range 3} and make sure that that column is a Date column and not a Text/Number column?

    SSFeatures - The browser extension that adds more features into SmartSheet.

    • Automatic sorting, sorting with filters, saving sort settings
    • Spell checking
    • Report PDF generator that supports grouped and summarized reports

  • mhahn
    mhahn
    edited 10/04/24

    @SSFeatures It is in date format:

    I just tried replicating the formula that you had above without the parenthesis and it's still returning "Incorrect Argument"

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!