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.
- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.
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:
- How to count if cell contains text or part of text in Excel?
- How to check if a cell value is between two values in Excel?
- How to sumif adjacent cell is equal, blank or containing text in Excel?
- How to return value in another cell if a cell contains certain text in Excel?