Excel -- texting formatting issue in formula


I am using text formatting in a formula.   Per attached XLS, the combination of cell referencing and text formatting results in some erroneous output.

That is, cell range H2:H4 has input values.   Once I include these references, however, the cell output differs.   The attached XLS provides more detail on this issue.

My question: Is there anything wrong with the **formatting** (text in formula) that causes the incorrect output?   If so, how can this be fixed?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Try this....

="Y-bar = "&TEXT(K17,"#,###.#")&" + ("&TEXT(K18,"#,###.#")&") ("&H2&")"&" + ("&TEXT(K19,"#,###.#")&") ("&H3&")"&" + ("&TEXT(K20,"#,###.#")&") ("&H4&")"

Open in new window

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
ExpExchHelpAnalystAuthor Commented:
Perfect!!!   Thank you so much for the prompt help... :)
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
You're welcome. Glad I could help. :)
Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.

ExpExchHelpAnalystAuthor Commented:
I'm now working on similar configurations.   I already ran into a similar problem (again).   I compared the two formulae (yours and mine).   What exactly seemed to cause the problem?

Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
The Text Formula has two argument like =TEXT(value,format_text). In your previous formula the text function was not properly closed.

If you want to compare both the formulas and identify the changes between them, format two cells on your worksheet as Text and paste both the formulas in these two cells, that way you can easily identify the difference in them.
ExpExchHelpAnalystAuthor Commented:
Copy that .... thank you sktneer.
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
You're welcome.
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.