Calculate values using COUNTIF

narsing18

New Member
Joined
Jan 30, 2017
Messages
39
Hi,

I have 2 sheets

sheet1 is a Summary sheet and sheet2 is data sheet

sheet 2 has columns from A TO R, in that column G is Severity (heading) with four values Sev-1, Sev-2, Sev-3,Sev-4 and J is date Field with heading Lodgeddate.

i want to calculate severity count for today, this month, this financial quarter, last quarter, older than last quarter.
i have used below formula to check sev-1 count in sheet2 but its not showing any value but just showing #VALUE! Symbol

Rich (BB code):
=COUNTIFS(Sheet2!G:G,"sev-1",Sheet2!J:J,">=1-Mar-2017",Sheet2!J:J,"<31-Mar-2017") 


please help to solve this problem.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Re: how to calculate values using COUNTIF

Try:

Code:
[COLOR=#141414][FONT=Consolas]=COUNTIFS(Sheet2!G:G,[/FONT][/COLOR][COLOR=#800000][FONT=Consolas]"sev-1"[/FONT][/COLOR][COLOR=#141414][FONT=Consolas],Sheet2!J:J,[/FONT][/COLOR][COLOR=#800000][FONT=Consolas]">="&1-Mar-2017[/FONT][/COLOR][COLOR=#141414][FONT=Consolas],Sheet2!J:J,[/FONT][/COLOR][COLOR=#800000][FONT=Consolas]"<"&31-Mar-2017[/FONT][/COLOR][COLOR=#141414][FONT=Consolas]) [/FONT][/COLOR]
 
Upvote 0
Re: how to calculate values using COUNTIF

Hi

Try:

=COUNTIFS(Sheet2!G:G,"sev-1",Sheet2!J:J,">="&DATE(2017,3,1),Sheet2!J:J,"<"&DATE(2017,3,1))
 
Upvote 0
Re: how to calculate values using COUNTIF

Hi

Try:

=COUNTIFS(Sheet2!G:G,"sev-1",Sheet2!J:J,">="&DATE(2017,3,1),Sheet2!J:J,"<"&DATE(2017,3,1))

I think you meant
Code:
[FONT=Consolas]=COUNTIFS(Sheet2!G:G,"sev-1",Sheet2!J:J,">="&DATE(2017,3,1),Sheet2!J:J,"<"&DATE(2017,3,[U][COLOR=#ff0000]31[/COLOR][/U]))[/FONT]
 
Upvote 0
Re: how to calculate values using COUNTIF

Thank you Kamolga, for pointing out the typo.
 
Upvote 0

Forum statistics

Threads
1,213,496
Messages
6,113,993
Members
448,539
Latest member
alex78

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