Merging formula!

krispatterson

Board Regular
Joined
Apr 28, 2017
Messages
51
My main problem / lack of knowledge with Excel is getting formulas that look at multiple things to work. I really struggle with it... I've got 2 different formulas, but have no idea how to make it work as one...

data is as follows:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E (Chris)[/TD]
[TD]F (Joe)[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]05/01/17[/TD]
[TD]Joe[/TD]
[TD]1%[/TD]
[TD]01/12/16[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]15/01/17[/TD]
[TD]Chris[/TD]
[TD]1.25%[/TD]
[TD]01/01/17[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]12/12/16[/TD]
[TD]Chris[/TD]
[TD]1.5%[/TD]
[TD]01/02/17[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]02/01/17[/TD]
[TD]Chris[/TD]
[TD]1.5%[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]19/12/16[/TD]
[TD]Joe[/TD]
[TD]1%[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]22/01/17[/TD]
[TD]Joe[/TD]
[TD]1.5%[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]27/01/17[/TD]
[TD]Chris[/TD]
[TD]1.25%[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Individual formulas I'm using are:

=COUNTIFS(A:A,">="&D1,A:A,"<"&EDATE(D1,1),B:B,"chris")
This counts how many instances of "chris" occur in a month date range.

=AVERAGE(C:C)
This averages the percentages of C.


What I'm trying to achieve in E1 is a formula that:
> looks at all dates in 12/16
> filters for just "Chris" / "Joe"
> averages out the column C

So, results:
> E1 will be 1.5%
> F1 will be 1%
> E2 will be 1.33%
> F2 will be 1.25%


Is that possible? Thanks :D
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Try Averageifs

=AVERAGEIFS(C2:C8,B2:B8,E1,A2:A8,">="&D2,A2:A8,"<"&D3) or
=AVERAGEIFS(C2:C8,B2:B8,E1,A2:A8,">="&D2,A2:A8,"<="&EOMONTH(D2,0))
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,312
Members
452,634
Latest member
cpostell

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