Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

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?
doc insert line by current date 1

Insert a current date line


arrow blue right bubble Insert a current date line


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:
doc insert line by current date 2

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:
doc insert line by current date 3

3. Click OK. There is a line auto inserted at the right of the current date cell.
doc insert line by current date 4


Relative Utility:

Select Specific Cells (select cells/row/columns based on one ore two criteria.)

doc select specific cells

Recommended Productivity Tools for Excel

kte tab 201905

Kutools for Excel Helps You Always Finish Work Ahead of Time, and Stand Out From Crowd

  • More than 300 powerful advanced features, designed for 1500 work scenarios, increasing productivity by 70%, give you more time to take care of family and enjoy life.
  • No longer need memorizing formulas and VBA codes, give your brain a rest from now on.
  • Become an Excel expert in 3 minutes, Complicated and repeated operations can be done in seconds, 
  • Reduce thousands of keyboard & mouse operations every day, say goodbye to occupational diseases now.
  • 110,000 highly effective people and 300+ world-renowned companies' choice.
  • 60-day full features free trial. 60-day money back guarantees. 2 years of free upgrade and support.

Brings Tabbed Browsing and Editing to Microsoft Office, Far More Powerful Than The Browser's Tabs

  • Office Tab is designed for Word, Excel, PowerPoint and Other Office Applications: 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!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Marcin · 3 months ago
    This doesn.t work. Excel doesn't understand this formule
  • To post as a guest, your comment is unpublished.
    MARCIN · 3 months ago
    NIE DZIAŁA TA FORMUŁA, EXCEL NIE WYKRYWA TEGO JAKO FORMUŁY