#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default conditional formulas

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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 36
Default conditional formulas

=if(I12N12,J12=(N12-D12),J12=(I12-D12))

"Danno" wrote:

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.

  #3   Report Post  
Posted to microsoft.public.excel.misc
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.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default conditional formulas

Thanks, but that just returns "FALSE" and doesn't do the calculations.

"JasonP CCTM LV" wrote:

=if(I12N12,J12=(N12-D12),J12=(I12-D12))

"Danno" wrote:

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.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default conditional formulas

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

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

--


Regards,


Peo Sjoblom

"Danno" wrote in message
...
Thanks, but that just returns "FALSE" and doesn't do the calculations.

"JasonP CCTM LV" wrote:

=if(I12N12,J12=(N12-D12),J12=(I12-D12))

"Danno" wrote:

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.





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default conditional formulas

=MIN(I12,N12)-D12
--
David Biddulph

"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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formulas Louise Excel Worksheet Functions 8 June 12th 08 10:51 PM
Conditional formulas HARSH BAHAL Excel Discussion (Misc queries) 1 October 4th 07 09:11 AM
Conditional use of formulas Nate MMI Excel Worksheet Functions 2 September 27th 06 11:00 PM
Conditional Formulas Craig Koon Excel Worksheet Functions 0 August 24th 06 11:36 PM
Conditional Formulas Maybe? jrose Excel Discussion (Misc queries) 3 April 25th 06 12:12 PM


All times are GMT +1. The time now is 10:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"