Using COUNTIFS with a static date for macro use

furrera

New Member
Joined
Jun 14, 2018
Messages
1
First time poster here:biggrin:

I'm trying to count the frequency of occurrences based on specific date ranges.
Here is my current formula

=COUNTIFS(MRN,$B2,VisitDates,"<=&6/14/2018",VisitDates,">=&6/14/2018-30")

It works just fine with the TODAY function but I don't want it to change every time I open the file so I tried to ctrl+; to make it a fixed date and macro friendly but the results come back as "0" when I do that. Unfortunately I don't know VBA well at all, although I'm trying to teach myself.

Any suggestions?
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,223,956
Messages
6,175,614
Members
452,661
Latest member
Nonhle

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