Count Dates

Phil_L

New Member
Joined
Oct 31, 2023
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hi there and thanks for the warm welcome.

I have been trying to figure out this myself before coming to ask for help as I want to learn but everything I do returns 0.

I have tabs January through to December and in each tab we will have a row that will contain different dates in that row. On a separate tab, I have a calendar which I want to count the number of times that date shows.

For example,

Date of Operation (DD/MM/YYYY)01/01/202404/01/202403/01/202401/01/202402/01/2024

Would return on my other tab
MonTueWedThurFriSatSun
1st22nd13rd14th15th06th0

The formula I am using is (this is only looking for the 1st Jan, I would need to repeat the code in the box that looks for the 2nd)
Excel Formula:
=COUNTIFS(January!14:14,1/1/24,January!32:32,1/1/24,January!50:50,1/1/24,January!68:68,1/1/24,January!86:86,1/1/24)

Which is returning 0. Obviously not right. FYI, there are multiple rows that the formula would need to check.

Where am I going wrong? Hope this makes sense

Thank you so much
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Are you looking for this -

Excel Formula:
=COUNTIFS(January!14:14,"1/1/24")+COUNTIFS(January!32:32,"1/1/24")+COUNTIFS(January!50:50,"1/1/24")+COUNTIFS(January!68:68,"1/1/24")+COUNTIFS(January!86:86,"1/1/24")

OR

Excel Formula:
=COUNTIFS(January!14:14,"1/1/24",January!32:32,"1/1/24",January!50:50,"1/1/24",January!68:68,"1/1/24",January!86:86,"1/1/24")

Both shall have different results... Depends which one you need...
 
Upvote 0
Solution

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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