Placing Text within a formula in MS Excel

I have the following formula...

=IF(AND($M$11="X",$O$11="",$Q$11=""),IF($T$11="X","Normalized Earnings Before Interest and Taxes ","Unadjusted Earnings Before Interest and Taxes ")&$M$10,IF(AND($M$11="",$O$11="X",$Q$11=""),IF($T$11="X","Normalize ","Unadjusted ")&$O$10,IF(AND($M$11="",$O$11="",$Q$11="X")," "&$Q$12," EBIT, EBITDA or Other Method")))

when $T$11 contains an "X", the cell returns
Normalized Earnings Before Interest and Taxes EBIT <====(the EBIT comes from cell $M$10)
I want to put the term EBIT in parenthesis
LVL 1
Bill GoldenExecutive Managing MemberAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Missus Miss_SellaneusCommented:
=SUBSTITUTE(IF(AND($M$11="X",$O$11="",$Q$11=""),IF($T$11="X","Normalized Earnings Before Interest and Taxes ","Unadjusted Earnings Before Interest and Taxes ")&$M$10,IF(AND($M$11="",$O$11="X",$Q$11=""),IF($T$11="X","Normalize ","Unadjusted ")&$O$10,IF(AND($M$11="",$O$11="",$Q$11="X")," "&$Q$12," EBIT, EBITDA or Other Method"))),"EBIT","(EBIT)")
0
Saurabh Singh TeotiaCommented:
You can simply do this to get what you are looking for...

=IF(AND($M$11="X",$O$11="",$Q$11=""),IF($T$11="X","Normalized Earnings Before Interest and Taxes ","Unadjusted Earnings Before Interest and Taxes ")&"""" &$M$10 &"""",IF(AND($M$11="",$O$11="X",$Q$11=""),IF($T$11="X","Normalize ","Unadjusted ")&$O$10,IF(AND($M$11="",$O$11="",$Q$11="X")," "&$Q$12," EBIT, EBITDA or Other Method")))

Saurabh...
0
Bill GoldenExecutive Managing MemberAuthor Commented:
I guess I should have been a little more specific.  Other times is will be the value of O10 which is EBITDA and sometimes Q10 which is definable.  
I was hoping to understand how to format in place, but will use Substitute on EBIT and EBITDA if you can show me how to have two substitutes instead of one.
Thanks.
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Saurabh Singh TeotiaCommented:
Did you try the formula which i told you??
0
Missus Miss_SellaneusCommented:
=SUBSTITUTE(SUBSTITUTE(IF(AND($M$11="X",$O$11="",$Q$11=""),IF($T$11="X","Normalized Earnings Before Interest and Taxes ","Unadjusted Earnings Before Interest and Taxes ")&$M$10,IF(AND($M$11="",$O$11="X",$Q$11=""),IF($T$11="X","Normalize ","Unadjusted ")&$O$10,IF(AND($M$11="",$O$11="",$Q$11="X")," "&$Q$12," EBIT, EBITDA or Other Method"))),"EBIT","(EBIT)") ,"EBITDA","(EBITDA)")
0
Bill GoldenExecutive Managing MemberAuthor Commented:
Saurabh...

Your solution get "s around "EBIT", not (EBIT).  I inserted a ( on the left and ) on the right and then got "(EBIT)"....but every time I tried to get rid of the ", I got and error.
0
Bill GoldenExecutive Managing MemberAuthor Commented:
Sorry, when I inserted a ( on the left and ) on the right and then got ("EBIT")....still looking for just (EBIT)
0
Missus Miss_SellaneusCommented:
Did you try my latest one?
0
Saurabh Singh TeotiaCommented:
=IF(AND($M$11="X",$O$11="",$Q$11=""),IF($T$11="X","Normalized Earnings Before Interest and Taxes ","Unadjusted Earnings Before Interest and Taxes ")&"(" &$M$10 &")",IF(AND($M$11="",$O$11="X",$Q$11=""),IF($T$11="X","Normalize ","Unadjusted ")&$O$10,IF(AND($M$11="",$O$11="",$Q$11="X")," "&$Q$12," EBIT, EBITDA or Other Method")))

Saurabh...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Saurabh Singh TeotiaCommented:
Okay so if the problem if i understand correct if M10 has double quotes in it..it shows...

as in if the value is "EBIT"

it shows ("EBIT") is my understanding correct?? You want to show it as (EBIT) rather..let me know if have missed something...
0
Bill GoldenExecutive Managing MemberAuthor Commented:
Thanks guys. Both technically worked but went with Saurabh's for simplicity. Most important thing is the I learned something new.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.