Countifs problem

NadoDude

Board Regular
Joined
Jun 24, 2010
Messages
84
I am using =COUNTIFS(Assignments!$G$2:$G$2633,A7,Assignments!$K$2:$K$2633,"<="&M7,Assignments!$O$2:$O$2633,">"&L7)

I want the last criteria to include records where column O is blank.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Try:

=COUNTIFS(Assignments!$G$2:$G$2633,A7,Assignments!$K$2:$K$2633,"<="&M7,Assignments!$O$2:$O$2633,"<>")
 
Upvote 0
You formula is not working. It is only counting the record where O is >L7, and not the records where O is blank
 
Upvote 0
So your formula is asking:

1) G column has whatever is in cell A7

and

2) K column has greater than or equal to whatever is in cell M7

and

3) O column is blank

Is that correct?

So if the record meets all three criteria, you want a count of 1?

Maybe this:

=SUMPRODUCT(--(Assignments!$G$2:$G$2633=A7),--(Assignments!$K$2:$K$2633<=M7),--(Assignments!$O$2:$O$2633=""))
 
Upvote 0
I guess that I am confused because I am not sure how a cell in column O could be both "<"&L7 and blank.
 
Upvote 0
1) G column has whatever is in cell A7

and

2) K column has less than or equal to whatever is in cell M7

and

3) O column is blank or O column is greater than or equal to whatever is in cell L7

So if the record meets all four criteria, want a count of 1?
 
Upvote 0
I am using =COUNTIFS(Assignments!$G$2:$G$2633,A7,Assignments!$K$2:$K$2633,"<="&M7,Assignments!$O$2:$O$2633,">"&L7)

I want the last criteria to include records where column O is blank.

Couldn'y you at the end of your current formula add +
Excel Workbook
G
52632
Course Dates
 
Upvote 0
I am using =COUNTIFS(Assignments!$G$2:$G$2633,A7,Assignments!$K$2:$K$2633,"<="&M7,Assignments!$O$2:$O$2633,">"&L7)+Countblanks(Assignments!$O$2:$O$2633)

I want the last criteria to include records where column O is blank.

perhaps
 
Upvote 0

Forum statistics

Threads
1,213,529
Messages
6,114,155
Members
448,554
Latest member
Gleisner2

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