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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
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,214,954
Messages
6,122,461
Members
449,085
Latest member
ExcelError

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