Alignment in Excel (Types, Change, Shortcut)

Alignment in Excel

In this Excel tutorial, we will discuss how to apply different types of alignment in Excel. We will use different techniques like using control text options and the Format Cells dialog box to apply different types of alignment. We will also explain how to change alignment in Excel, and how to align numbers based on a custom number format as well as by using functions. In the following image, we display how to change the alignment from the ribbon. There are vertical and horizontal alignment options, along with Orientation, Indentation, Wrap Text, and Merge & Center options. All the other options are available if you click on the marked arrow in the bottom-right corner of the Alignment group . Download Practice Workbook

Alignment in Excel.xlsx

What Is Alignment in Excel?

Different Alignment for Different Data

Generally, alignment refers to the arrangement and positioning of elements within a document. In Excel, it refers to the positioning of cell contents within a cell. To customize the appearance and layout of data in cells, there are various types of alignments available in Excel, like Horizontal alignment, Vertical alignment, Text Orientation, and so on. Combining these alignment options, we can make data easily understandable and more visually organized in Excel. The default alignment for numbers and text is different in Excel. For example, the default alignment of number, date, time, and currencies is the right bottom alignment, while the text has the left bottom alignment. The following image shows the different default alignments for different data types.

What Are the Excel Alignment Options and How to Use Them?

Method 1 – Horizontal and Vertical Alignment Options

The two main alignment options in Excel are the horizontal and vertical alignments of text. Each has three different alignment options.

1.1 – Horizontal Alignment of Cells in Excel

I – Left Alignment To apply the Left alignment to cells, select them first. Then choose the left align option as shown in the following image. Options to Apply Align LeftThe selected cells will look like the image below. Output of Alignment Align LeftII – Center Alignment To apply the Center horizontal alignment, select the cell or your desired area and click on the ribbon like in the following image. Center Horizontal Alignment of CellsThe selected cells will look like the image below. Output of Center AlignmentIII – Right Alignment The third type of horizontal alignment is Align Right. Like in the methods described above, select the text to which you want to apply this alignment, then follow the steps shown in the following image. How to Choose Align Right AlignmentThe selected data will look like the following image. Output of Align Right Alignment

1.2 – Vertical Alignment of Cells

I – Top Alignment To position the text or content in the upper part of a cell, choose Top Align. Choose the Top option in the Vertical: drop-down menu of the Format Cells dialog box. Vertical Top Align from Format BoxThe output of this alignment looks like the following image. Output of Applying Top AlignII – Middle Alignment To apply Middle Align to your cell contents, select the cell first, then follow the steps in the image below. How to Apply Middle Align to CellsThe selected area will look like the image below. Output of Middle AlignmentIII – Bottom Alignment The last type of vertical alignment is Bottom Align. The image below shows how to apply bottom alignment in cells. Apply Bottom Alignment to CellsThe output looks like the following image. Output of Applying Bottom Align

Note: Like with Horizontal alignment, you can change the Vertical Alignment from the Excel Ribbon.

Vertical Alignment from Ribbon

Method 2 – Changing Text Orientation

Change Text Orientation-01

Click to see the full view of image

For example, by placing 82 in the Degrees box, the output is as in the image below.

Output of Changing Orientation

Method 3 – Changing Indentation

Indentation in Excel is the increase or decrease of space between the left and right margin of a paragraph. There are 2 options available in Excel by which you can increase or decrease the indentation of text.

Indentation Options in Excel

3.1 – Increase Indentation of Texts

Increase Alignment Option in Excel

The first output will be like the following image.

First Output of Increasing Indentation

Second Output of Increasing Indentation

Note: You may decrease the indentation in the same way by selecting the Decrease Indent option on the ribbon.

Method 4 – Wrapping Text to See Very Long Text in Multiple Lines

When the text in a cell is very long, Excel has some problems accommodating it. The text may expand to the next cell, or it may be difficult to read the contents. We can use Wrap Text to solve the issue.

Select and Apply Wrap Text to Cells

The output will be like the following image.

Output of Applying Wrap Text

Method 5 – Using the Merge and Center Command

To combine multiple cells into one, choose the Merge & Center option in the Home tab.

Way to Apply Merge Cells Option

