How to quickly insert a line based on current date in Excel?
Supposing there is a sheet containing a row with dates, and now I want to insert a line right to the current date which will auto change while opening the workbook every day. Is there a trick can solve it in Excel?
To insert a current date line in cell, you can apply the Conditional Formatting function.
1. Select the range you want to insert line, and click Home > Conditional Formatting > New Rule. See screenshot:
2. In the New Formatting Rule dialog, select Use a formula to determine which cells to format, and type this formula =IF(B$1=TODAY(),TRUE, FALSE) to the Format values where this formula is true text box. Click Format to go to the Format Cells dialog, under Border tab, specify the line as you need. See screenshot:
3. Click OK. There is a line auto inserted at the right of the current date cell.
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!