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.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!