Formula to return count and average for specified column headers

cjcass

Well-known Member
Joined
Oct 27, 2011
Messages
679
Office Version
  1. 2016
Platform
  1. Windows
Hi,
I'm looking for two formulas if possible.
The formulas need to look up column headers and return results for rows that meet the variable criteria specified.
Cell K16 returns the count for rows that meet all the criteria given in J8:K15.
Cell K19 returns the average for the cells in the column detailed in K18 for the rows identified in the the criteria given in J8:K15.
Please note that the data B4:H25 will have gaps (data missing) so these rows need to be ignored if they are not complete and the criteria in J8:K15 will vary in number of entries.
I'm really looking for a formula solution (not vba) in this instance if possible.
I cannot see how to attached the file so I have given the screenshot only.
Any help much appreciated.
Capture2.PNG
 
Ok Peter, understood re. the extra column and thanks for the detailed explanation.
Thanks DA for the Pivot Table option - I'll have a look at that it may well be an option.
Regards,
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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