
- MS Excel Basics
- Excel - Home
- Excel - Getting Started
- Excel - Explore Window
- Excel - Backstage
- Excel - Entering Values
- Excel - Move Around
- Excel - Save Workbook
- Excel - Create Worksheet
- Excel - Copy Worksheet
- Excel - Hiding Worksheet
- Excel - Delete Worksheet
- Excel - Close Workbook
- Excel - Open Workbook
- Excel - Context Help
- Editing Worksheet
- Excel - Insert Data
- Excel - Select Data
- Excel - Delete Data
- Excel - Move Data
- Excel - Rows & Columns
- Excel - Copy & Paste
- Excel - Find & Replace
- Excel - Spell Check
- Excel - Zoom In-Out
- Excel - Special Symbols
- Excel - Insert Comments
- Excel - Add Text Box
- Excel - Undo Changes
- Formatting Cells
- Excel - Setting Cell Type
- Excel - Setting Fonts
- Excel - Text Decoration
- Excel - Rotate Cells
- Excel - Setting Colors
- Excel - Text Alignments
- Excel - Merge & Wrap
- Excel - Borders and Shades
- Excel - Apply Formatting
- Formatting Worksheets
- Excel - Sheet Options
- Excel - Adjust Margins
- Excel - Page Orientation
- Excel - Header and Footer
- Excel - Insert Page Breaks
- Excel - Set Background
- Excel - Freeze Panes
- Excel - Conditional Format
- Working with Formula
- Excel - Creating Formulas
- Excel - Copying Formulas
- Excel - Formula Reference
- Excel - Using Functions
- Excel - Builtin Functions
- Advanced Operations
- Excel - Data Filtering
- Excel - Data Sorting
- Excel - Using Ranges
- Excel - Data Validation
- Excel - Using Styles
- Excel - Using Themes
- Excel - Using Templates
- Excel - Using Macros
- Excel - Adding Graphics
- Excel - Cross Referencing
- Excel - Printing Worksheets
- Excel - Email Workbooks
- Excel- Translate Worksheet
- Excel - Workbook Security
- Excel - Data Tables
- Excel - Pivot Tables
- Excel - Simple Charts
- Excel - Pivot Charts
- Excel - Keyboard Shortcuts
- MS Excel Resources
- Excel - Quick Guide
- Excel - Useful Resources
- Excel - Discussion
How to Automatically Create Borders if a Cell has Contents in Excel?
When trying to apply a border to cells in Excel, it can be a time-consuming and difficult process. This problem can be solved by automatically adding borders to the cells. Borders are nothing but the outline of the cells. This tutorial will help you understand how we can automatically create borders if a cell has contents in Excel.
Automatically Create Borders If a Cell Has Contents
Here we will use conditional formatting with a formula and select borders. Let us see an uncomplicated process to understand how we can automatically create borders if a cell has contents in Excel using conditional formatting.
Step 1
Consider an Excel sheet containing data similar to the data shown in the image below. We apply conditional formatting to the results.

Now select the range in our case column c to which you want to apply borders, click on conditional formatting under "home," and select "new rule" to open formatting rules. Then click on "Use formula" and enter the formula as =C2< > and click on "Format" as shown in the below image.
In the formula, C2 represents where the formatting will start, and we change it based on our range of cells.

Step 2
Now, as shown in the image below, click on "Border," then "Outline," then "OK," and then "OK" again to close the pop-up and complete our process.

Step 3
From now on, every time we enter the data in column C, the borders will be applied automatically. This process will only work for the newly added data; it will not work for the already existing data on the sheet.

Conclusion
In this tutorial, we used a simple example to demonstrate how we can automatically create borders if a cell has contents in Excel.
- Related Articles
- How to add borders automatically to cells in Excel?
- How to Automatically Link a Cell Color to Another in Excel?
- How to Automatically Resize the Textbox to Fit the Contents in Excel?
- How to Automatically Move the Cursor to a Specific Cell in Excel?
- How to Automatically Send Email Based on Cell Value in Excel?
- How to Automatically Copy a Cell to Clipboard with a Single Click in Excel?
- How to Automatically Run a Macro When a Cell Formula Result Changes in Excel?
- How to Add Periods to The End of Cell Contents in Excel?
- How to Automatically Insert Rows in Excel?
- How to Automatically Refresh a Pivot Table in Excel?
- How to add 1 to a specified cell if the cell contains certain text in Excel
- How to check if a cell value match to a list in Excel?
- How to Copy and Paste Without Borders in Excel?
- How to Automatically Fill Increment Cells in Excel?
- How to Automatically Remove Duplicates form a List in Excel?
