# Count Dates but by week if possible - Weekly trends

Options
✭✭

I've tried a count if, count and countif function.

Trying to Count how many in a date range. Sunday through Saturday as my base week. How many times in week 5/9 to 5/14 was a request put in.

Would I need to count each date? Like count if date @row 2021,5,9? In the screenshot above the answer would be 4. But I would need a separate formula for all 52 weeks in a year? Formula for a daily count?

Just trying to show weekly trends....

• ✭✭✭✭✭✭
Options

You could do one of two things:

=COUNTIF(WEEKNUMBER([date requested]:[date requested],WEEKNUMBER(TODAY()))

The above formula counts the number of items that have a date in the current week. Alternately, you could put a specific week number, or enter a date in a different field and do WEEKNUMBER([column]@row).

You could also do:

=COUNTIFS([date requested]:[date requested], >=date(2021,5,9),[date requested]:[date requested],<=date(2021,5,15))

This counts between the two specific dates.

Hope this helps!

Best,

Heather

• ✭✭
Options

Tried both and getting an unparseable error. ?

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!