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

or
0
0
0
s2smodern

How to automatically create borders if a cell has contents in Excel?

You may add borders to cells with contents for outstanding the cell values in the worksheet by applying the All Borders option repeatedly. If it is time-consuming and boring for you to repeat the operation, this article will show you an easy method to automatically create borders if a cell has contents in Excel.

Automatically create borders if a cell has contents with Conditional Formatting


Automatically create borders if a cell has contents with Conditional Formatting


Please do as follows to automatically create borders if a cell bas contents in a range with Conditional Formatting.

1. Select a range you want to add borders to the cells when entering values. Then click Home > Conditional Formatting > New Rule. See screenshot:

2. In the New Formatting Rule dialog box, you need to:

2.1 Select use a formula to determine which cells to format option in the Select a Rule Type box.

2.2 Enter formula =C2<>"" into the Format values where this formula is true box.

2.3 Click the Format button. See screenshot:

Note: in the formula, C2 is the first cell of the selected range.

3. In the Format Cells dialog box, go to the Border tab, select the top, bottom, left and right border in the Border section, specify the line style as you need, and then click the OK button. See screenshot:

4. Then it returns to the New Formatting Rule dialog box, please click the OK button to finish the rule.

From now on, all borders will be added to cells automatically after value entered. See screenshot:


Related articles:


Recommended Productivity Tools

Office Tab

gold star1 Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools for Excel

gold star1 Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1 200 New Features for Excel, Make Excel Much Easy and Powerful:

  • Merge Cell/Rows/Columns without Losing Data.
  • Combine and Consolidate Multiple Sheets and Workbooks.
  • Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
  • Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

btn read more      btn download     btn purchase

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.

Be the first to comment.