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?
Recommended Excel Productivity Tools
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.
Select Specific Cells (select cells/row/columns based on one ore two criteria.)