Average Revenue per month

NYEXCEL1

Board Regular
Joined
Apr 17, 2013
Messages
123
I need assistance putting together a formula in a separate column that will give me the total average retainer for each client based upon the number of months below. Since there are duplicate months i cannot simply do an average. Tried doing an average if formula but need to embed something that eliminates the duplicates. For example, Client be average should be 1000 (3000 / 3 months)

Thank you in advance



ClientTeamMonthRevenue
Client ATeam AJune500
Client ATeam BJuly100
Client ATeam AJuly500
Client ATeam BAugust500
Client ATeam AAugust100
Client ATeam BSeptember500
Client ATeam ASeptember100
Client ATeam BOctober500
Client ATeam AOctober100
Client BTeam BJanuary800
Client BTeam AJanuary200
Client BTeam BFebruary800
Client BTeam AFebruary200
Client BTeam BMarch800
Client BTeam AMarch200

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

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Your formula for Client B would be
Code:
=SUMIF(A2:A16,"Client B",D2:D16)/SUMPRODUCT((A2:A16="Client B")*(C2:C16<>"")/(COUNTIFS(C2:C16,C2:C16,A2:A16,"Client B")+(A2:A16<>"Client B")))
 
Upvote 0
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
1
ClientTeamMonthRevenueJuneJulyAugustSeptemberOctoberJanuaryFebruaryMarch
2
Client ATeam AJune
500​
Client A
500​
300​
300​
300​
300​
3
Client ATeam BJuly
100​
Client B
500​
500​
500​
4
Client ATeam AJuly
500​
5
Client ATeam BAugust
500​
6
Client ATeam AAugust
100​
7
Client ATeam BSeptember
500​
8
Client ATeam ASeptember
100​
9
Client ATeam BOctober
500​
10
Client ATeam AOctober
100​
11
Client BTeam BJanuary
800​
12
Client BTeam AJanuary
200​
13
Client BTeam BFebruary
800​
14
Client BTeam AFebruary
200​
15
Client BTeam BMarch
800​
16
Client BTeam AMarch
200​

<tbody>
</tbody>

h2=IFERROR(AVERAGEIFS($D$2:$D$16,$A$2:$A$16,$G2,$C$2:$C$16,H$1),"") copy across and down
 
Upvote 0
perhaps you looking for something like this:


Excel 2013
ABCDEFG
1ClientTeamMonthRevenueAVG
2Client ATeam AJune500
3Client ATeam BJuly100ClientAVG
4Client ATeam AJuly500Client B1000
5Client ATeam BAugust500Client A580
6Client ATeam AAugust100
7Client ATeam BSeptember500
8Client ATeam ASeptember100
9Client ATeam BOctober500
10Client ATeam AOctober100
11Client BTeam BJanuary800
12Client BTeam AJanuary200
13Client BTeam BFebruary800
14Client BTeam AFebruary200
15Client BTeam BMarch800
16Client BTeam AMarch200
Sheet2
Cell Formulas
RangeFormula
G4{=AVERAGE(IFERROR(1/(1/SUMIFS($D$2:$D$16,$A$2:$A$16,$F4,$C$2:$C$16,{"Jan*";"Feb*";"Mar*";"Apr*";"May";"Jun*";"Jul*";"Aug*";"Sep*";"Oct*";"Nov*";"Dec*"})),FALSE))}
G5{=AVERAGE(IFERROR(1/(1/SUMIFS($D$2:$D$16,$A$2:$A$16,$F5,$C$2:$C$16,{"Jan*";"Feb*";"Mar*";"Apr*";"May";"Jun*";"Jul*";"Aug*";"Sep*";"Oct*";"Nov*";"Dec*"})),FALSE))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0
VBA Geek, this could work. if there a way to replace the months in the formula a reference a 12 cell table with the months in it. the data being collected will all be formatted to use the same full month spelling.
 
Upvote 0
Iam getting an error with the formula. Does the {} around the months automatically be entered when i use control shift enter? i thought those indicators only showed up on the outside on the entire formula
 
Upvote 0
The error is a Divide by zero error. seem like it is not recognizing the months. to be clear the months are listed as mm/dd/yy format and then formatting to show the full month. For example, 6/1/17 shows as June. not sure if that is causing the issue
 
Upvote 0

Forum statistics

Threads
1,214,780
Messages
6,121,527
Members
449,037
Latest member
tmmotairi

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