Logic Statements

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

Guest

I need a little help with my logic statement. I want for it to display a
"1.0" if the calculation is less than zero and to display the real number if
greater than zero. This is as far as I can get.
Thanks!
=IF((((D12*$O$4)-Y12)/$AB$4)>0,,"1.00")
 
=IF((((D12*$O$4)-Y12)/$AB$4)>0,"(((D12*$O$4)-Y12)/$AB$4),"1.0")

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
That didn't work unfortunately, it just tells me that there is an error with
the formula and wants to add a second set of quotes around "1.0". When I
accept it, it just makes all the values say the word "False".
 
Okay, I fixed that to:
=IF((((D12*$O$4)-Y12)/$AB$4)>0,"(((D12*$O$4)-Y12)/$AB$4),"1.0")
But it changes all my calculations to 1.0 now regardless if it is positive
or negative.
 
My mistake. Try this

=IF((((D12*$O$4)-Y12)/$AB$4)>0,(((D12*$O$4)-Y12)/$AB$4),"1.0")



--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Darn, now I have two issues. I messed up my sign, it should be less than
zero, not greater than. But if I set it to greater than zero, all the figures
display 1.0. If I change it to less than zero, all the figures come out to be
-1.10.
 
seems to be all your formulas are giving you the answer -1.10

the formula shown should be correct, check your numbers... or sub in
real numbers to check the formula first..
 
No, the numbers are fine. I have used the same calculation to compute the
numbers before pasting this new formula into the same cell. None of them
equal -1.10.
 
It works for me mate!

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
My copy of the spreadsheet must've been corrupted. It worked on my other copy.

Thanks for your help.
 

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

Back
Top