COUNTIFS error when finite rows not set
I have a formula that calculates the week number, and counts all items with the priority of 'Standard' within that week.
The issue is that my 'Creation Date' column currently has 97 rows, but this will increase. The formula below works, but not if I remove the row numbers. I haven't seen this behavior before, did I set something up incorrectly? (First and last row are constant, the week number is between 1-52).
=IFERROR(COUNTIFS([Creation Date]$1:[Creation Date]$97, WEEKNUMBER(@cell) = [Week#]@row, Priority$1:Priority$97, "Standard"), "lorem")
Best Answer
-
I created a helper row for the dates, and reference those instead of the actual date columns, and it works.
Answers
-
Hi Fred,
Do you get an error message?
Can you maybe share some screenshots? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help. (share too, andree@getdone.se)
I hope that helps!
Have a fantastic week!
Best,
Andrée Starå
Workflow Consultant / CEO @ WORK BOLD
✅Did my post help answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
-
Hi Andrée!
If the formula is only [Creation Date]:[Creation Date] and Priority:Priority, it gives me 'Invalid Data Type'. With the restrictions, it gives me the correct count. Date columns are date format, everything else is text/number.
-
I still have a question around this. I thought we could reference an entire column in a formula. This breaks if it's not restricted to rows containing data.
If I change my formula to
=COUNTIFS([Creation Date]:[Creation Date], WEEKNUMBER(@cell) = [Week#]@row, Priority:Priority, "Standard")
I get this
This is the bottom of the sheet
-
I created a helper row for the dates, and reference those instead of the actual date columns, and it works.
-
Excellent! Glad you got it working!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!