
- 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 border cells based on cell values in Excel?
In Excel, the lines that make it up a cell's border are referred to as boxes. By maintaining borders, we are able to frame any data and give it a defined boundary in an appropriate manner. You can highlight specific values by outlining summarized values or separating data into ranges of cells; additionally, you can place borders around individual cells.
We might be familiar with the concept of adding colours for cells depending on the values of those cells; but, what about creating borders in Excel based on the values of the cells? Conditional formatting in Excel is discussed here, namely how it can be used to add borders to cells based on the values of those cells.
Border Cells Based on Values with Conditional Formatting in Excel
Suppose we have a table called Marks, and we want to border cells in Column B that contain greater than equal 35 marks each. You can accomplish this in the following manner.
Let’s understand step by step with an example.
Step 1
Let’s assume, we have a student’s marks list. Please refer to the screenshot below for the same.

Step 2
Choose the range that contains the cells that you want to border. In our particular scenario, we will be using the range B2:B10. On the Home menu, select Conditional Formatting click New Rule to create a new rule. Check out the screenshot below for the same.

Step 3
Now you are at the New Formatting Rule dialog box, and you need to click in the Select a Rule Type box to highlight the Use a formula to determine which cells to format option. Enter the following formula into the box labelled Format values where this formula is true. Then select Format button.
Formula
=B2>=35

Step 4
In the subsequent Format Cells dialog box, navigate to the Border tab, specify a line style and in the Line section, click the Outline button in the Presets section, and click OK button. Please refer to the below screenshot for the same.

Step 5
In the New Formatting Rule dialogue box, click the OK button. As demonstrated in the image below, all cells with marks greater than or equal to 35 now have extra borders.

Conclusion
In this tutorial, we explained how you can border cells based on cell values by using conditional formatting rule in Excel.
- Related Articles
- How to AutoFilter Rows Based on Cell Values in Excel?
- How to Auto-Insert Rows Based on Cell Values in Excel?
- How to Auto-Number a Column Based on the Cell Values on Another Column in Excel?
- How to Average Cells Based on Multiple Criteria in Excel?
- How to change value based on cell color in Excel?
- How to Auto-Strikethrough Based on Cell Value in Excel?
- How to Automatically Send Email Based on Cell Value in Excel?
- How to Copy a Column Based on Cell Value to Another Excel Sheet?
- How to Convert One Cell to Multiple Cells/Rows in Excel?
- How to clear restricted values in cells in Excel?
- How To Add Text Cells Together Into One Cell In Excel?
- How to Average Cells Ignoring Error Values in Excel?
- How to add a border to cells by using IF statement in Excel
- How to grey out cells based on another column or drop down list choice in excel?
- How to Auto Change the Shape and Size Based on a Specified Cell Value in Excel?
