COUNTIFS with a "" Referenced Cell

kparadise

Board Regular
Joined
Aug 13, 2015
Messages
186
Hello,

I am working on a COUNTIFS statement and have 2 of my 3 criteria down.

=COUNTIFS($B$16:$B$179,"<>*L2*",J$16:J$179,">0", M$16:M$179,"<>"&"")

This last range of data is where I cannot figure out how to use the formula. Range M16:M179 is a column I created by using an INDEX/MATCH. The INDEX/MATCH formula which I have used to generate column M is: =IFERROR(INDEX('Sheet1'!$BJ$3:$BJ$167, MATCH($B110, 'Sheet1'!$BI$3:$BI$167, 0)), ""). So I think my COUNTIFS formula is still picking up all the blank rows in column M.

=COUNTIFS($B$16:$B$179,"<>*L2*" = 4 ,J$16:J$179,">0" = 5 , M$16:M$179,"<>"&"" = 7 ) The answer I am getting is 9; but I want to get 2. I need my formula to remove (or not count) the blanks in column M.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
What type of value is your formula in M returning (when it's NOT "") ?
Text or Number? Or could be either ?

If it's TEXT use "?*" as the criteria
If it's number, use ">=0"
 
Last edited:
Upvote 0

Forum statistics

Threads
1,225,743
Messages
6,186,777
Members
453,370
Latest member
juliewar

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