# Excel formul if else

Hi
My brain is just not working today - been a long week

I need this formula please to always equal 0 if G9 is less than zero

=IF(H9=TRUE,G9,1000)

So something like    if G9<0,0   else  =IF(H9=TRUE,G9,1000)

Thanks
###### 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.

Analyst Assistant Commented:
Perhaps.

=IF(H9=TRUE,MAX(0,G9),1000)
1

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.

Excel & VBA ExpertCommented:
Or you may try nested Ifs like below...

``````=IF(G9<0,0,IF(H9=TRUE,G9,1000))
``````
0
Author Commented:
=IF(H907=FALSE,1000,IF(G907<0,0,IF(H907=TRUE,G907,1000)))

I came up with this in the end thanks based around your solution many thanks
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.