OR( ) for multiple criterion ranges within INDEX/COLLECT/SUMIFS
Hello, any tips for using OR for multiple criterion ranges? The formula below outputs #INVALID DATA TYPE.
=INDEX(COLLECT({Task Name}, {Details}, <>"", OR({X Budget}, {Y Budget}), <>""), [Expense #]@row)
The goal is to only pull tasks into the new sheet that have a value for either budget type (X, Y).
Answers
-
@breso You can't do Or() around two ranges. You can do that around criteria. I think you'd need to do two separate index(collect()) , one per range, and maybe put those two in a if() to decide which of the two results you use as an output.
Or you could put a helper on the sheet that was maybe called ORhelper. And in that column put a formula that said
=if(or(not(isblank([X Budget]@row)),not(isblank([Y Budget]@row)),"X","")
Then in your original formula above change it to:
=INDEX(COLLECT({Task Name}, {Details}, <>"", {OrHelper},"X", [Expense #]@row)
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 458 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives