Ask for help for multiple criteria

Emily

Active Member
Joined
Aug 28, 2002
Messages
304
Dear All,

For the following data, how can I obtain the frequency if row 1 is C and row 2 is 1990.

A B C C C B C A C
1992 1990 1990 1923 1990 2050 1901 1990 1991
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Emily

Active Member
Joined
Aug 28, 2002
Messages
304
Thanks.
I never thought using "SUMPRODUCT". Is it possible to use COUNTIF instead?
 

Yogi Anand

MrExcel MVP
Joined
Mar 12, 2002
Messages
11,454
Aladin's formula is elegant and efficient. Just to add some alternates that are not so efficient in this case ...

{=SUM(IF((A1:I1="c")*(A2:I2=1990),1,0))}

or

{=SUM(IF(A1:I1="C",IF(A2:I2=1990,1,0),0))}

Regards!

Yogi
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,867
Messages
5,834,079
Members
430,260
Latest member
MANICX100

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
Top