ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how do I look for cells showing dates less than a certain date? (https://www.excelbanter.com/excel-worksheet-functions/227828-how-do-i-look-cells-showing-dates-less-than-certain-date.html)

Annie and Naseem @ Ecojustice

how do I look for cells showing dates less than a certain date?
 
I've constructed a table with dates of employee departures and need to
"sort?" all of those who left over 7 years from the current date. This has to
be done on a repeated basis. How do I set this up and do it?

Bernie Deitrick

how do I look for cells showing dates less than a certain date?
 
Annie/Naseem,

Use a formula like

=A2<DATE(YEAR(NOW())-7,MONTH(NOW()),DAY(NOW()))

Where A2 has your date. Then copy down, and filter that column to show only
TRUE values.

HTH,
Bernie
MS Excel MVP


"Annie and Naseem @ Ecojustice" <Annie and Naseem @
wrote in message
...
I've constructed a table with dates of employee departures and need to
"sort?" all of those who left over 7 years from the current date. This has
to
be done on a repeated basis. How do I set this up and do it?




All times are GMT +1. The time now is 09:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com