#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default if formula

=IF(C15D15,-5,5)

I am using the preceding formula. How do I change it to reflect the
scenerio of "if c15=d15 than 0" ???

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default if formula

Try this:

=IF(C15=D15,0,IF(C15D15,-5,5))

Biff

"Rynefan" wrote in message
...
=IF(C15D15,-5,5)

I am using the preceding formula. How do I change it to reflect the
scenerio of "if c15=d15 than 0" ???

Thanks in advance



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default if formula

=IF(C15=D15,0,IF(C15D15,-5,5))

"Rynefan" wrote:

=IF(C15D15,-5,5)

I am using the preceding formula. How do I change it to reflect the
scenerio of "if c15=d15 than 0" ???

Thanks in advance

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default if formula

One way:

=5*SIGN(D15-C15)

In article ,
Rynefan wrote:

=IF(C15D15,-5,5)

I am using the preceding formula. How do I change it to reflect the
scenerio of "if c15=d15 than 0" ???

Thanks in advance

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default if formula

Try =IF(C15d15,-5,IF(C15=D15,0,5)

"Rynefan" wrote:

=IF(C15D15,-5,5)

I am using the preceding formula. How do I change it to reflect the
scenerio of "if c15=d15 than 0" ???

Thanks in advance

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



All times are GMT +1. The time now is 03:14 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"