Count number of matches within a range of specific criteria

cgebke

New Member
Joined
Jul 5, 2011
Messages
23
I am trying to count the number of matches between tworanges (column A and L). The hard part is I need the ranges to first be sortedbased on certain criteria.
Now I know the basic matching formula I know is
=SUMPRODUCT(COUNTIF(A2:A2000,L25:L5000))

The below formula counts the number of rows given the criteriaI am trying to work within
=SUM(COUNTIFS(G:G,"E1",W:W,"3D",AS:AS,{"11","2C","2N","B1","C7","CF","KM"}))

I am trying to somehow look at column A and L within thecriteria above and count the number of matches there are.
Any assistance would be appreciated.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
I'm not sure i understand what you are trying to do.

See if this array formula is OK
=SUM(IF(ISNUMBER(MATCH(L25:L5000,IF(G2:G2000="E1",IF(W2:W2000="3D",IF(ISNUMBER(MATCH(AS2:AS2000,{"11","2C","2N","B1","C7","CF","KM"},0)),A2:A2000))),0)),1))
Ctrl+Shift+Enter

If it's not what you want, try showing us a small sample of your data along with the expected result.

M.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,991
Messages
6,175,818
Members
452,672
Latest member
missbanana

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