# help with a excel 2010 formula

Hello,

I need help with an excel formula.

I am trying to use the below formula:

=IF(D3,D4 = 0, "PLEASE ORDER 4 TONERS", "")

So if both cell D3 and D4 have a value of 0 a message (PLEASE ORDER 4 TONERS) will appear in the cell with the formula.

But i am recieveing an error saying that ive entered too many arguments for this function.

If I make the formula like this:

=IF(D3,D4 = 0, "PLEASE ORDER 4 TONERS")

The formula works fine and and when both values are at 0 it will display the message. But when both of the values dont equal 0 i get a value of "TRUE" which i dont want, as if both cells dont equal 0 i want the value in the box to display nothing.

Regards,
N
LVL 1
###### 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:
HI,

pls try

=IF(AND(D3=0,D4=0), "PLEASE ORDER 4 TONERS", "")

Regards

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:
Alternatively you can use this too..

=IF(sum(D3,D4)= 0, "PLEASE ORDER 4 TONERS", "")

Saurabh...
Information TechnologyAuthor Commented:
Thank you.
###### 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.