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

psycoperl

Active Member
Joined
Oct 23, 2007
Messages
338
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
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
try
Excel Formula:
=COUNTIFS('Course Info'!$A:$A,"<>",'Course Info'!$X:$X,"")
 
Upvote 0
Solution
COUNTIFS needs to have the range separated from the criteria with a comma.
 
Upvote 0
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.
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,424
Members
448,961
Latest member
nzskater

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