#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Nested IF statements

I am trying to calculate a graduated bonus using IF statements. My problem
is that it only recognizes the criteria for the last IF statement.

=IF((B25-D25)<12000,0,IF((B25-D25)12000<15000,((D25-J25)-12000)*0.25,IF((B25-D25)15000<17000,((B25-D25)-15000)*0.3+(3000*0.25),IF((B25-D25)17000,((B25-D25)-17000)*0.35+(3000*0.25)+2000*0.3))))

If production - sales < $12000 then $0 bonus
If production - sales $12000< $15000 then 25% over $12000
If production - sales $15000 < $17000 then 30% over $15000
If production - sales $17000 then 35%

How do I get the formula to stop at the lower limits of the criteria. Now
it just gives me a FALSE answer for anything under $17000.

Thanks for your help!!

NancyB
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Nested IF statements

See this:

http://mcgimpsey.com/excel/variablerate.html

--
Biff
Microsoft Excel MVP


"NancyB" wrote in message
...
I am trying to calculate a graduated bonus using IF statements. My problem
is that it only recognizes the criteria for the last IF statement.

=IF((B25-D25)<12000,0,IF((B25-D25)12000<15000,((D25-J25)-12000)*0.25,IF((B25-D25)15000<17000,((B25-D25)-15000)*0.3+(3000*0.25),IF((B25-D25)17000,((B25-D25)-17000)*0.35+(3000*0.25)+2000*0.3))))

If production - sales < $12000 then $0 bonus
If production - sales $12000< $15000 then 25% over $12000
If production - sales $15000 < $17000 then 30% over $15000
If production - sales $17000 then 35%

How do I get the formula to stop at the lower limits of the criteria. Now
it just gives me a FALSE answer for anything under $17000.

Thanks for your help!!

NancyB



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Nested IF statements

This part does not work
((B25-D25)12000<15000
you need an and to do something like that
and(B25-D2512000, B25-D25<15000)

That being said you can simplify something like this
=IF(B25-D25 < 12000, 0, IF(B25-D25 < 15000, "12 - 15", IF(B25-D25 < 17000,
"15 - 17", "Over 17")))
--
HTH...

Jim Thomlinson


"NancyB" wrote:

I am trying to calculate a graduated bonus using IF statements. My problem
is that it only recognizes the criteria for the last IF statement.

=IF((B25-D25)<12000,0,IF((B25-D25)12000<15000,((D25-J25)-12000)*0.25,IF((B25-D25)15000<17000,((B25-D25)-15000)*0.3+(3000*0.25),IF((B25-D25)17000,((B25-D25)-17000)*0.35+(3000*0.25)+2000*0.3))))

If production - sales < $12000 then $0 bonus
If production - sales $12000< $15000 then 25% over $12000
If production - sales $15000 < $17000 then 30% over $15000
If production - sales $17000 then 35%

How do I get the formula to stop at the lower limits of the criteria. Now
it just gives me a FALSE answer for anything under $17000.

Thanks for your help!!

NancyB

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Nested IF statements

Somwhere there is a J25 mentioned...

You need to replace IF((B25-D25)12000<15000 with And(). ..if you write
the formula in an order you dont need to mention both the conditions. If
value is more than 12000 then only it goes into the next IF statement...

=If((B25-D25)<12000,TRUE,IF((B25-D25)<15000,TRUE,IF((B25-D25)<17000,TRUE)




If this post helps click Yes
---------------
Jacob Skaria


"NancyB" wrote:

I am trying to calculate a graduated bonus using IF statements. My problem
is that it only recognizes the criteria for the last IF statement.

=IF((B25-D25)<12000,0,IF((B25-D25)12000<15000,((D25-J25)-12000)*0.25,IF((B25-D25)15000<17000,((B25-D25)-15000)*0.3+(3000*0.25),IF((B25-D25)17000,((B25-D25)-17000)*0.35+(3000*0.25)+2000*0.3))))

If production - sales < $12000 then $0 bonus
If production - sales $12000< $15000 then 25% over $12000
If production - sales $15000 < $17000 then 30% over $15000
If production - sales $17000 then 35%

How do I get the formula to stop at the lower limits of the criteria. Now
it just gives me a FALSE answer for anything under $17000.

Thanks for your help!!

NancyB

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
Nested IF statements Karrisac15 New Users to Excel 1 July 19th 07 08:06 PM
Nested IF statements TwoDot Excel Worksheet Functions 4 February 8th 07 12:17 AM
Nested if statements - is there a better way? masterbaker Excel Worksheet Functions 3 July 25th 06 04:59 PM
Help with Nested If Statements THEFALLGUY Excel Discussion (Misc queries) 6 September 3rd 05 10:03 AM
I want to use more than 7 nested if then statements IF I only had a brain for IF statements Excel Worksheet Functions 11 August 9th 05 01:28 AM


All times are GMT +1. The time now is 07:12 AM.

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"