COUNTIFS matching both of two criteria not either of two

caj1980

Board Regular
Joined
Oct 23, 2013
Messages
108
I am trying to calculate the number of remaining errors in a list of total errors, sorted by type of error, as follows. I have tried both COUNTIFS and SUMPRODUCT with no success. Help Please!!

Target Cell for the formula is I1. I need it to calculate the number of cells in column I table (Date Corrected) below that match H1 and are not blank.

I have tried the following with no success:
=COUNTIFS(Table1[DATE CORRECTED],"<>"&" ",Table1[SOW REFERENCE],H1)

=SUMPRODUCT((Table1[SOW REFERENCE]=H1)*(Table1[DATE CORRECTED]="<>"&" "))


SUMMARY OF ERRORSPosition1CORRECTED ERRORSPosition1
Rack Feet1Rack Feet1
RPDU A/B Source1RPDU A/B Source1
RPDU Power1RPDU Power1
Device Power1Device Power1
Hot-Aisle1Hot-Aisle1
Safety1Safety0
Cusheets1Cusheets0
OPEN ERRORS
Cable Routing1Cable Routing0
6 Open Errors (50%)
Device Groups1Device Groups0
Labels1Labels0
Test Results1Test Results0
TOTAL12TOTAL6
#AZSITERACKSOW REFERENCEISSUEDATE REPORTEDDATE TASKEDDATE CORRECTEDCORRECTIVE ACTION
1 Position 1-Dec-18
2 Rack Feet 2-Dec-18
3 RPDU A/B Source 3-Dec-18
4 RPDU Power 4-Dec-18
5 Device Power 5-Dec-18
6 Hot-Aisle 6-Dec-18
7 Safety
8 Cusheets
9 Cable Routing
10 Device Groups
11 Labels
12 Test Results

<colgroup><col style="mso-width-source:userset;mso-width-alt:917;width:22pt" width="29"> <col style="mso-width-source:userset;mso-width-alt:1301;width:31pt" width="41"> <col style="mso-width-source:userset;mso-width-alt:1770;width:42pt" width="55"> <col style="mso-width-source:userset;mso-width-alt:5269;width:124pt" width="165"> <col style="mso-width-source:userset;mso-width-alt:5269;width:124pt" width="165"> <col style="mso-width-source:userset;mso-width-alt:12330;width:289pt" width="385"> <col style="mso-width-source:userset;mso-width-alt:4224;width:99pt" width="132"> <col style="mso-width-source:userset;mso-width-alt:4053;width:95pt" width="127"> <col style="mso-width-source:userset;mso-width-alt:4501;width:106pt" width="141"> <col style="mso-width-source:userset;mso-width-alt:11840;width:278pt" width="370"> </colgroup><tbody>
</tbody>
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Your countifs give me 1 for the data you've shown as does this
=SUMPRODUCT((Table1[SOW REFERENCE]=T1)*(Table1[DATE CORRECTED]<>""))
 
Upvote 0
The SUMPRODUCT should be remediated as Fluff pointed out. The COUNTIFS should be:

=COUNTIFS(Table1[DATE CORRECTED],"<>",Table1[SOW REFERENCE],H1)

If you leave in the " " part, it will erroneously count 1 for the Safety row.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,123
Messages
6,123,182
Members
449,090
Latest member
bes000

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