#INVALID OPERATION while using COUNTIFS
Hi,
I am trying to fetch a value based on three columns the columns are as under:
I am trying to filter out how many requests are there in the two types against each "LOB category", I tried Count IF and phrased it as :
=COUNTIFS({DocRequestTypAPAC}, $[Document Request Type]@row, {LOBIRS} = "IRS", {RRmnth}, "October 2020"). it is throwing and #INVALID OPERATION Error.
Please hep to get corrected.
Prajna
Best Answer
-
Try something like this.
=COUNTIFS({DocRequestTypAPAC}, $[Document Request Type]@row, {LOBIRS}, "IRS", {RRmnth}, "October 2020")
Did that fix it?
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.
Answers
-
Hi @Prajna Jain
At a glance, could it be a spelling error?
It looks like there is a missing e in the cross-sheet reference.
=COUNTIFS({DocRequestTypeAPAC}, $[Document Request Type]@row, {LOBIRS} = "IRS", {RRmnth}, "October 2020").
Did that work?
I hope that helps!
Be safe and have a fantastic week!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or 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.
-
I cannot see it is because of spelling, as it is the range name that i have defined in short.
-
On second glance I think it's the $ sign because you can't use Absolute Reference with @row.
Was that the issue?
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.
-
I have used Absolute Reference with @row in another formula for Count IFS those are working fine. Hence, I don't see $ sign as a cause of the error.
Tough I tried removing $, still throwing same error.😔
-
I almost certain that the Absolute Reference didn't work before with @row, but I tested, and it works now, so that is fantastic. 🤩
Regarding your issue
I'd be happy to take a quick look.
Can you maybe share the sheet(s)/copies of the sheet(s)? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help. (share too, andree@workbold.com)
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.
-
Yes, and if I am phrasing the COUNTIFS correctly why it is throwing ERROR.
Can it be due to 3 range/criteria are being called ?
I have check COUNTIFS works perfectly with 2 criteria.
-
Try something like this.
=COUNTIFS({DocRequestTypAPAC}, $[Document Request Type]@row, {LOBIRS}, "IRS", {RRmnth}, "October 2020")
Did that fix it?
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.
-
Yessss I did it,
=COUNTIFS({DocRequestTypAPAC}, $[Document Request Type]@row, {LOBIRS},"IRS", {RRmnth}, "October 2020")
I just removed "=" and put a coma there. 🙂
-
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.
-
Ohhh..my bad...saw your reply late..😮
-
Haha! No worries!
The important thing is that it's working.
I don't know how I could miss it.
Time for more coffee! 😉
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.
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
- 143 Just for fun
- 58 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives