countifs returns zero when a cell is blank

gberg

Board Regular
Joined
Jul 16, 2014
Messages
180
Office Version
  1. 365
Platform
  1. Windows
I have a Countifs formula that is returning zero, I believe because some cell values are blank. If I back out the items that have blanks it works fine

=COUNTIFS([Area],[@Area],[Section '#],[@[Section '#]],[Item Description],[@[Item Description]],[L1],[@L1],[L2],[@L2],[W1],[@W1],[W2],[@W2])

Here is a snapshot of the table I am trying to use the formula in
1662129282799.png


How can I make this work when I have blanks?

Thanks,

Greg
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
If the values are text & not numbers you could use
Excel Formula:
=COUNTIFS([Area],[@Area],[Section '#],[@[Section '#]],[Item Description],[@[Item Description]],[L1],[@L1],[L2],[@L2]&"",[W1],[@W1]&"",[W2],[@W2]&"")
 
Upvote 0
Solution
That worked perfectly! You are awesome Fluff!!!!!!!

Thanks for your help

Greg
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

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