Help with a countif formula and a range of dates

STEVENS3010

Board Regular
Joined
Feb 4, 2020
Messages
61
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi all,

Could somebody please help me with a formula. I have a range of data in column A (dates & times - e.g. 01/01/2021 9:00am)

I have a table of dates in a separate part of the sheet, and I'm looking for a formula to look up the value in the table e.g. "01/01/2021" in cell "S2" for example and to then count the number of times this date is in the range of data in column A. The issue is I only need to count the date part of the info in column A, not the time. Is it possible to use a countif formula with a partial match on time/date? i.e - can I only count the "01/01/201" part of the example in the first line?
 

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.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,468
Office Version
  1. 365
Platform
  1. Windows
How about
Excel Formula:
=COUNTIFS(A:A,">="&S2,A:A,"<"&S2+1)
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,468
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,129,378
Messages
5,635,903
Members
416,887
Latest member
SheriE

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