Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
IntricateFool
 
Posts: n/a
Default Rebate incentive - Multiple tier payback - Confusing if Statement

I need to design a model to calculate rebate refunds and in doing so I have
run into some problems. Basically here is what I am trying to do...

For 100mg - $5
For 100mg + 200mg - $15
For 100mg + 200mg + 300mg - $40

The incentive only applies when you order all products together. Cannot
order 100mg + 300mg and get money back. Or 200mg+300mg. Must be 100mg,
100mg+200mg, or 100mg+200mg+300mg for incentive to apply.

First example is easy:
A B C D E
1] Item | Item Qty | Eligible Units | Rebate $ |Total Return
2] 100mg | 218 | 4 | $ 5 | $ 20
3] 200mg | 214 | 1 | $ 15 | $ 15
4] 300mg | 213 | 213 | $40 | $ 8520

In cell "C2" =IF(B2-B3<0,0,B2-B3)
In cell "C3" =IF(B3-B4<0,0,B3-B4)
In cell "C4" =B4

So here you get $40 * 213 units, $15* 1 unit, $5 * 4 units. Easy to do with
some very basic if statements. Everything works out fine in this example.

The problem I am having is when I get to a problem like below
Second example:
A B C D
E
Item | Item Qty | Eligible Units | Rebate $ |Total Return
5] 100mg | 100 | ? | $ 5 | ?
6] 200mg | 105 | ? | $ 15 | ?
7] 300mg | 94 | 94 | $40 | $3760

Here the values should be $40 *94 units = $3760, $15*6 units = $90, $5*0
units = $0. These are the values I need to find, but am having trouble with
if statements. I remember in one of classes back in college we had a problem
like this, just can't remember how it was done.

I need a model that will be able to generate the calculations based on the
incentive criteria. In the second example the initial if statements will not
apply because you only get the rebate refund if you have one of each dosage
ordered. Can anyone figure out an if statement that will be able to figure
out my calculated values like in example 2? Remember you can only receive $40
if 100mg+200mg+300mg are ordered, $15 if 100mg + 200mg ordered, and $5 if
just 100mg ordered. Please someone help me out here. I am going crazy.



  #2   Report Post  
Posted to microsoft.public.excel.misc
Mikeopolo
 
Posts: n/a
Default Rebate incentive - Multiple tier payback - Confusing if Statement


In the second example you have shown, I would have thought that the $5
would apply to 6 units (100-94), and that the $15 would apply to 5
units (105-100).

Am I missing something - further examples might help!

Regards
Mike


--
Mikeopolo
------------------------------------------------------------------------
Mikeopolo's Profile: http://www.excelforum.com/member.php...o&userid=18570
View this thread: http://www.excelforum.com/showthread...hreadid=527325

  #3   Report Post  
Posted to microsoft.public.excel.misc
Morrigan
 
Posts: n/a
Default Rebate incentive - Multiple tier payback - Confusing if Statement


Is this what you want? See attachment.


IntricateFool Wrote:
I need to design a model to calculate rebate refunds and in doing so I
have
run into some problems. Basically here is what I am trying to do...

For 100mg - $5
For 100mg + 200mg - $15
For 100mg + 200mg + 300mg - $40

The incentive only applies when you order all products together.
Cannot
order 100mg + 300mg and get money back. Or 200mg+300mg. Must be 100mg,
100mg+200mg, or 100mg+200mg+300mg for incentive to apply.

First example is easy:
A B C D E
1] Item | Item Qty | Eligible Units | Rebate $ |Total Return
2] 100mg | 218 | 4 | $ 5 | $
20
3] 200mg | 214 | 1 | $ 15 | $
15
4] 300mg | 213 | 213 | $40 | $ 8520

In cell "C2" =IF(B2-B3<0,0,B2-B3)
In cell "C3" =IF(B3-B4<0,0,B3-B4)
In cell "C4" =B4

So here you get $40 * 213 units, $15* 1 unit, $5 * 4 units. Easy to do
with
some very basic if statements. Everything works out fine in this
example.

The problem I am having is when I get to a problem like below
Second example:
A B C D
E
Item | Item Qty | Eligible Units | Rebate $ |Total Return
5] 100mg | 100 | ? | $ 5 |
?
6] 200mg | 105 | ? | $ 15 |
?
7] 300mg | 94 | 94 | $40 |
$3760

Here the values should be $40 *94 units = $3760, $15*6 units = $90,
$5*0
units = $0. These are the values I need to find, but am having trouble
with
if statements. I remember in one of classes back in college we had a
problem
like this, just can't remember how it was done.

I need a model that will be able to generate the calculations based on
the
incentive criteria. In the second example the initial if statements
will not
apply because you only get the rebate refund if you have one of each
dosage
ordered. Can anyone figure out an if statement that will be able to
figure
out my calculated values like in example 2? Remember you can only
receive $40
if 100mg+200mg+300mg are ordered, $15 if 100mg + 200mg ordered, and $5
if
just 100mg ordered. Please someone help me out here. I am going crazy.



+-------------------------------------------------------------------+
|Filename: incentive.zip |
|Download: http://www.excelforum.com/attachment.php?postid=4536 |
+-------------------------------------------------------------------+

--
Morrigan
------------------------------------------------------------------------
Morrigan's Profile: http://www.excelforum.com/member.php...fo&userid=7094
View this thread: http://www.excelforum.com/showthread...hreadid=527325

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
Reference multiple cells in if statement PAR Excel Worksheet Functions 1 June 10th 05 06:28 AM
IF Statement equalling multiple words. Please Help Phillip Vong Excel Discussion (Misc queries) 4 March 18th 05 12:43 AM


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

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

About Us

"It's about Microsoft Excel"