Average if there is a count above 2

Lulu1000

New Member
Joined
Apr 23, 2021
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hi all,

Hoping for some help with a formula please. I have an averageifs formula that works fine looking for an average with two criteria. My issue is I only want this function to work if a name appears more than 2 times for everything else I just want it to be blank. I have uploaded an example picture (sadly couldn't use the add in) in column A is the names the averageifs is in E2 but I want this to only happen if the Name in Column A appears more than twice for Type AA.

Is this possible?

Many thanks in advance.
 

Attachments

  • Excel.PNG
    Excel.PNG
    39.4 KB · Views: 27

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Also your image is at odds with your description, as the names appear to be in col C not A & there is no Type AA
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Also your image is at odds with your description, as the names appear to be in col C not A & there is no Type AA
Thank you, I uploaded the wrong image which doesn't help :( not sure how to amend the original post but added on here. also updated my account to show its 365 thank you.
 

Attachments

  • excel example.PNG
    excel example.PNG
    41.5 KB · Views: 16
Upvote 0
Thanks for that, how about
Excel Formula:
=IF(COUNTIFS(A:A,D2,C:C,E1)<2,"",AVERAGEIFS(B:B,A:A,D2,C:C,E1))
 
Upvote 0
Solution
Thanks for that, how about
Excel Formula:
=IF(COUNTIFS(A:A,D2,C:C,E1)<2,"",AVERAGEIFS(B:B,A:A,D2,C:C,E1))
If they truly want to average only if the count is more than 2 times (like the say), then this formula will need to be amended slightly:
Rich (BB code):
=IF(COUNTIFS(A:A,D2,C:C,E1)<=2,"",AVERAGEIFS(B:B,A:A,D2,C:C,E1))
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,876
Members
452,363
Latest member
merico17

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