Featured post

Trick to get the sum row wise or column wise

    Row-wise or Column-wise Sum Using a Shortcut: Select the range of numbers in the table that you want to sum (either a column or a row, or even multiple columns or rows). Press the Alt key on your keyboard. After pressing Alt , press the +   = key . This is the AutoSum shortcut. If you're summing a column , Excel will automatically fill the cell directly below the selected range with the sum of that column. If you're summing a row , Excel will automatically fill the cell directly to the right of the selected range with the sum of that row.   The AutoSum feature ( Alt + = ) automatically sums numbers in a contiguous range of cells.    

AUTO BORDER IN EXCEL


1. Quick Auto Border for Entire Table

To quickly add borders to an entire table or selection, use the Format as Table option:

    • Select the range of cells you want to format.
    • Go to the Home tab on the ribbon.
    • Click on Format as Table and choose a style.
    • This automatically applies borders around your data, giving your table a clean, organized look. You can adjust the colour or style of the border if needed.

2. Using Conditional Formatting for Borders

Excel’s Conditional Formatting tool lets you apply borders based on specific conditions, which is great for automatically highlighting certain data:

    • Select the cells you want to format.
    • Go to Home > Conditional Formatting > New Rule.
    • Choose a rule (e.g., cells greater than a specific value).
    • Under the Format button, click on Borders and choose your desired border style.
    • The borders will automatically adjust based on the rule you've set.

3. Auto Borders with Table Styles

When you insert a Table (using Ctrl + T), Excel automatically applies borders to all the cells in the table. You can customize the table style:

    • Select any cell in the table.
    • Go to Table Design on the ribbon and choose from various predefined styles.
    • You can further customize by clicking Borders from the Font group and selecting the appropriate border style.

4. Using the Fill Handle for Quick Borders

Quickly apply borders to adjacent cells using the Fill Handle:

    • Select a range of cells with borders.
    • Hover over the small square at the bottom-right corner of the selection (the Fill Handle).
    • Drag to extend the selection to neighbouring cells, and Excel will copy the border formatting along with the content.

5. Adding Borders to Empty Cells

If you want to add borders to empty cells automatically:

    • Select the entire range where you want to add borders (including empty cells).
    • Go to Home > Borders and select All Borders. This will apply borders to both filled and empty cells within the selected range.

6. Keyboard Shortcuts for Borders

Use these keyboard shortcuts to speed up your workflow when applying borders:

    • Ctrl + Alt + 0: Add or remove borders around the selected cells.
    • Alt + H + B + A: Apply All Borders to the selection.
    • Alt + H + B + T: Apply Thick Box Border to the selected range.

7. Automatically Add Borders for Data Validation

If you're working with data validation (e.g., drop-down lists), you can use borders to highlight valid entries:

    • Select the cell or range where you applied data validation.
    • Set up your data validation rules under Data > Data Validation.
    • Add borders to these cells so that users can easily identify which cells require input.

8. Using VBA for Advanced Auto Border Features

For more advanced users, VBA (Visual Basic for Applications) can create custom macros to apply borders automatically based on specific criteria. Here’s a simple script to add borders:

 VBA.......

Sub AutoBorders()

    Dim rng As Range

    Set rng = Selection

    With rng.Borders(xlEdgeBottom)

        .LineStyle = xlContinuous

        .ColorIndex = 0

        .TintAndShade = 0

        .Weight = xlThin

    End With

    ' Repeat for other borders as needed

End Sub

This script adds a thin continuous bottom border to your selected range. You can customize it to apply borders on other edges or with different styles.


9. Adjusting Border Styles

Once borders are applied, you can adjust the styles:

    • Click the Borders button in the Font group on the Home tab.
    • Choose from a variety of border styles: solid, dotted, dashed, thick, etc.
    • Customize the thickness and colour to suit your needs.


 

Comments

POPULAR POSTS

essential BAsic excel formulas a quick guide

Some important tips to learn MS Word

Insert Serial Numbers in Roman Numerals, Alphabets, and Numbers in Excel

How to find sum of numbers with units in a range in Excel?

Rearrange columns in excel sheet using a quick trick

TIPS TO INSERT A SERIAL NUMBER IN AN EXCEL SHEET