COUNTIF with dates pulled from cells?

David Acord
David Acord ✭✭
edited 10/29/21 in Formulas and Functions

Hello!

I'm trying to run a count of the number of entries on a sheet, where the "needs analysis assigned date" is greater than 5 days prior to the "date requestor contacted" date for that same row of data.

Example:


Row 1:

Needs analysis assigned date: 11/1/2022

Date Requestor contacted: 11/2/2022

The date difference only being 1 day, this should not be counted.


However, for:

Row 2:

Needs analysis assigned date: 11/1/2022

Date Requestor contacted: 11/7/2022

This should be counted as it's been 6 days.


My formula is below, and it's #UNPARSEABLE. can anyone help?

=COUNTIF([Date Requestor Contacted]:[Date Requestor Contacted], <=[Needs analysis assigned date](-5)@cell)

Best Answer

  • Genevieve P.
    Genevieve P. Employee
    edited 11/01/21 Answer ✓

    Hi @David Acord

    I'm glad this is on the right track for you! Good point about blank dates. Yes, lets add in another statement to make sure this doesn't happen:

    =IF(OR([Date Requestor Contacted]@row = "", [Needs analysis assigned date]@row = ""), 0, IF([Date Requestor Contacted]@row >= [Needs analysis assigned date]@row + 5, 1, 0))

    Cheers!

    Genevieve

    Need more help? 👀 | Help and Learning Center

    こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!