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

#### psycoperl

##### Active Member
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

### Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

#### jasonb75

##### Well-known Member
try
Excel Formula:
``=COUNTIFS('Course Info'!\$A:\$A,"<>",'Course Info'!\$X:\$X,"")``

#### psycoperl

##### Active Member
try
Excel Formula:
``=COUNTIFS('Course Info'!\$A:\$A,"<>",'Course Info'!\$X:\$X,"")``
Worked! Thank you

#### kweaver

##### Well-known Member
COUNTIFS needs to have the range separated from the criteria with a comma.

#### jasonb75

##### Well-known Member
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
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.

Replies
3
Views
37
Replies
4
Views
83
Replies
10
Views
182
Replies
8
Views
87
Replies
5
Views
100

1,127,554
Messages
5,625,474
Members
416,109
Latest member
TripleA00123

### 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.

### Which adblocker are you using?

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

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