Formula Help

Hello All, I have the formula below, I am trying to figure out a way to code it so if E14=0, then in the formula, make E14=.01 (formula b), if E12=0 then formula C, if both E14 and E12 are  0,  then formula D


((((6.11*10*(7.5*E14/(237.7+E14))/(6.11*10*(7.5*E12/(237.7+E12))))
)))*100

Formula B
((((6.11*10*(7.5*.01/(237.7+.01))/(6.11*10*(7.5*E12/(237.7+E12))))
)))*100

Formula C
((((6.11*10*(7.5*E14/(237.7+E14))/(6.11*10*(7.5*.01/(237.7+.01))))
)))*100

Formula D
((((6.11*10*(7.5*.01/(237.7+.01))/(6.11*10*(7.5*.01/(237.7+.01))))
)))*100
sandramacAsked:
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.

cyberkiwiCommented:
((((6.11*10*(7.5*E14/(237.7+IF(E14=0,0.01,E14)))/(6.11*10*(7.5*E12/(237.7+IF(E12=0,0.01,E12)))))
)))*100
0
cyberkiwiCommented:
Basically for each one, instead of

E14

You get the value from

IF(E14 = 0, 0.01, E14)

so that when E14 is non-zero, it is still E14, but if it is zero, you get 0.01
0
byundtMechanical EngineerCommented:
I believe that you can do the job with two IF functions (rather than the four required by cyberkiwi's approach) if you eliminate the common factors and extra parentheses:
=IF(E14=0,0.01/(237.7+0.01),E14/(237.7+E14))/IF(E12=0,0.01/(237.7+0.01),E12/(237.7+E12))
*100

or the even simpler:
=IF(E14=0,0.01/237.71,E14/(237.7+E14))/IF(E12=0,0.01/237.71,E12/(237.7+E12))
*100
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
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

wchhCommented:

= ((((6.11*10*(7.5*IF(E14=0,0.01,E14)/(237.7+IF(E14=0,0.01,E14)))/(6.11*10*(7.5*IF(E12=0,0.01,E12)/(237.7+IF(E12=0,0.01,E12))))))))*100
0
wchhCommented:
Change all E14 to 0.01 for E14 = 0, (this formula contains 2 E14)
Change all E12 to 0.01 for E12 = 0, (this formula contains 2 E12)
Thus, the formula is
= ((((6.11*10*(7.5*IF(E14=0,0.01,E14)/(237.7+IF(E14=0,0.01,E14)))/(6.11*10*(7.5*IF(E12=0,0.01,E12)/(237.7+IF(E12=0,0.01,E12))))))))*100
0
byundtMechanical EngineerCommented:
Or even a few characters less, though with logic a trifle harder to see:
=IF(E14=0,1/23771,E14/(237.7+E14))/IF(E12=0,1/23771,E12/(237.7+E12))*100
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.