Invalid operation using index & collect function
Hi Smartsheet Community,
I'm trying to perform cross-sheet references, specifically pulling the names of accounts from a deal tracker sheet based on specific employee names, using both the 'index' and 'collect' function, with one 'if' statement:
=IF({Account Status in deal tracker} = "Live", INDEX(COLLECT({Account Name from deal tracker}, {Employee Name from deal tracker}, "Insert specific name"), 1))
That is, my goal is to populate a cell with the first entry of this collected list, as long as the account status is live, and that the specific person can be identified.
Smartsheet is currently spitting out '#INVALID OPERATION.' Any speculations as to why this is (I suspect it has to do with the latter portion of the formula)?
Thanks,
Will
Best Answer
-
Hi Will,
Could you give us a screenshot to have a visual of what you are dealing with? You can remove or replace the confidential data if you have any.
Mathieu @evolytion
Mathieu | Workflow Consultant
info@evolytion.com
Answers
-
Hi Will,
Could you give us a screenshot to have a visual of what you are dealing with? You can remove or replace the confidential data if you have any.
Mathieu @evolytion
Mathieu | Workflow Consultant
info@evolytion.com
-
Hi Mathieu,
I sincerely appreciate you responding, but please do forgive me -- I was able to figure out a solution. Feel free to close this thread :)
Best,
Will
-
What was the solution?
Be safe and have a fantastic weekend!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
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 Starå,
I ended up omitting the 'IF' statement and placed it into the 'Collect' function. It ended up looking like:
INDEX(COLLECT({Account Name from deal tracker}, {Employee Name from deal tracker}, "Insert specific name", {Account Status in Deal Tracker}, "Live"),1).
Candidly, I'm not sure why this worked versus my first attempt. I certainly could have mis-typed a formula entry on my end.
Stay safe as well :)
-Will
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 461 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!