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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!