Multiple IF Statements
I am using the following formula which is correct and working as expected
=(IF([Panel Type]@row = "P", ([Total Cost for Mediation]@row * [Panel Fee %]@row)))
However when I try to add in another IF it stops working
=(IF([Panel Type]@row = "P", [Total Cost for Mediation]@row * [Panel Fee %]@row)), (IF([Panel Type]@row = "C", [Total Cost for Mediation]@row * [Chambers Fee %]@row))
I actually need to add a further IF but want to work out where I am going wrong first!
Best Answer
-
You are using too many parenthesis. Try this...
=IF([Panel Type]@row = "P", [Total Cost for Mediation]@row * [Panel Fee %]@row, IF([Panel Type]@row = "C", [Total Cost for Mediation]@row * [Chambers Fee %]@row))
Answers
-
You are using too many parenthesis. Try this...
=IF([Panel Type]@row = "P", [Total Cost for Mediation]@row * [Panel Fee %]@row, IF([Panel Type]@row = "C", [Total Cost for Mediation]@row * [Chambers Fee %]@row))
-
Hey There,
I'm assuming you wanted to add the other IF statement as the else value - it looks as if you have too many brackets / wrong placement. If you get stuck w/ formulas, always good to layout the structure as below with indenting and then you can more easily see where the syntax errors are.
"
=
( <--remove
IF(
[Panel Type]@row = "P",
[Total Cost for Mediation]@row * [Panel Fee %]@row
) <--remove
) <--remove
,
( <--remove
IF(
[Panel Type]@row = "C",
[Total Cost for Mediation]@row * [Chambers Fee %]@row
)
)
"
n/b - I would also suggest adding an else to the second IF statement as a best practice, if case your panel type is anything other than P or C.
Regards,
-
Thank you both for your help! I can be a bit bracket happy! :)
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 85 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!