How to Align Colons in Excel (4 Easy Methods)

To demonstrate how to align colons in Excel, suppose we have an Age List of Students, which includes the Name and Age in Years, separated by a colon.

how to align colon in excel

Let’s align those colons using various methods.


Method 1 – Applying REPT and FIND Functions

How to Align Colon in Excel

Steps

  • Create a new column in Column C.

How to Align Colon in Excel Applying REPT and FIND Functions

  • Select cell C5.
  • Enter the following formula:
=REPT(" ",16-FIND(":",B5))&B5

Formula Breakdown

  • Here, the FIND function locates the position of the colon ( : ) in the text string in cell B5. It returns the number of the starting position of the colon from the first character of the text string.
  • We used 16 as the maximum number of characters before the colon plus 1. In our dataset, Emily Pattinson has the highest number of characters (15) before the colon. Hence 16 (15+1).
  • Then, we used the REPT function, which repeats text a specified number of times. Here, we give a blank space as our Text to repeat. And the Number_times is the output of the FIND function subtracted from 16.
  • Lastly, we concatenated cell B5 at the end of those blank spaces.
  • Press ENTER.

How to Align Colon in Excel Applying REPT and FIND Functions

  • Apply a monotype font. In this case, we used Courier New.

How to Align Colon in Excel Applying REPT and FIND Functions

  • Drag the Fill Handle tool to copy the formula to the remaining cells of Column C.

How to Align Colon in Excel Applying REPT and FIND Functions

  • Select the cells in the C5:C14 range.
  • In the Home tab, select All Borders.

How to Align Colon in Excel Applying REPT and FIND Functions

  • Colons are aligned as follows:

How to Align Colon in Excel Applying REPT and FIND Functions


Method 2 – Using Custom Format Cells Option

The most popular and common method to align colons is to use the Custom Format Cells option.

Here, we have the Names and Ages in different columns.

How to Align Colon in Excel Applying Custom Format Cells Option

Let’s add and align colons at the end of each name.

Steps

  • Select the cells in the B5:B14 range.
  • In the Home tab. click on the Number group.
  • Click on the dialog box launcher arrow at the bottom right corner of the dialog box that opens.
  • Alternatively, simply press Ctrl + 1 to open the Custom Format Cells dialog box.

How to Align Colon in Excel Applying Custom Format Cells Option

  • The Format Cells dialog box opens.
  • Select Custom from the menu.
  • Type @ * \: in the box.
  • Click OK.

How to Align Colon in Excel Applying Custom Format Cells Option

  • A right aligned colon is added automatically at the end of each name.

How to Align Colon in Excel Applying Custom Format Cells Option

Read More: How to Align Currency Symbol in Excel


Method 3 – Inserting a New Column

How to Align Colon in Excel Inserting a New Column

Steps

  • Right-click on Column C.
  • Select Insert from the options.

How to Align Colon in Excel Inserting a New Column

  • A new column is inserted at Column C.

How to Align Colon in Excel Inserting a New Column

  • Give a header to the newly created column (Colon).
  • Input a colon in each cell in the C5:C14 range.

How to Align Colon in Excel Inserting a New Column

  • Reduce the Column Width of Column C.
  • Select the B5:B14 range and select Align Right.
  • Select the D5:D14 range and select Align Left.

How to Align Colon in Excel Inserting a New Column

  • To make it more visually appealing, apply Outside Borders only to the table.

Inserting a New Column

Read More: How to Left Align in Excel


Method 4 – Employing Align Right Option

Employing Align Right Option

Steps

  • Add a colon at the end of the Name in each cell in our previous dataset.

Employing Align Right Option

  • Select the B5:B14 range.
  • Select Align Right from the Alignment group in the Home tab.

Employing Align Right Option

  • Colons are aligned to the right side of the cells.

Employing Align Right Option

  • To improve display, remove All Borders formatting and apply Outside Borders to the data table.

Employing Align Right Option


Download Practice Workbook


Related Articles


<< Go Back to Alignment in Excel | Excel Cell FormatLearn Excel

Get FREE Advanced Excel Exercises with Solutions!
Shahriar Abrar Rafid
Shahriar Abrar Rafid

Shahriar Abrar Rafid, BSc, Naval Architecture and Marine Engineering, Bangladesh University of Engineering and Technology, Bangladesh, has worked with the ExcelDemy project for more than 1 year. He has written over 100+ articles for ExcelDemy. He is a professional visual content developer adept at crafting scripts, meticulously editing Excel files, and delivering insightful video tutorials for YouTube channels. His work and learning interests vary from Microsoft Office Suites and Excel to Data Analysis, VBA, and Video recording and... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo