COUNTIFS FORMULA RETURNING ZERO

ANDYADAM

New Member
Joined
Mar 4, 2024
Messages
11
Office Version
  1. 2021
Platform
  1. Windows
Hi all,

I'm trying to create a COUNTIFS formula with four criteria.

The first is to determine if the date is greater than or equal to 01/01/2023. The second is to determine if the date is less than or equal to 31/01/2023.

If the first two criteria are true, then the third and fourth criteria are to count if the cell entry is 'Invoiced' AND 'Job Complete - No Invoice'.

I can't seem to see the wood for the trees.

Any advice will be much appreciated.

Thanks
Andy

Book1
ABC
1DATE ASSIGNEDNUMBER COMPLETED CURRENT STATUS
204/01/20230INVOICED
310/02/2023INVOICED
403/01/2023INVOICED
503/04/2023INVOICED
604/01/2023INVOICED
704/01/2023NO RESPONSE
825/02/2023NO RESPONSE
903/01/2023APP
1007/02/2023APP
1106/03/2023ON HOLD
1206/03/2023ON HOLD
1306/03/2023JOB COMPLETE - NO INVOICE
1406/09/2023JOB COMPLETE - NO INVOICE
1506/03/2023APP
Sheet1
Cell Formulas
RangeFormula
B2B2=COUNTIFS(A2:A15,">=01/01/2023",A2:A15,"<=31/01/2023",C2:C15,"=INVOICED",C2:C15,"=JOB COMPLETE - NO INVOICE")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C7:C8Expression=ISBLANK($M7)textYES
C7:C8Expression=$M7="TO BE BOOKED"textNO
C7:C8Expression=$M7="PARTS ORDERED"textNO
C7:C8Expression=$M7="PARTS DISPATCHED"textNO
C7:C8Expression=$M7="ON-HOLD"textNO
C7:C8Expression=$M7="NO RESPONSE"textNO
C7:C8Expression=$M7="JOB COMPLETE - NO INVOICE"textNO
C7:C8Expression=$M7="JOB COMPLETE"textNO
C7:C8Expression=$M7="JOB CANCELLED"textNO
C7:C8Expression=$M7="INVOICED"textNO
C7:C8Expression=$M7="APPOINTMENT DATE"textNO
C7:C8Expression=$M7="TECH ADVICE"textNO
Cells with Data Validation
CellAllowCriteria
C7:C8List=$M$1:$M$15
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi & welcome to MrExcel.
You need to use an OR for col C not an AND
Excel Formula:
=sum(COUNTIFS(A2:A15,">=01/01/2023",A2:A15,"<=31/01/2023",C2:C15,{"INVOICED","JOB COMPLETE - NO INVOICE"}))
 
Upvote 0
Solution
Hi & welcome to MrExcel.
You need to use an OR for col C not an AND
Excel Formula:
=sum(COUNTIFS(A2:A15,">=01/01/2023",A2:A15,"<=31/01/2023",C2:C15,{"INVOICED","JOB COMPLETE - NO INVOICE"}))
Thank you soooo much Fluff.
I've been looking at this for hours. It's fair to say my excel knowledge is pretty grim, but I'm learning slowly.
Cheers (y)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,094
Messages
6,123,071
Members
449,092
Latest member
ipruravindra

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