Countifs and do not count zero

Leda Leong

New Member
Joined
Sep 25, 2017
Messages
11
Dear all,

as I need to find out the top 3 Remedy in the list item, it show PAINT, FIX AND 0...
but when it comes to zero, it will count a value for zero, but I would like to exclude 0 in my value data
can anybody help, thanks,

my calculation for Column No is =COUNTIFS(A:A,">"&TODAY()-1,F:F,$AC$2,G:G,AE2)

ProblemNoList No
PAINTP21PAINT16
FIX3
01

<colgroup><col width="75" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;"><col width="33" style="width: 25pt; mso-width-source: userset; mso-width-alt: 1206;"><col width="75" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;"><col width="50" style="width: 38pt; mso-width-source: userset; mso-width-alt: 1828;"><tbody>
</tbody>

DATEJ-DayMONTHStatus 狀態ProblemRemedy
27-Sep2709COMPPAINTPPAINT
27-Sep2709COMPPAINTPPAINT
27-Sep2709COMPPAINTPPAINT
27-Sep2709COMPPAINTPPAINT
27-Sep2709COMPPAINTPPAINT
27-Sep2709COMPPAINTPPAINT
27-Sep2709COMPPAINTPPAINT
27-Sep2709DUPLICATEPAINTP0
27-Sep2709COMPPAINTPPAINT
27-Sep2709COMPPAINTPPAINT
27-Sep2709COMPPAINTPPAINT
27-Sep2709COMPPAINTPFIX
27-Sep2709COMPPAINTPPAINT
27-Sep2709COMPPAINTPPAINT
27-Sep2709COMPPAINTPZR-OTHER
27-Sep2709COMPPAINTPPAINT
27-Sep2709COMPPAINTPFIX
27-Sep2709COMPPAINTPPAINT
27-Sep2709COMPPAINTPPAINT
27-Sep2709COMPPAINTPPAINT
27-Sep2709COMPPAINTPFIX

<colgroup><col width="76" style="width: 57pt; mso-width-source: userset; mso-width-alt: 2779;"> <col width="67" style="width: 50pt; mso-width-source: userset; mso-width-alt: 2450;"> <col width="75" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;"> <col width="97" style="width: 73pt; mso-width-source: userset; mso-width-alt: 3547;"> <col width="77" style="width: 58pt; mso-width-source: userset; mso-width-alt: 2816;"> <col width="96" style="width: 72pt; mso-width-source: userset; mso-width-alt: 3510;"> <tbody>
</tbody>
 

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"
The simplest way seems to be to add another criterion to your COUNTIFS:
=COUNTIFS(A:A,">"&TODAY()-1,F:F,$AC$2,G:G,AE2,D:D,"COMP")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,972
Messages
6,128,027
Members
449,414
Latest member
sameri

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