Running Total Formula with Multiple Tiers

jdotwu

New Member
Joined
Feb 7, 2014
Messages
16
Hoping someone could help me out with a formula or macro to solve my issue.

I currently have a list of data that's listed as such
NameAmount
Bob100
Bob250
Bob300
Carl10
Carl40
Carl50
Carl110
Carl200
David1000

<tbody>
</tbody>

What I need to do is calculate the commission of each person but there are tiers.
Tier 1 (0-100) = 5%
Tier 2 (101 - 200) = 10%
Tier 3 (>201) = 20%

But it's always a running total. So I expect the end result to look like this
NameAmountTier 1Tier 2Tier 3
Bob100100
Bob250250
Bob300300
Carl1010
Carl4040
Carl5050
Carl11010010
Carl200200
David1000100100800

<tbody>
</tbody>

I can hard code the commission percentages next to each tier and sum at the end for total commission, but the part I do not know how to do, is how to get the numbers to populate in columns Tier 1, Tier 2 and Tier 3. I am currently doing this manually for about 300-400 rows and think that there must be an easier way.

Any help is appreciated!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
I'm not understanding the results you showed to Bob 250 and Carl 110

Shouldn't the results be like this?

Name​
Amount​
Tier 1​
Tier 2​
Tier 3​
Bob​
100​
100​
0​
0​
Bob​
250​
100​
100​
50​
Bob​
300​
100​
100​
100​
Carl​
10​
10​
0​
0
Carl​
40​
40​
0​
0​
Carl​
50​
50​
0​
0​
Carl​
110​
100​
10​
0​
Carl​
200​
100​
100​
0​
David​
1000​
100​
100​
800​

<tbody>
</tbody>


M.
 
Upvote 0
Sorry, I should've clarified. Because Bob 250 has already met the threshold for Tier 1, all of his subsequent payments will start with Tier 2.

Same for Carl 110. Carl 10, 40 and 50 met the Tier 1 limit. So Carl 110 starts on Tier 2.

I've since added a running total column. I know I need something like this to make this work, just not sure how everything fits together yet.

NameAmountRunning Total
Bob100100
Bob250350
Bob300650
Carl1010
Carl4050
Carl50100
Carl110210
Carl200410
David10001000

<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0
Still not clear (at least for me) :confused:
So what are the expected results to Bob 250, Carl 110, David 1000 etc for each tier?
Please, could you confirm if the expected results still are those you showed in post #1 ?
If not, show us the correct expected results.

M.
 
Last edited:
Upvote 0
The end result should look like this.

NameAmountTier 1Tier 2Tier 3
Bob100100
Bob250250
Bob300300
Carl1010
Carl4040
Carl5050
Carl11010010
Carl200200
David1000100100800

<tbody>
</tbody>


Let's walk through Bob 250 as an example. The tiers are 0-100, 100-200 and >200.
Bob 100 has already fully satisfied the threshold for tier 1. So when Bob 250 hits, he gets to start on Tier 2 right away, because Bob 100 satisfied Tier 1.

To simplify, let's imagine this:

NameAmountRunning TotalTier 1Tier 2Tier 3NameTier 1 ReasonTier 2 ReasonTier 3 Reason
Bob909090 BobTier 1 threshold has $100 left
Bob40049010100290BobTier 1 threshold has $10 leftTier 2 theshold has $100 leftRemaining Amount to Balance $400
Bob50540 50Bob Both Tier 1 and Tier 2 threshold has already been met
Carl101010 CarlTier 1 threshold has $100 left

<colgroup><col span="2"><col><col span="5"><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Sorry! You're right! Those are the numbers for Bob. I made an error when making up data.

But this is exactly why I want to automate this. Working on hundreds of rows a month, it's very easy to manually input the wrong amount like I did for Bob.

Me neither. I woulda thought ol' Bob'd be gettin':

AmountTier 1Tier 2Tier 3
Bob100100
Bob250100150
Bob300300

<tbody>
</tbody>
 
Upvote 0
So, i think, we now know the expected results


A
B
C
D
E
F
1
Name​
Amount​
Running Total​
Tier 1​
Tier 2​
Tier 3​
2
Bob​
100​
100​
100​
3
Bob​
250​
350​
100​
150​
4
Bob​
300​
650​
350​
5
Carl​
10​
10​
10​
6
Carl​
40​
50​
40​
7
Carl​
50​
100​
50​
8
Carl​
110​
210​
100​
10​
9
Carl​
200​
410​
200​
10
David​
1000​
1000​
100​
100​
800​

Are really these?
Thinking how to create a formula...

M.
 
Upvote 0
Yep! This is it!

So, i think, we now know the expected results


A
B
C
D
E
F
1
Name​
Amount​
Running Total​
Tier 1​
Tier 2​
Tier 3​
2
Bob​
100​
100​
100​
3
Bob​
250​
350​
100​
150​
4
Bob​
300​
650​
350​
5
Carl​
10​
10​
10​
6
Carl​
40​
50​
40​
7
Carl​
50​
100​
50​
8
Carl​
110​
210​
100​
10​
9
Carl​
200​
410​
200​
10
David​
1000​
1000​
100​
100​
800​

<tbody>
</tbody>


Are really these?
Thinking how to create a formula...

M.
 
Upvote 0
A​
B​
C​
D​
E​
F​
1​
100​
100​
1000000​
2​
Name
Amount
DoNotUse
Tier1
Tier2
Tier3
3​
4​
Bob
100​
100​
0​
0​
5​
Bob
250​
0​
100​
150​
6​
Bob
300​
0​
0​
300​
7​
Carl
10​
10​
0​
0​
8​
Carl
40​
40​
0​
0​
9​
Carl
50​
50​
0​
0​
10​
Carl
110​
0​
100​
10​
11​
Carl
200​
0​
0​
200​
12​
David
1000​
100​
100​
800​

In D4 and copied across and down,

=MIN(SUMIF($A$3:$A4, $A4, $B$3:B4) - SUMPRODUCT(($A$3:$A3 = $A4) * $C$3:$F3) - SUM($C4:C4), D$1 - SUMIF($A$3:$A3, $A4, D$3:D3))

D1 and E1 are the size of the tiers. F1 is an arbitrarily large number. Row 3 and col C blank.
 
Upvote 0

Forum statistics

Threads
1,216,172
Messages
6,129,290
Members
449,498
Latest member
Lee_ray

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top