Filtering in Excel with Cumulative Value

akpflow

New Member
Joined
Aug 2, 2016
Messages
9

<tbody></tbody>
Player (Filter)
Competition (Filter)
Venue (Filter)
Bonus
Gross Bonus
VardyEPLHome5050
HuthFA cupAway3080
FuchsCarling CupHome25105
GrayChampion LeagueHome70175
VardyChampion LeagueAway100275
GrayCarling CupHome25300
HuthEPLHome50350
VardyCarling CupHome25375

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>


The above table shows players name, competition, venue, bonus and gross bonus. The gross bonus is the cumulative sum of the bonus. If I make a selection using a filter (Player name), The gross bonus doesn't respond to the filter selection.
PlayerCompetitionVenueBonusGross Bonus
VardyEPLHome5050
VardyChampion LeagueAway100275
VardyCarling CupHome25375

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>
How can I fix this challenge?
Please I need your help. Thanks in advance...
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
So, in your example above you indicate that the Gross Bonus is cumulative, however the example gross bonus does not equal to the increasing amount of the bonus... Are you saying for example that Vary's 3 Gross Bonuses should equal what you have there, or you need them to equal 50, then 150, then 175?
 
Upvote 0
If it is the latter above, then try this formula... assuming your data is in Columns A - D and the gross bonus is in E paste this in Cell E2 and drag down

Code:
=SUMIF(A$2:$A2,A2,D$2:D2)
 
Upvote 0
If it is the latter above, then try this formula... assuming your data is in Columns A - D and the gross bonus is in E paste this in Cell E2 and drag down

Code:
=SUMIF(A$2:$A2,A2,D$2:D2)

@dchaney.. thank you for your response
But it didn't give me the desired result,
The first table is showing the original state. The columns (players, Competition, Venue) are all filter that can help me narrow my search and see key information.
For example, I want to see Huth bonus.... Huth's bonus (only Huth is selected at the player's filter) is 30+50 = 80.
Someone might want to see his bonus at EPL competition only (only EPL is selected at the competition's filter) is 50 and so on...
I guess you understand now.. or better still I can I share a demo file of xl doc here?
 
Upvote 0
Here you go, it was AGGREGATE function that you need for this :) Put formula in F2 and drag it below then test it by using filter to compare with G :)



Excel 2010 32 bit
ABCDEF
1Player (Filter)Competition (Filter)Venue (Filter)BonusGross BonusGross only visible
2VardyEPLHome505050
3HuthFA cupAway308080
4FuchsCarling CupHome25105105
5GrayChampion LeagueHome70175175
6VardyChampion LeagueAway100275275
7GrayCarling CupHome25300300
8HuthEPLHome50350350
9VardyCarling CupHome25375375
Feuil1
Cell Formulas
RangeFormula
F2=AGGREGATE(9,5,$D$1:D2)



When filtered :


Excel 2010 32 bit
ABCDEF
1Player (Filter)Competition (Filter)Venue (Filter)BonusGross BonusGross only visible
2VardyEPLHome505050
8HuthEPLHome50350100
Feuil1
 
Last edited:
Upvote 0
Hello sir, It worked... Thank you for your help....
Here you go, it was AGGREGATE function that you need for this :) Put formula in F2 and drag it below then test it by using filter to compare with G :)


Excel 2010 32 bit
ABCDEF
1Player (Filter)Competition (Filter)Venue (Filter)BonusGross BonusGross only visible
2VardyEPLHome505050
3HuthFA cupAway308080
4FuchsCarling CupHome25105105
5GrayChampion LeagueHome70175175
6VardyChampion LeagueAway100275275
7GrayCarling CupHome25300300
8HuthEPLHome50350350
9VardyCarling CupHome25375375

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Feuil1

Worksheet Formulas
CellFormula
F2=AGGREGATE(9,5,$D$1:D2)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>




When filtered :

Excel 2010 32 bit
ABCDEF
1Player (Filter)Competition (Filter)Venue (Filter)BonusGross BonusGross only visible
2VardyEPLHome505050
8HuthEPLHome50350100

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Feuil1
 
Upvote 0

Forum statistics

Threads
1,215,336
Messages
6,124,329
Members
449,155
Latest member
ravioli44

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