Cross reference sheet formula with date limits

mhahn
mhahn โœญโœญ

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))
    
    Screenshot from 2024-10-04 09-33-49.png Screenshot from 2024-10-04 09-34-01.png

    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?

    Nathan Braun (Founder of SSFeatures) (nathan@ssfeatures.com) (LinkedIn)

    SSFeatures empowers Smartsheet by adding essential features into Smartsheet to save you time. For example: โ€” Auto Sorting โ€” Sorting with Filters โ€” Report PDF Generation โ€” Copy and Paste Conditional Formats โ€” Copy and Paste Automation Workflows โ€” Column Manager โ€” and so many more.

  • mhahn
    mhahn โœญโœญ
    edited 10/04/24

    @SSFeatures It is in date format:

    image.png

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

    image.png image.png

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!