Formula to find how many are cell is blank in a range?

psycoperl

Active Member
Joined
Oct 23, 2007
Messages
287
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
  3. Web
I am working on a project where I want to find out how entries in worksheet 'Course Info' have blank values in column 'Course Info'!X when there is a value in Column 'Course Info'!A and then display it in the Instructions Worksheet Cell M6

I was working with the following formula and it did not work. Not sure what I am doing wrong?

Excel Formula:
=COUNTIFS('Course Info'!$A:$A,$A1<>"",'Course Info'!$X:$X,$X1<>"")

SCFE_Prep1_Sp21.xlsx
GHIJKLMN
1
2
3File ID:SCFE
4
5Stats:Sections To Be ReviewedCrosslistings To Be ReviewedInstructors MissingSections Missing Signature
610,09610,09600
7
Instructions
Cell Formulas
RangeFormula
H6,J6H6=COUNTIF('Course Info'!Q:Q,"[-] NEEDS RESPONSE")
L6L6=COUNTIF('Course Info'!K:K,"00000000")
M6M6=COUNTIFS('Course Info'!$A:$A,$A1<>"",'Course Info'!$X:$X,$X1<>"")
Named Ranges
NameRefers ToCells
'Course Info'!_FilterDatabase='Course Info'!$A$2:$Z$10098M6



SCFE_Prep1_Sp21.xlsx
ABC
2Class NbrInst NbrDiscipline
31205
410009
5
6
Course Info
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A3:AF100098Expression=OR(ISNUMBER(SEARCH("[-]",$Q3,1)),ISNUMBER(SEARCH("[-]",$S3,1)))textNO


SCFE_Prep1_Sp21.xlsx
XYZ
2NameTitleDate
3
4
5
6
Course Info
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A3:AF100098Expression=OR(ISNUMBER(SEARCH("[-]",$Q3,1)),ISNUMBER(SEARCH("[-]",$S3,1)))textNO
Cells with Data Validation
CellAllowCriteria
Z2:Z6Date>9/1/2020
 

Some videos you may like

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
12,416
Office Version
  1. 365
Platform
  1. Windows
try
Excel Formula:
=COUNTIFS('Course Info'!$A:$A,"<>",'Course Info'!$X:$X,"")
 
Solution

kweaver

Well-known Member
Joined
May 8, 2018
Messages
1,565
Office Version
  1. 365
  2. 2010
COUNTIFS needs to have the range separated from the criteria with a comma.
 

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
12,416
Office Version
  1. 365
Platform
  1. Windows
COUNTIFS needs to have the range separated from the criteria with a comma.
If you're referring to the OP's original formula then it was comma separated, but they had included the first cell of the range in the criteria as well.
I've seen the same a few times in old threads where a member has tried to write countifs formulas using a method of =COUNTIFS(applies to range, condition based on first cell) thinking that it works similarly to conditional formatting.
 

psycoperl

Active Member
Joined
Oct 23, 2007
Messages
287
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
  3. Web
If you're referring to the OP's original formula then it was comma separated, but they had included the first cell of the range in the criteria as well.
I've seen the same a few times in old threads where a member has tried to write countifs formulas using a method of =COUNTIFS(applies to range, condition based on first cell) thinking that it works similarly to conditional formatting.
@jasonb75 exactly what I was modeling my formula based on. Good to know now.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,163
Messages
5,623,103
Members
415,954
Latest member
TylerSeeds

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