Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
sonicj
 
Posts: n/a
Default IF Function not working

The first and second IF functions are working, but not the third:
=IF(B1<B2,C1*.005,IF(B1=B2,C1*.01,IF(B1=B3,C1*.0 12)))
I assume it has something to do with the = but I don't know another way.
Thank you.
  #2   Report Post  
galimi
 
Posts: n/a
Default

There is no indication on what action should be taken if B1<B3, the False
condition

http://HelpExcel.com

"sonicj" wrote:

The first and second IF functions are working, but not the third:
=IF(B1<B2,C1*.005,IF(B1=B2,C1*.01,IF(B1=B3,C1*.0 12)))
I assume it has something to do with the = but I don't know another way.
Thank you.

  #3   Report Post  
Bill Martin -- (Remove NOSPAM from address)
 
Posts: n/a
Default

sonicj wrote:
The first and second IF functions are working, but not the third:
=IF(B1<B2,C1*.005,IF(B1=B2,C1*.01,IF(B1=B3,C1*.0 12)))
I assume it has something to do with the = but I don't know another way.
Thank you.


As I understand the logic of your expression it can never get to the
third branch (which seems to be what you're experiencing).

1) if B1 < B2, THEN Case1

2) If B1 = B2 THEN Case2

3) Can't ever get to Case3. ALL cases will be trapped by 1 or 2.

If you understand K Maps for logic design, apply one to your equations
and it will leap right off the paper at you.


Perhaps you intended:

= IF(B1<B2,C1*.005,IF(B1=B3,C1*.012,C1*.01))

Good luck...

Bill
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
Function in xl2003 not working in xl97 Adam Excel Discussion (Misc queries) 2 January 26th 05 03:19 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
Maskerr function not working on my new computer - help? Russo Excel Worksheet Functions 1 November 30th 04 11:03 PM
Sum function not working correctly in Excel (Skips Cell) Tony Excel Worksheet Functions 5 November 29th 04 11:52 PM
COUNTA Function not working =COUNTA(C3:C69,"NH") MikeinNH Excel Worksheet Functions 2 November 8th 04 01:19 AM


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