View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier[_3_] Roger Govier[_3_] is offline
external usenet poster
 
Posts: 2,480
Default conditional formulas

Hi Danno

In cell J12 enter
=IF(I12N12,N12-D12,I12-D12)

You don't say what you want to happen if I12=N12.
You could change the above to
=IF(I12=N12,N12-D12,I12-D12)
which would make the result N12-D12 if I12=N12

If on the other hand, you wanted a different result altogether if they were
equal, then you would have to use
=IF(I12N12,N12-D12,IF(I12<N12,I12-D12,"something else"))
replace "something else" with the result you want to see.
--
Regards
Roger Govier

"Danno" wrote in message
...
Anyone know how to write a formula for this?

IF(I12N12) then J12=(N12-D12) but if(I12<N12) then J12=(I12-D12)

where I12 is derived from another formula (=SUMC12+M12) and C12, M12 and
N12
are simply input numbers.