Multiple conditions with IF and PARENT ()
Trying to get multiple conditions working with IF + PARENT ()
If formula works when it's used alone.
=IF(Type@row = "task", "") -> Works
=IF(Type@row = "subtask", PARENT(ID@row)) -> Works
However, when I tried to combine the formula, it returns UNPARSEARBLE.
=IF(Type@row = "task", ""), if(type@row="subtask", PARENT(ID@row)) -> Doesn't work.
What is wrong with above formula?
Best Answer
-
In your formula:
=IF(Type@row = "task", ""), if(type@row="subtask", PARENT(ID@row))
You are missing you closed the firs if too soon (with the ")" coming too early. You also need the "if false" clause at the end.
Try this:
=IF(Type@row = "task", "", if(Type@row="subtask", PARENT(ID@row),"")
Cheers,
Ramzi
Ramzi Khuri - Principal Consultant @ Cedar Tree Consulting (www.cedartreeconsulting.com)
Feel free to email me: ramzi@cedartreeconsulting.com
💡 If this post helped you out, please help the Community by marking it as the accepted answer/helpful.
Answers
-
In your formula:
=IF(Type@row = "task", ""), if(type@row="subtask", PARENT(ID@row))
You are missing you closed the firs if too soon (with the ")" coming too early. You also need the "if false" clause at the end.
Try this:
=IF(Type@row = "task", "", if(Type@row="subtask", PARENT(ID@row),"")
Cheers,
Ramzi
Ramzi Khuri - Principal Consultant @ Cedar Tree Consulting (www.cedartreeconsulting.com)
Feel free to email me: ramzi@cedartreeconsulting.com
💡 If this post helped you out, please help the Community by marking it as the accepted answer/helpful.
-
Great! Thanks heaps!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 67 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!