# Excel formula help

Need help

if a=0 then b=0 if a=16 then b=(16-8.5)*.75 - can you put this in an excel format
###### Who is Participating?

x
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.

Commented:
So "a" is a cell that is already filled in and b is where the formula is?

What if "a" is neither 0 nor 16, do you want just an empty string put into b, or 0?
Commented:
This will put 0 into the "b" cell if a is neither 0 nor 16.

Substitute the cell reference for a.

=IF(a=0,0,IF(a=16,(16-8.5)*.75,0))

Experts Exchange Solution brought to you by

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

Commented:
If you target cell is A1, put this in B1:

=IF(OR(A1=0,A1<>16),0,(16-8.5)*0.75 )

Flyster
Author Commented:
thank you so much! It worked!
###### 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.