Countifs dates and Reason

High77

New Member
Joined
Jul 6, 2010
Messages
31
Office Version
  1. 365
  2. 2016
  3. 2010
  4. 2007
Platform
  1. Windows
Hi,

I'm looking to count all the "Failure of Mobilising Equipment" for each month. I've made the data into a table (Table1), so it'll auto expand when new entries are added.

1605193154194.png

1605193495666.png

The reason column is also a Named list (Name Manager).

I've tried:
=COUNTIFS(Table1,">=01/01/2020",Table1,"<=31/01/2020",Table1,"=[@Reason]")

But it comes up as 0, when it should be 2. Even adding & doesn't give the correct answer. At the moment I've just got it counting for dates without the "Failure of Mobilising Equipment".

Any suggestions?

Dave
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Shouldn't it be
Excel Formula:
 =COUNTIFS(Table1[@Date],">=01/01/2020",Table1[@Date],"<=31/01/2020",Table1[@Reason],A2)
A2 is the reference of your reason

OTOH a Pivot Table is much simpler
 
Upvote 0
Shouldn't it be
Excel Formula:
 =COUNTIFS(Table1[@Date],">=01/01/2020",Table1[@Date],"<=31/01/2020",Table1[@Reason],A2)
A2 is the reference of your reason

OTOH a Pivot Table is much simpler
Thanks for the quick reply. I'm still getting 0 as a return though.

I've not used pivot tables before, without wanting too much, can you point me to somewhere that will aid me with what I want to do?
 
Upvote 0
Maybe
Excel Formula:
 =COUNTIFS(Table1[Date],">=01/01/2020",Table1[Date],"<=31/01/2020",Table1[Reason],Table1[@Reason])
 
Upvote 0
Have a look at How to Create a Pivot Table in Excel
an at
It's quite easy once you have tried it a couple of times
Thanks, I've used Pivot tables to get exactly what I want. It was straight forward and ground breaking for me. Thanks for your help.
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,557
Latest member
richa mishra

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