SUM CountIFS

dragonmouse

Board Regular
Joined
May 14, 2008
Messages
129
Office Version
  1. 2016
Platform
  1. Windows
Simple question for the Pro's.

I have two columns A and B. Both Columns may contain Letters A-D. I want to count all the "A" In Column A and all the "A" in column B then add them together.

I tried using =COUNTIFS($A:$A,"A",$B:$B,"A") however it would only count one column. I tried using =SUM(COUNTIFS($A:$A,"A",$B:$B,"A")) but it's still only counting one column.

Priority (column A)New Pri (Column B)"A" PRI Count (formula)
AB
1​
AA
2​
BA
1​
CA
1​
DA
1​
AA
2​
BC
BC
BD
CA
1​
 
You should avoid using whole column references, especially in array formulas which that is.
 
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
This did not work=IF(A2="A"...) gave me an error that it didn't recognize it as a formula

=SUMPRODUCT(($A:$A="A"))+($C:$C="A")) worked. A slight modification to "Fluff's" formula but the essence worked
Works for me... I do not know why it is not working for you
Anyways you have found the solution by @Fluff
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,843
Members
449,051
Latest member
excelquestion515

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