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.
Recommended Productivity Tools for Excel
Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial
Kutools for Excel: Save 71% of your time and solve 82% Excel problems for you. 300+ advanced tools designed for 1500+ work scenario, make Excel much easy and increase productivity immediately.60-day Unlimited Free Trial
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.