How to Apply Double Accounting Underline Format in Excel

The following image gives an overview of this Excel tutorial. On the right side of the image, you can see the outcome of the methods explained in this article for applying the double accounting underline format.


2 Ways to Apply Double Accounting Underline Format in Excel

The sample data has some seller names in the Salesman column and, respectively, their product of sales in the Product column, and sales amount in the Net Sales column. The net sales amounts are in the Accounting Number Format (ANF).


Method 1 – Using the Format Cells Dialog Box

  • Select the cells that you want to apply the double accounting underline format. In our sample data, the cells selected for formatting are D5:D10.
  • Right-click on the selected cells, and from the context menu, choose Format Cells. Alternatively, go to the Home tab and the Font group, then select the Dialog Box Launcher button ().
    Shortcut:
    Press Ctrl + 1 to directly open the Format Cells dialog box.
    Insert Double Accounting Underline with Format Cells Dialog Box in ExcelThe Format Cells dialog box will appear.
  • Click on the Font tab and select Double Accounting from the Underline field.
    Insert Double Accounting Underline with Format Cells Dialog Box in Excel
  • Click OK.

Insert Double Accounting Underline with Format Cells Dialog Box in Excel

Note: No dedicated keyboard shortcut exists for applying a double accounting underline format in Excel.
And remember that, there exists a Double Underline option in the Font group of the Home tab of Excel, which is not similar to the double accounting underline. To apply a double underline, select your data ranges and click on Home tab > Font group > Underline dropdown > Double Underline. Or, press Alt + H + 3 + D sequentially to apply a double underline (not double accounting underline).
The functionality of keyboard shortcuts may vary among Excel Versions. This tutorial uses Excel 365 for all of its purposes.


Method 2 – Using Excel VBA

  • Open the Visual Basic Editor by clicking on Visual Basic from the Developer tab.
    Shortcut: Press Alt + F11 to open the Visual Basic Editor directly.
    Apply Excel VBA to Insert Single Accounting Underline Format
  • Click on Insert and select Module. Or, right-click on any item in the project explorer on the left and select Insert then Module.
    Apply Excel VBA to Insert Single Accounting Underline Format
  • Copy and paste the following code into the module:
    Sub Double_Accounting_Underline()
    Selection.Font.Underline = xlUnderlineStyleDoubleAccounting
    End Sub
  • Press Ctrl + S and save the workbook as an Excel Macro-Enabled Workbook (*.xlsm).
    Save Excel as xlsm file
  • Close the VBA Editor and select your data range. Our selected data range is D5:D10.
  • Run the VBA macro. To run the macro, follow one of the steps below:
    • Press Alt + F8 to open the Macro dialog box.
      OR
    • Select Macros from the Developer tab, then choose Double_Accounting_Underline from the list of Macro name and click Run.

    Shortcut: You can also run the macro from the VB Editor. Select your cells, return to the VB Editor, and press F5.


Download the Practice Workbook


Frequently Asked Question

How to apply single accounting underline format in Excel?

To apply the Single Accounting Underline format in Excel, simply select the target cells, open the Fromat Cells dialog box (Ctrl + 1), and find the Underline field in the Font tab. Click on the drop-down arrow and choose Single Accounting to instantly apply a single accounting underline under the characters.

Can I customize the appearance of the double accounting underline in Excel?

Yes, you can customize the line style, color, and other formatting options by right-clicking on the selected cells, choosing Format Cells, and navigating to the Font tab.

How can I remove the double accounting underline format in Excel?

To remove the double accounting underline format in Excel, select the cells or range where the formatting is applied. Click on Home tab > Font group > Underline icon. Alternatively, by selecting your cells and pressing Ctrl + U or Ctrl + 4 twice from the keyboard, you can remove the formatting of double accounting underline.


<< Go Back to Accounting Number Format | Number Format | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Aung Shine
Aung Shine

Aung Shine completed his bachelor’s in Electrical and Electronics Engineering from Bangladesh University of Engineering and Technology. It has been almost 2 years since he joined SOFTEKO and actively working on the ExcelDemy project. Currently he works as a Team Leader where he guides his team members to create technical content. He has published 150+ articles and reviewed 50+ articles. He has also solved various user problems before. He has interests in Data Analysis, Power Query, Advanced Excel,... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo