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
- Customer Resources
- 64.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 145 Just for fun
- 62 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!