Countifs

Russk68

Well-known Member
Joined
May 1, 2006
Messages
589
Office Version
  1. 365
Platform
  1. MacOS
Hi All,
I thought this would work:
=COUNTIFS(AW3:BF522,D2,AV3:AV522,C3)
The D2 criteria can be found in multiple columns and C3 criteria is in just found in 1 column.

Help!

Thank you!

Russ
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Sample data with expected results (even if you have to manually enter the expected results) would help a lot? Even just a few rows...AV to BF isn't all that many columns to make up :)
 
Upvote 0
That's exactly as COUNTIFS is designed to do. It will correlate AV3:AV522 with the first column of AW3:BF522.

The following might be your intent. Control+shift+enter, not just enter:

=SUM(IF(AW3:BF522=D2,IF(AV3:AV522=C3,1)))

If you are afraid of control+shift+enter...

=SOMPRODUCT((AW3:BF522=D2)*(AV3:AV522=C3))
 
Upvote 0
Actually, It seems to me that array formulas take long to calculate and I try not to use them.
Are there pros and cons between your 2 formulas?
 
Upvote 0
Actually, It seems to me that array formulas take long to calculate and I try not to use them.
Are there pros and cons between your 2 formulas?

Not much, because a SUMPRODUCT formula is also an array-processing formula, without control+shift+enter in this case.
 
Upvote 0

Forum statistics

Threads
1,223,970
Messages
6,175,699
Members
452,667
Latest member
vanessavalentino83

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