Countifs not returning correct value, need assistance please

Les76

New Member
Joined
Dec 14, 2020
Messages
8
Office Version
  1. 2016
Platform
  1. Windows
I am running a countifs formula to pull the "completed on time" work orders for the month, which are those completed within 30 days of issuance. The correct value should be 69 but the formula is returning 46. To verify, I filtered the data down to October completed and ran the difference (Date completed - Date Issued) in an adjacent column and it totals 69 but this formula returns 46. Am I missing something or is there a way to correct the issue:

=COUNTIFS(Dates,">="&DATE($H$1,10,1),Dates,"<="&DATE($H$1,10,31),Type,$A85,Status,$C$2,Completion,"<="&Dates+30)

Where: Dates - Issue Date; H1 - Current Year; Type and Status - Type of work and status of work order; Completion - Completion date

I've verified that everything up to criteria 5 functions properly and I'm using Excel 2016.

1607982415793.png


1607982278038.png


Thank you for any assistance you can provide as this is driving me crazy!!!
 

Les76

New Member
Joined
Dec 14, 2020
Messages
8
Office Version
  1. 2016
Platform
  1. Windows
Can you post some sample date data using the XL2BB add-in that shows the problem.
Fluff, here is a sample of the data and the formula that I created. I can't provide the whole month, it is too large.

=COUNTIFS(Dates,">="&DATE($H$1,10,1),Dates,"<="&DATE($H$1,10,31),Type,$A85,Status,$C$2,Completion,"<="&Dates+30)

$A85 is EOC and $C$2 is CMPLT. Dates is the named range for column F, Type is the named range for column C, Status column K and Completion column L. Column M was me trying another option this morning

Engineering Metric Tracker 1.xlsx
CDEFIKLM
1TypeAcct.Asset #Date CreatedSkillStatusCompletion DatePlus 30
132EOC830010/1/2020FT1CMPLT11/4/202010/31/2020
133EOC830010/1/2020FT1CMPLT10/2/202010/31/2020
134EOC830010/1/2020FT4CMPLT10/1/202010/31/2020
135EOC830010/1/2020FT4CMPLT10/1/202010/31/2020
136EOC830010/1/2020FT1CMPLT10/2/202010/31/2020
137EOC830010/1/2020FT1CMPLT10/2/202010/31/2020
138EOC830010/1/2020PA1CMPLT10/8/202010/31/2020
139EOC830010/1/2020PA1CMPLT10/21/202010/31/2020
140EOC830010/1/2020PA1CMPLT11/4/202010/31/2020
141EOC830010/1/2020PA1CMPLT11/4/202010/31/2020
142EOC830010/1/2020PA1CMPLT11/4/202010/31/2020
143EOC830010/1/2020FT4CMPLT10/2/202010/31/2020
144EOC830010/1/2020FT4CMPLT10/2/202010/31/2020
145EOC830010/1/2020FT4CMPLT10/2/202010/31/2020
146EOC830010/1/2020CAR2CMPLT10/15/202010/31/2020
147EOC830010/1/2020PA1CMPLT10/9/202010/31/2020
148EOC830010/1/2020GM2CMPLT10/6/202010/31/2020
149EOC830010/1/2020GM4CMPLT10/2/202010/31/2020
150EOC830010/1/2020CAR3CMPLT10/2/202010/31/2020
151EOC830010/1/2020CONTRCMPLT11/5/202010/31/2020
152EOC830010/1/2020FT1CMPLT10/2/202010/31/2020
153EOC830010/1/2020GM2CMPLT10/6/202010/31/2020
154EOC830010/1/2020FT1CMPLT10/14/202010/31/2020
155EOC830010/1/2020GM4CANCL10/31/2020
156EOC830010/2/2020PA1CMPLT10/9/202011/1/2020
157EOC830010/2/2020PA1CMPLT10/9/202011/1/2020
158EOC830010/2/2020CAR3CMPLT10/5/202011/1/2020
159EOC830010/2/2020CAR2CMPLT10/14/202011/1/2020
160EOC830010/2/2020CAR2CANCL11/1/2020
161EOC830010/2/2020PA1CMPLT10/21/202011/1/2020
162EOC830010/2/2020GM4CMPLT10/2/202011/1/2020
163EOC830010/2/2020FT1CMPLT10/8/202011/1/2020
164EOC830010/2/2020FT1CMPLT10/6/202011/1/2020
165EOC830010/2/2020FT1CMPLT10/6/202011/1/2020
166EOC830010/2/2020CONTRCMPLT11/13/202011/1/2020
167EOC830010/2/2020AC1CMPLT10/5/202011/1/2020
168EOC830010/2/2020FT1CMPLT10/5/202011/1/2020
169EOC830010/6/2020PA1CMPLT10/22/202011/5/2020
170EOC830010/6/2020MGRCMPLT11/5/202011/5/2020
171EOC830010/6/2020GM2CMPLT10/7/202011/5/2020
172EOC830010/7/2020FT5CMPLT10/7/202011/6/2020
173EOC830010/7/2020CAR2CMPLT10/16/202011/6/2020
174EOC830010/8/2020FT1CMPLT10/12/202011/7/2020
175EOC830010/8/2020FT1CMPLT10/12/202011/7/2020
176EOC830010/14/2020FT6CMPLT10/15/202011/13/2020
177EOC830010/15/2020CAR2CMPLT10/20/202011/14/2020
178EOC830010/15/2020FT6CMPLT10/15/202011/14/2020
179EOC830010/15/2020CAR2ACTIV11/14/2020
180EOC830010/15/2020CAR3ACTIV11/14/2020
Source Data
Cell Formulas
RangeFormula
M132:M180M132=F132+30
 

Some videos you may like

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,253
Office Version
  1. 365
Platform
  1. Windows
What is in H1, A85 and C2?
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,253
Office Version
  1. 365
Platform
  1. Windows
Try changing the formula in col M to
Excel Formula:
=L132-F132
and change the last part of your formula to check if col M <=30
 

Watch MrExcel Video

Forum statistics

Threads
1,126,997
Messages
5,622,083
Members
415,875
Latest member
Tarali

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
Top