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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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,214,998
Messages
6,122,643
Members
449,093
Latest member
Ahmad123098

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