How to add borders automatically to cells in Excel?
Have you ever tried to add borders automatically on your worksheet while you are entering value in a row? This could make your job more efficiently. In Excel, you can apply Conditional Formatting feature to accomplish it. Please read this article to know the details.
To add borders to cells automatically when you enter data, please do with following steps:
1. Select the range of cells that you want the gridlines to appear on rows when you enter values. In this example, I will select the range of cells A1:F20.
2. From the Home tab, click Conditional Formatting > New Rule, see screenshot:
3. In the New Formatting Rule dialog box, click Use a formula to determine which cells to format under Select a Rule Type section, and then enter this formula =COUNTA($A1:$F1)>0 (A1 is the top left cell of your selected range and F1 is the top right cell of your selected range) into the Format values where this formula is true text box, see screenshot:
4. Then click Format button in the New Formatting Rule dialog to go to the Format Cells dialog, click Border tab and select Outline border, see screenshot:
5. And then click OK > OK to close the dialogs. Now, when you type data in any cell of your selected range that you have applied conditional formatting, the gridlines will be added from Column A to Column F of your selection automatically.
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!