Sheet Reference Formula for Last Week?

I have a source sheet set up that has three columns: State, Delivery Date and =WEEKNUMBER from the Delivery Date formula.

I have a metric sheet set up where I want to use a =COUNTIF formula to calculate rows from the source sheet with deliveries by state, and I want it to count by delivery date from the previous week (not previous 7 days).

I have this formula, but of course it's showing INCORRECT ARGUMENT:

=COUNTIF({2024 State}, State@row, {2024 Week}, WEEKNUMBER(@cell) = (WEEKNUMBER(TODAY()) - 1))

What am I doing wrong?

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!