Note: Merge and center option deletes all the contents of the merged cells except the first cell.

More Alignment Options Available in the Format Cells Dialog Window

Option 1 – Justify Mode in Horizontal Alignment

Justification gives text a cleaner and more formal look by adding white space between the words in each line so that all the lines are the same length.

To apply the Justify tool to your text:

Apply Justify Alignment

In the following image is the output before and after applying Justify alignment to a certain text.

Output of Justify Alignment

Note: We have applied Justify only to the horizontal alignment. You can also apply it to vertical alignment. You can also apply Fill and then Justify consecutively to merge text from multiple rows into one cell.

Option 2 – Filling a Whole Cell with the Current Content

Suppose you need to write the same letter in a cell multiple times. To automate this tiresome job, use the Fill feature.

Applying Fill under Horizontal Alignment

The cell will be filled with the same letter

Output of Applying Fill Alignment

Option 3 – Using the Shrink to Fit Command

Another way to represent large text in a single cell is using Shrink to Fit.

Reason to Apply Shrink to Fit

Use Format Cells to Shrink to Fit Cells

The output will be like the following image.

Output of Applying Shrink to Fit

Option 4 – Using the Center Across Selection Command

The Center Across Selection command aligns the content of any cell centrally. Suppose we have a dataset where all the cells contain different values that have default alignment. We will change the alignment into Center Across Selection.

Center Across Selection Command

The following image illustrates Center Across Selection alignment.

Output of Center Across Selection

Option 5 – Using the Distributed (Indent) Command

The last Horizontal alignment that we will cover is Distributed (Indent). The process is exactly the same as using the Center Across Selection command. Just select the Distributed (Indent) command in the Horizontal: drop-down option instead of the Center Across Selection command.

Applying the Distributed(Indent) Command

The output will be similar to the following image.

Output of Distributed(Indent) Command

Option 6 – Distributing Text Vertically

To distribute text vertically:

The output will look like the image below.

Output of Applying the Distribute Text Vertically

Option 7 – Using the Right-to-Left Option to Change the Text Reading Direction

This option is dedicated to those languages that have default right-to-left reading directions like Arabic. Applying this feature to other languages is not possible. However, in the following image is the method to change the default orientation using the Format Cells dialog box.

Applying the Right-to-Left Reading Direction

Keyboard Shortcuts for Alignment in Excel

There are keyboard shortcuts for most of the methods described above:

Name of Alignment Shortcut Keys
Align Left ALT + H + A + L
Center ALT + H + A + C
Align Right ALT + H + A + R
Top Align ALT + H + A + T
Middle Align ALT + H + A + M
Bottom Align ALT + H + A + B

How to Revert to the Default Alignment of Cells

Reverting to default alignments of cells is a simple task.

Steps:

Revert Default Alignments of Cells

To illustrate, suppose we have a dataset where the data is in a different alignment to the default alignment. Here’s how it looks before and after being reset into default alignment.

Reverting to Default Alignment Output

How to Change the Alignment of a Number Using a Custom Format

First step is to open the Custom Number Format option:

Custom Number Format for Alignment

In the image below, we have a dataset that contains different numbers. We will format and align the numbers using the custom number format.

Dataset to Apply Custom Number Format

#,##0.00
#,##0.00_);[Red](#,##0.00)

The result of applying these two formats will be similar to the following image.

Output of Applying Custom Number Formatting

Things to Remember

Frequently Asked Questions

1. How can I align the content in merged cells to ensure consistency across the merged area?

Answer: Alignment for merged cells is identical to normal cells. Apply horizontal and vertical alignment and ensure consistency of the content in the merged cell.

2. Can I apply conditional formatting based on the alignment of cell contents in Excel?

Answer: No, you cannot directly apply conditional formatting based on the alignment of cells. Conditional formatting does not have the built-in functionality to consider the alignment of cells.

3. What is the difference between “Merge Cells” and “Center Across Selection” for aligning content across multiple cells?

Answer: Merge Cells combines selected cells into one cell, discarding content from other cells, whereas Center Across Selection horizontally centers content across selected cells without merging them, maintaining separate cells.

Alignment in Excel: Knowledge Hub