Working with logical functions

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am Working with Excel 2003 using the IF operator where the correct result
appears but the value doesn't make sense to me. Using the following:
=IF(C9<F9,"0",C9-F9) where C9 is 600,000 and F9 is the product of
10,000,000*.07 which is 700,000 the result is correctly the number zero (0).

The trouble is if I attempt to use that cell for additional calculations the
value (0) is greater than any positive number. What am I missing?
 
Remove the quotations ,"0" and use 0 instead, you made the zero into text
and text is seen as greater than any numbers


--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)
 
=IF(C9<F9,"0",C9-F9)

Remove the quotes " " from around the 0.

=IF(C9<F9,0,C9-F9)

Enclosing numbers in quotes makes them TEXT. TEXT will always evaluate to be
greater than ANY number.

"0" > 1,000,000,000,000,000,000,000 = TRUE

Biff
 
You're entering 0 as text. Try eliminating the quotation marks around it.
 
=IF(C9<F9,"0",C9-F9)

Maybe an alternative if you prefer:

=MAX(C9-F9,0)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top