



Then the spaces are added between characters or every digit of the specified cells. For adding space between characters:Ĭhoose 1st letter is uppercase/lowercase option in the drop-down list, and finally click the OK button.Ĭhoose 1st character is number option in the drop-down list, and finally click the OK button. In the Add Text dialog box, click on the Text box, and press the Space key once to enter a space into the text box, then select the Only add to option. Select the cells you need to add space between characters or every digit, then click Kutools > Text > Add Text. Please do as follows.īefore applying Kutools for Excel, please download and install it firstly.ġ. If the VBA code is complicate for you, you can try the Add Text utility of Kutools for Excel. Note: For adding space between every digits, please change the cell reference in the formula to the one with numbers as you need.

In this case, you can see spaces are added between characters of cell B2. Select a blank cell, enter formula =AddSpace(B2) into the Formula Bar, then press the Enter key. Press Alt + Q keys to close the Microsoft Visual Basic for Applications window and get back to the Excel window.Ĥ. VBA code: Add space between characters or every digits Function AddSpace(Str As String) As StringĪddSpace = AddSpace & Mid(Str, i, 1) & " "ģ. Then copy and paste the following code into the Module window. In the Microsoft Visual Basic for Application window, click Insert > Module. Press Alt + F11 keys simultaneously to open the Microsoft Visual Basic for Applications window.Ģ. You can use the following user-defined function to add space between characters or every digits in Excel.ġ. Supposing you have a list of text strings or numbers, for adding space between characters or every digits, what can you do? The following methods can help you solve this problem.Īdd space between characters or every digit with user-defined functionĪdd space between characters or every digit with Kutools for Excel How to add space between characters or every digit in Excel?
