Counting Referrals by Week

Options

I am trying to count incoming referrals based on the date of the referral. I have this so far, but it isn't correct yet:

=COUNTIF({OBOT Referrals Date Referral Received}, (@cell >= DATE(2023, 1, 1)), (@cell < DATE(2023, 6, 1)))

Best Answer

  • Jeff Reisman
    Jeff Reisman ✭✭✭✭✭✭
    edited 02/23/23 Answer ✓
    Options

    @Courtney Coules

    Try changing the function to COUNTIFS and throwing an AND function in there:

    =COUNTIFS({OBOT Referrals Date Referral Received}, AND(@cell >= DATE(2023, 1, 1), @cell < DATE(2023, 6, 1)))

    Alternatively, you could use COUNTIFS, and use the range twice, once for each date criteria:

    =COUNTIFS({OBOT Referrals Date Referral Received}, @cell >= DATE(2023, 1, 1), {OBOT Referrals Date Referral Received}, @cell < DATE(2023, 6, 1)))

    (When structured this second way, the AND is built into the COUNTIFS function, because all the criteria have to be true in order for the row to be counted.)

    Regards,

    Jeff Reisman

    Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages

    If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!