Use an IF statement to insert formula?
Is it possible to use an IF statement to insert the correct formula? Based on the hierarchy, I need one formula added for the parent rows but a different formula for the child rows. The individual formulas do work, but not in the IF statement. Wondering if there is a trick that I'm missing?
=IF(Hierarchy@row = 0, "=SUM(CHILDREN())", "=SUMIFS({LbrTrkCost}, {LbrTrkPrj}, Project@row, {LbrTblResource}, Resource@row, {LbrTblType}, "CapEx")")
Answers
-
=IF(Hierarchy@row = 0, SUM(CHILDREN()), SUMIFS({LbrTrkCost}, {LbrTrkPrj}, Project@row, {LbrTblResource}, Resource@row, {LbrTblType}, "CapEx"))
-
I should have prefaced that I have tried this with and without quotes. Quotes give the "Unparseable" error; without quotes, gives the "Invalid Operation" error.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!