View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Otto Moehrbach Otto Moehrbach is offline
external usenet poster
 
Posts: 1,090
Default If Statement returns true when false?

I don't think that formula is written to do what you want it to do. State
in words what you want that formula to do. In detail. HTH Otto
"Eric" wrote in message
...
Here is the formula I am using
G21=5188
G22=10
G24=.12
G28=5188
G29-1556
=IF(G28<G22=SUM(G28:G29),G24*(G22-G21),IF(G22<G21,0,G29*G24))

Why does the statement start false and turn true? If it starts false
shouldn't it stay false no matter what the rest of the logical test says?
So
what kind of logical test do i need to write so that if either part is
false
then the statement is false?