IF Formula inquiry
![System](https://us.v-cdn.net/6031209/uploads/userpics/650/n67RVONBT7K0D.png)
System
Employee
This discussion was created from comments split from: Report showing parent task?.
Answers
-
Hi @KBedal ,
I just created a mock sheet and tested out some formulas. This sheet has task names, a "Level" column, and a "Description" column that concatenates the task names based on the parent's task names.
This is the formula that I used for Level:
=COUNT(ANCESTORS())
This is the formula that I used for Description:
=IF( Level@row = 0, [Task Name]@row, IF( Level@row = 1, [Task Name]@row + " - " + PARENT([Task Name]@row), [Task Name]@row + " - " + PARENT([Task Name]@row) + " - " + INDEX(ANCESTORS([Task Name]@row), Level@row - 1) ) )
You can modify this formula to add more IF statements, or join more task names.
I hope this helps!
Nathan Braun (Founder of SSFeatures) (nathan@ssfeatures.com)
SSFeatures - The browser extension that adds essential features into Smartsheet.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.2K Get Help
- 431 Global Discussions
- 152 Industry Talk
- 490 Announcements
- 5.2K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 74 Community Job Board
- 501 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 306 Events
- 36 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!