Nested If else statements with a hierarchy based on fields containing dates
I have 5 tech levels in my sheet that contain the date in which someone reached that level. I then have a column that needs to display the highest level that contains a date.
The Tech level for the first line should show as "Tech 1" as it is the highest level with a date, whereas the second and third rows would show a Tech level of "Tech 2".
Best Answer
-
Hi @bonzemail
I hope you're well and safe!
Try something like this.
= IF([T5 Date]@row <> "", "Tech 5", IF([T4 Date]@row <> "", "Tech 4", IF([T3 Date]@row <> "", "Tech 3", IF([T2 Date]@row <> "", "Tech 2", IF([T1/Hire Date]@row <> "", "Tech 1")))))
Did that work/help?
I hope that helps!
Be safe and have a fantastic weekend!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!
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.
Answers
-
I can get the first two levels:
=IF(NOT(ISBLANK([T5 Date]@row)), "T5", IF(NOT(ISBLANK([T4 Date]@row)), "T4"))
But once I add the third, I get #UNPARSEABLE
=IF(NOT(ISBLANK([T5 Date]@row)), "T5", IF(NOT(ISBLANK([T4 Date]@row)), "T4")), IF(NOT(ISBLANK([T3 Date]@row)), "T3")
-
Hi @bonzemail
I hope you're well and safe!
Try something like this.
= IF([T5 Date]@row <> "", "Tech 5", IF([T4 Date]@row <> "", "Tech 4", IF([T3 Date]@row <> "", "Tech 3", IF([T2 Date]@row <> "", "Tech 2", IF([T1/Hire Date]@row <> "", "Tech 1")))))
Did that work/help?
I hope that helps!
Be safe and have a fantastic weekend!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!
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.
-
That worked like a charm! Thank you so much!!!
-
Excellent!
You're more than welcome!
✅Remember! Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!
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.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!