Counting Formula for numbers in multiple columns

kpross

New Member
Joined
Oct 8, 2006
Messages
1
I have two columns of numbers. Column A contains the numbers 1 and 2. Column B contains the numbers 1, 2, and 3. There are 288 numbers in each column starting on row 2 and ending on row 289. I need to know how to write a formula that will count the number of times that number 1 appears in column A and number 3 appears in column B at the same time. Does anyone have any suggestions.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
Hi Kpross

Welcome to the Board!

=SUMPRODUCT(--(A2:A289=1),--(B2:B289=3))

Best regards

Richard
 

Forum statistics

Threads
1,181,941
Messages
5,932,898
Members
436,869
Latest member
ABGTH

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