# 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)))

• ✭✭✭✭✭✭
Options

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

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

• ✭✭✭✭✭✭
Options

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

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

• Options

Thank you so much!

• ✭✭✭✭✭✭
Options

You're quite welcome! If you could mark my answer as accepted, that would be great!

Regards,

Jeff Reisman

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

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!