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:

ABCDE (Chris)F (Joe)
105/01/17Joe1%01/12/16
215/01/17Chris1.25%01/01/17
312/12/16Chris1.5%01/02/17
402/01/17Chris1.5%
519/12/16Joe1%
622/01/17Joe1.5%
727/01/17Chris1.25%

<tbody>
</tbody>

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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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
Try averageifs

=AVERAGEIFS(C:C,A:A,">="&D2,A:A,"<"&EDATE(D2,1),B:B,"chris")
 
Upvote 0

Forum statistics

Threads
1,216,106
Messages
6,128,863
Members
449,473
Latest member
soumyahalder4

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