Comparing two dates

LRiggin

New Member
Joined
Dec 17, 2018
Messages
2
Hello,

I have a spreadsheet with multiple dates on it. I am essentially looking to compare dates between 2 columns. One column is the most recent visit date and the other column is when we last provided a service. I want to know if there has been more than a year between the most recent visit and the last service date. I did this successfully using conditional formatting ie =A1-B1> 365, applying to all of B column. Now I want to be able to count those cells (macros to count conditional formatting is beyond my skill level).

So far I have: =COUNTIF('Raw Data'!B1:B500,">('Raw Data'!A1:A500)-365)")

I think the problem lies in the minus 365 bit because when I delete that, I get the same answer.

Thank you so much.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi,

You can do this (Not sure which column is which, adjust if needed):


Book1
ABCD
112/18/201810/15/20183
212/17/201810/15/2017
312/16/20181/1/2018
412/15/20181/1/2017
512/14/201812/31/2017
Sheet406
Cell Formulas
RangeFormula
D1=SUMPRODUCT(--(B1:B5>A1:A5-365))
 
Upvote 0
You're welcome, welcome to the forum.
 
Upvote 0

Forum statistics

Threads
1,223,902
Messages
6,175,278
Members
452,629
Latest member
SahilPolekar

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