How to find the closest date to today on a list in Excel?
Supposing you have a list of date with today’s date mixed. For finding the closed date to today in this list, you may need to use formulas. There are two situations, one is finding the past closest date to today, and the other is finding the future closest date to today. In this article, we will show you how to deal with these two problems.
Finding the past closest date to today in Excel
Finding the future closest date to today in Excel
Finding the past closest date to today in Excel
As below screenshot shows, the today’s date is 1/29/2015, please do as follows to find the past closest to today’s date.
1. Select a blank cell, such as cell B2 to locate the result.
2. Copy and paste the formula =MAX(($A$2:$A$18<TODAY())*A2:A18) into the Formula Bar, and then press Ctrl + Shift + Enter keys simultaneously.
As the above screenshot shown, you can see the past closest date 1/26/2015 to today’s date is populated into cell B2.
Finding the future closest date to today in Excel
In this section, we will show you how to find the future closest date to today in Excel.
1. Select the blank cell B2, copy and paste formula =MIN(IF(A2:A18>TODAY(),A2:A18)) into the Formula Bar, and then press Ctrl + Shift + Enter keys simultaneously. See screenshot:
Then you will get the future closest date to today in cell B2.
Notes:
1. In the formulas, please change the range to your need;
2. If there is not date format displaying, please change the cell format to Date after calculating.
Related articles:
- How to find first or last Friday of every month in Excel?
- How to find lowest and highest 5 values in a list in Excel?
- How to find or check if a specific workbook is opened or not in Excel?
- How to find out if a cell is referenced in other cell in Excel?
- How to find position of first/last number in a text string in Excel?
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!