conditional formulas

D

Danno

Anyone know how to write a formula for this?

IF(I12>N12) 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.
 
R

Roger Govier

Hi Danno

In cell J12 enter
=IF(I12>N12,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(I12>N12,N12-D12,IF(I12<N12,I12-D12,"something else"))
replace "something else" with the result you want to see.
 
P

Peo Sjoblom

=if(I12>N12,N12-D12,I12-D12)

I assume you put J12 there because that is where you put this formula

--


Regards,


Peo Sjoblom
 

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

Format CONCATENATE 3
Return a "" value from a formular 3
Please help with dashes 4
Adding numbers from other sheets? 2
#N/A part deux 4
How do I continue this pattern in excel? 11
Add Condition to Formula 2
help 2

Top