Multiple CountIfs

sammipd

Board Regular
Joined
Jun 6, 2010
Messages
69
I have a large spreadsheet (to ER3500) and need to count specific columns with non-blank cells across the rows. I have tried several CountIf and CountIfs, but I can't get there. A sample spreadsheet is below. I want the total number of rows which have data in the Account, Color, and Response columns. In this example the answer would be 2 (accounts 1204 and 1206). Can you help?
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD]Account[/TD]
[TD]City[/TD]
[TD]Color[/TD]
[TD]Response[/TD]
[/TR]
[TR]
[TD]1202[/TD]
[TD]Boston[/TD]
[TD][/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD]1203[/TD]
[TD][/TD]
[TD]Red[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1204[/TD]
[TD]NY[/TD]
[TD]Blue[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Dallas[/TD]
[TD]Green[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1206[/TD]
[TD][/TD]
[TD]Purple[/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]LA[/TD]
[TD][/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD]1208[/TD]
[TD][/TD]
[TD][/TD]
[TD]N[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Assuming your example is in range A1:D8, you can do something like this:
Code:
=SUMPRODUCT(--(A2:A8<>""),--(C2:C8<>""),--(D2:D8<>""))
 
Upvote 0
How about
=COUNTIFS(A2:A8,"<>",C2:C8,"<>",D2:D8,"<>")
 
Upvote 0
Thank you Joe4 and Fluff! Both your solutions worked, and saved me a ton of time. Thank you both!
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,224
Members
452,620
Latest member
dsubash

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