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
-
Hi @amy_ilearning,
For multiple criteria, you need to use "COUNTIFS", other than that, your syntax looks correct. Try changing to "COUNTIFS" and see if that works.
Hope that helps,
Dave
-
@amy_ilearning Have you tried testing it out by referencing the delivery date instead of the week number column?
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.4K Get Help
- 394 Global Discussions
- 213 Industry Talk
- 449 Announcements
- 4.6K Ideas & Feature Requests
- 141 Brandfolder
- 132 Just for fun
- 131 Community Job Board
- 453 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 293 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!