

- #Single accounting underline in excel update#
- #Single accounting underline in excel code#
- #Single accounting underline in excel download#
- #Single accounting underline in excel free#
From the Font tab, select “Single Accounting” style from the drop-down list. Select cell B3 as in the previous picture.ģ. In a financial statement, you often see numbers displayed with a single or double underline. From the category, select “Currency” and highlight the last options from the “Negative numbers:”.ĥ. To display a negative number using currency style (e.g., display in red and negative sign in front).Ĥ. Additionally, negative numbers are in parathesis, and zero values or displayed as hyphens. Note: The difference between them is that (1) Currency style puts a dollar sign at the front of each number without alignment, (2) Accounting style puts a dollar sign at the front of each number and aligns them. From the Font tab, select Single Accounting style from the drop-down list. Select cell B3 as in the previous picture. Now, apply “Currency format” from the Home tab. In a financial statement, you often see numbers displayed with a single or double underline. Apply “Currency format” from the Home tab.ģ. To understand the difference between currency vs accounting format in Excel, let’s take a look at the examples below. Also please visit my website vs Accounting Format in Excel Display Negative Numbers | Financial Statement Styleīoth Currency and Accounting styles are formatting styles that Excel uses to display numbers in cells. > Font 's tab -> check 'normal font' -> click OK.
#Single accounting underline in excel free#
If you need assistance with your code, or you are looking for a VBA programmer to hire feel free to contact me. Worth noting, however, is that numbers will not be reflected in the same way as text unless they are changed to accounting format (as seen in the answer provided by ashleedawg).
#Single accounting underline in excel code#
Excel VBA Get Underline (Sample Code + Download).For this, you will go through right click > format cells (CTRL+1) approach only. CATCH This will not allow you to do accounting single / double underlining. Click the small arrow next to U to expose option to insert double underline. Select the dropdown menu on the underline option. You won’t find it directly in the ribbon, so you have to. In addition to the standard underline, you can also use the Accounting Underline. When you click the triangle you will have a choice whether you want your text to be Underlined or Double Underlined. To do this, use the following steps: Highlight what you want to double underline. You will find the underline button on the right side of the bold and italic buttons. The If statement below checks if the user selected the Double Accounting underline style from the drop down list: You can go to Home tab > Click on Underline U to insert single underline. You can also choose to double underline things in addition to single underline. The If statement below checks if the user selected the Single Accounting underline style from the drop down list: The If statement below checks if the user selected the Double underline style from the drop down list: The If statement below checks if the user selected the Single underline style from the drop down list:

The If statement below checks if the user selected “None” from the drop down list:

The event handler loops through the columns and makes the necessary changes: Range(Cells(2, i), Cells(2, i)).Font.Underline _ĮlseIf Cells(1, i) = "Single Accounting" ThenĮlseIf Cells(1, i) = "Double Accounting" Then Private Sub worksheet_change( ByVal target As Range) 'executes when the user selects a new value from the drop down lists On clicking on Accounting, it may give us the accounting format value. Select the cells, click on the Home tab, and select the Accounting from the Number Format drop-down. The event handler executes when the user selects a new value from the drop down lists: First, we can use the Accounting number format in Excel in the Account Number Format button on the Home tab of the ribbon. The program uses a Worksheet_Change event handler. The data for the drop down lists are stored in sheet 2: For more information about creating drop down lists in excel please see Excel VBA Drop Down Lists. The drop down lists are created using data validation.
#Single accounting underline in excel update#
In the figure below the user is selecting an underline style for cell C2 from the drop down list in cell C1:Īfter making the selection the underline style is update in the cell below: When the user makes a selection the underline style will change in row 2: The user selects an underline style from the drop down lists in row 1.
#Single accounting underline in excel download#
You can download the file and code related to this article here.

There are 4 different underline style the user can select from:įor more information about the different underline types and their associate VBA code please see Excel VBA, Underline Font Style. In this article I’ve provided an example on how you could use VBA to set underlines for cells and ranges.
