Sum(countifs( with multiple array criteria

TimberMate

New Member
Joined
Jun 26, 2019
Messages
1
Hi All,

I have an excel spread sheet that summarises a Table of data, currently using the Sum(countifs()) functions to look up columns and Count the number of time specific Criteria are meet. two of the criteria are in the form of Arrays. i would like to change these to Named Ranges and referance them so i can more easily maintain the form.

Had a look around online with no luck. Tried a few versions of Sumproduct but couldn't figure it out.
SUM(COUNTIFS(InspectionCompany,{"Company 1","Company 2",...,"Company 8"},InspectionType,"Part of Inspection Title",InspectionCreatedBy,{"Name 1";...;"Name X"})))
in this case the Function works and i get the expected result But i would like to change the Company Array and CreatedBy Array to both be Named Ranges so i can just update the one spot and not have to worry about replicating the function. i don't have much experiance with VBA so would like to avoid that if i can.

Thanks.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Welcome to Mr Excel forum

Try something like this
=SUMPRODUCT(COUNTIFS(InspectionCompany,Range1,InspectionType,"Part of Inspection Title",InspectionCreatedBy,Range2))

where
Range1 is a horizontal named range that contains the companies
Range2 is a vertical named range that contains the names

Hope this helps

M.



 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,383
Members
448,956
Latest member
JPav

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