count blanks and non blanks same formula

fastballfreddy

Board Regular
Joined
Jan 13, 2015
Messages
60
Office Version
  1. 2016
Platform
  1. Windows
Needing a formula to count non blanks in 1st column and blanks in the 2nd column. So the example it would count 2. the text is giving me issues trying to do a COUNTIFS formula and using COUNTA formula. I've searched and tested but nothing is working for me. appreciate any help in advance.

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]count non blanks[/TD]
[TD]count blanks[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]x[/TD]
[/TR]
[TR]
[TD]text2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]text3[/TD]
[TD]x[/TD]
[/TR]
[TR]
[TD]text5[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
If there are no cells in either column that hold formulas returning "", use COUNTA in the first column and COUNTBLANK in the second column.
 
Upvote 0
Thanks for the reply Joe. I'm wanting to search the first column looking for anything that has text and that also have blanks in the 2nd column.
 
Upvote 0
Hi, how about this:

=COUNTIFS(A1:A7, "<>", B14:B17, "") <-- Column A are you Non Blanks and Column B Are your blank...
 
Upvote 0
Thanks, i just figured it out. Appreciate all of the help! :)

=COUNTIFS(C2:C17,"*",B2:B17,"<>"&"*")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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