Cell formatting for excel

Change the format of a cell

You can apply formatting to an entire cell and to the data inside a cell—or a group of cells. One way to think of this is the cells are the frame of a picture and the picture inside the frame is the data. 

Your browser does not support video. Install Microsoft Silverlight, Adobe Flash Player, or Internet Explorer 9.

Formal Cells

  1. Select the cells.

  2. Go to the ribbon to select changes as Bold, Font Color, or Font Size.

Apply Excel Styles 

  1. Select the cells.

  2. Select Home > Cell Style and select a style. 

Modify an Excel Style

  1. Select the cells with the Excel Style.

  2. Right-click the applied style in Home > Cell Styles.

  3. Select Modify > Format to change what you want. 

Need more help?

You can always ask an expert in the Excel Tech Community or get support in the Answers community.

See Also

Format text in cells

Format numbers

Format a date the way you want

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

This tutorial about cell format types in Excel is an essential part of your learning of Excel and will definitely do a lot of good to you in your future use of this software, as a lot of tasks in Excel sheets are based on cells format, as well as several errors are due to a bad implementation of it.

A good comprehension of the cell format types will build your knowledge on a solid basis to master Excel basics and will considerably save you time and effort when any related issue occurs.

A- Introduction

Excel software formats the cells depending on what type of information they contain.

To update the format of the highlighted cell, go to the “Home” tab of the ribbon and click, in the “Number” group of commands on the “Number Format” drop-down list.

Format of the selected cell in Excel

The drop-down list allows the selection to be changed.

Number format drop-down list in Excel

Cell formatting options in the “Number Format” drop-down list are:

  • General
  • Number
  • Currency
  • Accounting
  • Short Date
  • Long Date
  • Time
  • Percentage
  • Fraction
  • Scientific
  • Text
  • And the “More Number Formats” option.

Clicking the “More Number Formats” option brings up additional options for formatting cells, including the ability to do special and custom formatting options.

These options are discussed in detail in the below sections.

Cell format types in Excel are: General, Number, Currency, Accounting, Date, Time, Percentage, Fraction, Scientific, Text, Special (Zip Code, Zip Code + 4, Phone Number, Social Security Number), and Custom. You can get them from the “Number Format” drop-down list in the “Home” tab, or from the launcher arrow below it.

I will detail each one of them in the following sections:

1- General format

By default, cells are formatted as “General”, which could store any type of information. The General format means that no specific format is applied to the selected cell.

When information is typed into a cell, the cell format may change automatically. For example, if I enter “4/4/19” into a cell and press enter, then highlight the cell to view details about it, the cell format will be listed as “Date” instead of “General”.

Excel automatically formats dates
Excel automatically formats dates

Similarly, we can update a cell’s format before or after entering data to adjust the way the data appears. Changing the format of a cell to “Currency” will make it so information entered is displayed as a dollar amount.

Currency format of a cell in Excel
Currency format of a cell in Excel

Typing a number into this cell and pressing enter will not just show that number, but will instead format it accordingly.

Before pressing enter, Excel shows the value which was typed: “4”.

Entering data in already formatted cell in Excel
Entering data in an already formatted cell in Excel

After pressing enter, the value is updated based on the formatting type selected.

Data formatted as currency in Excel
Data formatted as currency in Excel

Don’t let the format type showed in the illustration at the drop-down list confusing you; it is reflecting the cell below (i.e. E4), since we validated by an Enter.

2- Number format

Cells formatted as numbers behave differently than general formatted cells. By default, when a number is entered, or when a cell is formatted as a number already, the alignment of the information within the cell will be on the right instead of on the left. This makes it easier to read a list of numbers such as the below.

Numbers in Excel aligned by default to the right
Numbers in Excel aligned by default to the right

Note in the above screenshot that since we didn’t choose the “Number” format for our cells, they still have a “General” one. They are numbers for Excel (meaning, we can do calculations on them), but they didn’t have yet the number format and its formatting aspects:

You can set the formatting options for Excel numbers in the “Format Cells” dialog box.

To do that, select the cell or the range of cells you want to set the formatting options for their numbers, and go to the “Home” tab of the ribbon, then in the “Number” group of commands, click on the launcher of the dialog box (the arrow on the right-down side of the group).

Launcher of the "cell format" dialog box in Excel
Launcher of the “Format Cells” dialog box in Excel

Excel opens the “Format Cells” dialog box in its “Number” tab. Click in the “Category” pane on “Number”.

Number formatting in "Format Cells" dialog box - Excel
Number formatting in “Format Cells” dialog box – Excel
  • In this dialog box, you can decide how many decimal places to display by updating options in the “Decimal places” field.

Note that this feature is also available in the “Home” tab of the ribbon where you can go to the “Number” group of commands and click the Increase Decimal Increase decimal command in Excel or Decrease Decimal Decrease decimal command in Excel buttons.

Here is the result of consecutive increasing of decimal places on our example of data (1 decimal; 2 decimals; and 3 decimals):

Increase decimal in Excel
Increase decimal in Excel
  • You can also decide if commas should be shown in the display as a thousand separator, by updating the “Use 1000 Separator (,)” option in the “Format Cells” dialog box.

This feature is also available in the “Home” tab of the ribbon by clicking the “Comma Style” button Comma style button in Excel in the “Number” group of commands.

Note that using the Comma Style button will automatically set the format to Accounting.

Apply the thousand separator on numbers in Excel
Apply the thousand separator on numbers in Excel
  • Another option from the Format Cells dialog box is to decide how negative numbers should display by using the “Negative numbers” field.

There are four options for displaying negative
numbers.

  1. Display
    negative numbers with a negative sign before the number.
  2. Display
    negative numbers in red.
  3. Display
    negative numbers in parentheses.
  4. Display
    negative numbers in red and in parentheses.
Formats of negative numbers in Excel

3- Currency format

Cells formatted as currency have a currency symbol such as a dollar sign $ immediately to the left of the number in the cell, and contain two numbers after the decimal by default.

The alignment of numbers in currency formatted cells will be on the right for readability.

Excel numbers formatted with currency type

Currency formatting options are similar to
number formatting options, apart from the currency symbol display.

  • As with regular number formatting, you can decide, in the “Format Cells” dialog box, how many decimal places to display by updating the field “Decimal places”.
Excel currency format in format cells dialog box

You can also find this feature in the “Home” tab of the ribbon, by going to the “Number” group of commands and clicking the Increase Decimal Increase decimal command in Excel or Decrease Decimal Decrease decimal command in Excel.

Increase and decrease decimals for currency numbers in Excel
  • You can also decide what currency symbol should be shown in the display by updating the “Symbol” field in the “Format Cells” dialog box.
  • As with regular number formatting, you can also decide how negative numbers should display by updating the “Negative numbers” field in the “Format Cells” dialog box.

There are four
options for displaying negative numbers.

  1. Display
    negative numbers with a negative sign before the number.
  2. Display
    negative numbers in red.
  3. Display
    negative numbers in parentheses.
  4. Display
    negative numbers in red and in parentheses.

4- Accounting format

Like with the currency format, cells formatted as accounting have a currency symbol such as a dollar sign $; however, this symbol is to the far left of the cell, while the alignment of numbers in the cell is on the right. Accounting numbers contain two numbers after the decimal by default.

Accounting vs Currency format in Excel

Clicking the “Accounting Number Format” button Accounting number format button in Excel in the “Number” group of commands of the “Home” tab, will quickly format a cell or cells as Accounting.

The down arrow to the right of the Accounting Number Format button allows selection between common symbols used for accounting, including English (dollar sign), English (pound), Euro, Chinese, and French symbols.

Accounting formats in Excel
Accounting formats in Excel

Accounting formatting options in the “Format Cells” dialog box (“Home” tab of the ribbon, in the “Number” group of commands, click on the launcher of the “Number Format” dialog box), are similar to number and currency formatting options.

Accounting format options in Excel
  • You can decide how many decimal places to display by updating its option in the “Format Cells” dialog box.

As mentioned before in this tutorial, this feature is also available directly in the “Home” tab of the ribbon by clicking the Increase Decimal Increase decimal command in Excel or Decrease Decimal Decrease decimal command in Excel buttons in the “Number” group of commands.

  • You can also decide in the “Format Cells” dialog box, what currency symbol should be shown in the display by using the “Symbol” drop-down list.
    This dropdown gives a much broader list of options than the “Accounting Number Format” option in the “Home” tab of the ribbon.

Note that with the Accounting formatting option, negative numbers display in parentheses by default. There are not options to change this.

Negative accounting numbers in Excel

5- Date format

There are options for “Short Date” and “Long Date” in the “Number Format” dropdown list of the “Home” tab.

Date format in Excel

Short date shows the date with slashes separating month, day, and year. The order of the month and day may vary depending on your computer’s location settings.

Long date shows the date with the day of the week, month, day, and year separated by commas.

More options for formatting dates are available in the “Format Cells” dialog box (accessible by clicking in the “Number Format” dropdown list of the “Home” tab and choosing the “More Number Formats” option at the bottom).

Date formatting options in Excel
  • You can choose from a long list of available date formats.
  • You can update the location settings used for formatting the date. This will alter the list of format options in the above list and will adjust the display and potentially the order of the elements (day, month, year) within the date.
    Note the below example when we switch from English (United States) format to English (United Kingdom) format.
play changes with location

6- Time format

Cells formatted as time display the time of
day. The default time display is based on your computer’s location settings.

Time formatting options are available in the “Format Cells” dialog box (accessible by choosing the “More Number Formats” option at the bottom of the “Number Format” dropdown list in the “Home” tab of the ribbon).

Time formatting options in Excel
  • You can choose from a long list of available time formats.
  • You can update the location settings used for formatting the time. This will alter the list of format options in the above list and will adjust the display.

7- Percentage format

Cells formatted as percentage display a percent sign to the right of the number. You can change the format of a cell to a percentage using the “Number Format” dropdown list, or by clicking the “Percent Style” button Percent style button in Excel. Both options are accessible from the “Home” tab of the ribbon, in the “Number” group of commands.

Note that updating a number to a percentage
will expect that the number already contains the decimal. For example:

A cell containing the value 0.08, as a percentage, will show 8%.

A cell containing the value 8, as a percentage, will show 800%.

Percentage formatting options are available in the “Format Cells” dialog box, accessible by clicking on “More Number Formats” of the “Number Format” dropdown list in the “Home” tab of the ribbon.

Percentage formatting options in Excel

8- Fraction format

Cells formatted as a fraction display with a slash
symbol separating the numerator and denominator.

Fraction formatting options are available in the “Format Cells” dialog box, accessible by clicking in the “Home” tab of the ribbon, on “More Number Formats” of the “Number Format” dropdown list.

Fraction formatting options in Excel
  • Note that
    when selecting the format to use for a fraction, Excel will round to the
    nearest fraction where the formatting criteria can be met.

As an example, if the
formatting option selected is “Up to one digit”, entering a fraction with two
digits will cause rounding to occur. For example, with the setting of “Up to
one digit”,

If we enter a value of 7/16, the value displayed will be 4/9, as converting to 9ths was the option with only one digit which required the least amount of rounding.

For another example, if the formatting option selected is “As quarters”, entering a fraction that cannot be expressed in quarters (divisible by four) will also cause rounding to occur.

If we enter a value of 5/8, the value displayed will be 3/4. Excel rounded up to 6/8, or 3/4, which was the closest option divisible by four.

Fraction value display in Excel depends on fraction type chosen
  • Also note
    that for the formatting options with “Up to x digits”, Excel will always round
    down to the lowest exact equivalent fraction when possible.

For example, if we enter a value of 2/4 with one of these formatting options active, the value displayed will be 1/2, as this is the mathematical equivalent. This behavior will not take place for formatting options “As…”, since these specifically determine what the denominator should be.

  • Fractions listed as more than a whole (meaning the numerator is a higher number than the denominator), such as 7/4 will automatically be adjusted into a whole number and a fraction 13/4, where the fraction follows the formatting rules selected.

9- Scientific format

Scientific format, otherwise known as
Exponential Notation, allows very large and small numbers to be accurately
represented within a cell, even when the size of the cell cannot accommodate
the size of the numbers.

The way exponential notation works is to theoretically place a decimal in a spot that would make the number shorter, then describe where to move that decimal to return to the original number.

Examples with large numbers, where the decimal is moved to the left:

Scientific format with decimal moved to the left

For the number 300 to be expressed in
exponential notation, Excel moves the decimal from after the whole number
300.00 to between the 3 and the 00. This is typed out as E+02 since the decimal
was moved two places to the left. The other examples are similar, where the
decimal was moved 6 and 12 places to the left.

Examples with small numbers, where the decimal is moved to the right:

Scientific format with decimal moved to the right

For the number 0.2 to be expressed in
exponential notation, Excel moves the decimal to create a whole number 2. This
is typed out as E-01 since the decimal was moved one place to the right. The
other examples are similar, where the decimal was moved 4 and 10 places to the
right.

Scientific formatting options are listed in the “Format Cells” dialog box, accessible by going to the “Home” tab of the ribbon, and clicking the “More Number Formats” option of the “Number Format” dropdown list.

Scientific format in Excel

The only option available is to alter the
number of decimal places shown in the number prior to the scientific notation.

For example, for the value 11.43 formatted with the scientific format, if we change the Decimal places from 2 to 1, the display will change as follows.

Two decimals: at in Excel with 2 decimal places 

One decimal:  Scientific format in Excel with 1 decimal place  

10- Text format

Cells can be formatted as Text through the
“Number Format” dropdown list, in the “Number” group of commands of the “Home”
tab.

Using the Text format in Excel allows values to be entered as they are, without Excel changing them per the above formatting rules.

In general, when entering a text in a cell, you won’t need to set its type to “Text”, as the default format type “General” is sufficient in most cases.

This may be useful when you want to display numbers with leading zeros, want to have spaces before or after numbers or letters, or when you want to display symbols that Excel normally uses for formulas.

Below are examples of some fields formatted as Text.

Examples of cells formatted as text in Excel

Note that when a number is formatted as Text, Excel will display a symbol showing that there could be a possible error Excel shows error symbol with number formatted as text.

Clicking the cell, then clicking the pop-up icon will show what the error may be and offer suggestions for resolution.

Error of Excel number formatted as text

11- Special format

Special format offers four options in the “Format Cells” dialog box, accessible by going to the “Home” tab of the ribbon, and clicking the launcher arrow in the “Number” group of commands.

Special format in Excel
  • Zip Code

When less than five numbers are entered in Zip
Code format, leading zeros will be added to bring the total to five numbers.

When more than five numbers are entered in Zip Code format, all numbers will be displayed, even though this does not meet the format criteria.

Zip code in Excel
  • Zip Code + 4

Zip Code + 4 format automatically creates a
dash symbol before the last four numbers in the zip code.

When less than nine numbers are entered in Zip
Code + 4 format, leading zeros will be added to bring the total to nine
numbers.

When more than nine numbers are entered in Zip Code + 4 format, extra numbers are displayed prior to the dash symbol .

Zip code + 4 in Excel
  • Phone Number

Phone Number format automatically creates a
dash
before the last four numbers in the phone number. This format also adds
parentheses ( ) around the area code when an area code is entered.

When less than the expected number of digits
are entered in Phone Number format, only the entered digits will be displayed,
starting from the end of the phone number, as shown on the third and fourth
lines, below.

When more than the expected number of digits
are entered in Phone Number format, extra numbers are displayed within the area
code parentheses.

Note that Phone Number format in Excel does not handle the number 1 before an area code. This entry would be treated like any other extra number.

Phone number in Excel
  • Social Security Number

Social Security Number format automatically
creates a dash before the last four numbers in the social security number
and a dash before the last six numbers in the social security number.

When less than nine numbers are entered in
Social Security Number format, leading zeros will be added to bring the total
to nine numbers.

When more than nine numbers are entered in Social Security Number format, extra numbers are displayed prior to the first dash .

Social security number in Excel

12- Custom format

Custom formats can be used or added through the
“Format Cells” dialog box, accessible from the “Number” group of commands in
the “Home” tab of the ribbon by clicking the “Number Format” launcher arrow.

This can be useful if the above formatting options do not work for your needs. Custom number formats can be created or updated by typing into the “Type” field of the “Format Cells” dialog box.

When creating a new custom format, be sure to use an existing custom format that you are okay with changing.

Custom format in Excel

Custom number formats are separated, at
maximum, into four parts separated by semicolons ; .

  • Part 1: How
    to handle positive number values
  • Part 2: How
    to handle negative number values
  • Part 3: How
    to handle zero number values
  • Part 4: How
    to handle text values

Note that if fewer parts are included in the custom format coding, Excel will determine how best to merge the above options: As an example, if two parts are listed, positive and zero values will be grouped.

Note that Excel may update the formatting of some fields to Custom automatically depending on what actions are taken on the field.

C- Common issues caused by wrong cell format types in Excel

1- Common issues due to wrong cell format types in Excel

The most common problems you may encounter with a wrong cell format type in Excel are of 3 types:
– Getting a wrong value.
– Getting an error.
– Formula displayed as-is and not calculated.

Let’s illustrate these 3 cases with some examples:

  • Getting a wrong value

This may occur when you enter a value in an already formatted cell with an inappropriate format type, or when you apply a different format to a cell already containing a value.

The following table details some examples:

Wrong values due to wrong cell format in Excel

Wrong values due to wrong cell format in Excel
  • Getting an error

This occurs when you enter a text preceded with a symbol of a dash, or plus, or equal, as an element of a list.

Error of a text recognized as formula in Excel
Error of a text recognized as a formula in Excel

Excel wrongly interprets the text as a formula and show the error “The formula contains unrecognized text”.

  • Formula displayed as-is and not calculated

In the following example, we tried to calculate the total of prices from cell B2 to B6 using the Excel SUM function, but Excel doesn’t calculate our formula and just displayed it as-is.

Excel formula displayed as is and not calculated

The source of the problem is that the result cell, B7, was previously formatted as text before entering the formula.

2- How to correct wrong cell format type issues in Excel

To correct cell format type issues in Excel, apply the right format in the “Number Format” drop-down list, and sometimes, you’ll also need to re-enter the content of the cell. For cells with formulas displayed as text, choose the “General” format, then double click in the cell and press Enter.

Jeff Golden photo

Jeff Golden is an experienced IT specialist and web publisher that has worked in the IT industry since 2010, with a focus on Office applications.

On this website, Jeff shares his insights and expertise on the different Office applications, especially Word and Excel.


Download Article


Download Article

Knowing how to format your spreadsheet in Excel, the cells in particular, can really help you improve not just the aesthetic perspective of your document, but also its effectiveness in providing relevant information to the viewers of the files. Each cell in Microsoft Excel can be modified and formatted to follow your specific preferences.

  1. Image titled Format a Cell in Microsoft Excel Step 1

    1

    Open your Microsoft Excel. Click the “Start” button on the lower-left corner of your screen and select “All Programs” from the menu. Inside, you’ll find the “Microsoft Office” folder where Excel is listed. Click on Excel.

  2. Image titled Format a Cell in Microsoft Excel Step 2

    2

    Select the specific cell or group of cells that you want to format. Highlight it using your mouse cursor.

    Advertisement

  3. Image titled Format a Cell in Microsoft Excel Step 3

    3

    Open the Format Cells window. Right-click on the cells you’ve selected and select “Format Cells” from the pop up menu to access the “Format Cells” window.

  4. Image titled Format a Cell in Microsoft Excel Step 4

    4

    Set the desired formatting options you want for the cell. There are six formatting options that you can use to customize a cell or group of cells:

    • Number – Defines the format of numerical data entered on the cells such as dates, currency, time, percentage, fraction and more.
    • Alignment – Sets how the data will be visually aligned inside each cells (left, right or centered).
    • Font – Sets all the options related to text fonts such as styles, sizes and colors.
    • Border – Improves the visual appearance of each cell by adding definite lines (borders) around a cell or group of cells.
    • Fill – Sets the background color and pattern formats of each cell on the spreadsheet.
    • Protection – Adds security to cells and data contained inside it by hiding or locking the selected cells or group of cells.
  5. Image titled Format a Cell in Microsoft Excel Step 5

    5

    Save. Click on the “OK” button at the lower right corner of the “Format Cells” window to save any changes you’ve made and apply the formats you’ve set to the selected cells.

  6. Advertisement

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

  • Avoid using formats that are visually irritating such as fill colors that don’t compliment the colors of the fonts, or artistic font styles that are not appropriate for formal documents like the spreadsheet.

  • You can use this method to format cells of new files or existing spreadsheet documents you currently have.

  • When formatting cells in Excel, do it in groups (either by rows or columns) so that your spreadsheet will have a clean and uniform appearance.

Thanks for submitting a tip for review!

Advertisement

About This Article

Article SummaryX

To format a cell in Microsoft Excel, start by highlighting the specific cell you want to format. Then, right-click on the cell and click on «Format Cells.» Choose whatever formatting you want for the cell from the different options, then click «Okay.» That’s all there is to it! For a step-by-step walkthrough with pictures, check out the full article below!

Did this summary help you?

Thanks to all authors for creating a page that has been read 72,532 times.

Is this article up to date?

Lesson 9: Formatting Cells

/en/excel2013/modifying-columns-rows-and-cells/content/

Introduction

All cell content uses the same formatting by default, which can make it difficult to read a workbook with a lot of information. Basic formatting can customize the look and feel of your workbook, allowing you to draw attention to specific sections and making your content easier to view and understand. You can also apply number formatting to tell Excel exactly what type of data you’re using in the workbook, such as percentages (%), currency ($), and so on

Optional: Download our practice workbook.

To change the font:

By default, the font of each new workbook is set to Calibri. However, Excel provides many other fonts you can use to customize your cell text. In the example below, we’ll format our title cell to help distinguish it from the rest of the worksheet.

  1. Select the cell(s) you want to modify.

    Screenshot of Excel 2013Selecting a cell

  2. Click the drop-down arrow next to the Font command on the Home tab. The Font drop-down menu will appear.
  3. Select the desired font. A live preview of the new font will appear as you hover the mouse over different options. In our example, we’ll choose Georgia.

    Screenshot of Excel 2013Choosing a font

  4. The text will change to the selected font.

    Screenshot of Excel 2013The new font

When creating a workbook in the workplace, you’ll want to select a font that is easy to read. Along with Calibri, standard reading fonts include Cambria, Times New Roman, and Arial.

To change the font size:

  1. Select the cell(s) you want to modify.

    Screenshot of Excel 2013Selecting a cell

  2. Click the drop-down arrow next to the Font Size command on the Home tab. The Font Size drop-down menu will appear.
  3. Select the desired font size. A live preview of the new font size will appear as you hover the mouse over different options. In our example, we will choose 16 to make the text larger.

    Screenshot of Excel 2013Choosing a new font size

  4. The text will change to the selected font size.

    Screenshot of Excel 2013The new font size

You can also use the Increase Font Size and Decrease Font Size commands or enter a custom font size using your keyboard.

Screenshot of Excel 2013Modifying the font size

To change the font color:

  1. Select the cell(s) you want to modify.

    Screenshot of Excel 2013Selecting a cell

  2. Click the drop-down arrow next to the Font Color command on the Home tab. The Color menu will appear.
  3. Select the desired font color. A live preview of the new font color will appear as you hover the mouse over different options. In our example, we’ll choose Green.

    Screenshot of Excel 2013Choosing a font color

  4. The text will change to the selected font color.

    Screenshot of Excel 2013The new font color

Select More Colors at the bottom of the menu to access additional color options.

Screenshot of Excel 2013Selecting more colors

To use the Bold, Italic, and Underline commands:

  1. Select the cell(s) you want to modify.

    Screenshot of Excel 2013Selecting a cell

  2. Click the Bold (B), Italic (I), or Underline (U) command on the Home tab. In our example, we’ll make the selected cells bold.

    Screenshot of Excel 2013Clicking the Bold command

  3. The selected style will be applied to the text.

    Screenshot of Excel 2013The bold text

You can also press Ctrl+B on your keyboard to make selected text bold, Ctrl+I to apply italics, and Ctrl+U to apply an underline.

Text alignment

By default, any text entered into your worksheet will be aligned to the bottom-left of a cell, while any numbers will be aligned to the bottom-right. Changing the alignment of your cell content allows you to choose how the content is displayed in any cell, which can make your cell content easier to read.

Click the arrows in the slideshow below to learn more about the different text alignment options.

  • Screenshot of Excel 2013

    Left align: Aligns content to the left border of the cell

  • Screenshot of Excel 2013

    Center align: Aligns content an equal distance from the left and right borders of the cell

  • Screenshot of Excel 2013

    Right Align: Aligns content to the right border of the cell

  • Screenshot of Excel 2013

    Top Align: Aligns content to the top border of the cell

  • Screenshot of Excel 2013

    Middle Align: Aligns content an equal distance from the top and bottom borders of the cell

  • Screenshot of Excel 2013

    Bottom Align: Aligns content to the bottom border of the cell

To change horizontal text alignment:

In our example below, we’ll modify the alignment of our title cell to create a more polished look and further distinguish it from the rest of the worksheet.

  1. Select the cell(s) you want to modify.

    Screenshot of Excel 2013Selecting a cell

  2. Select one of the three horizontal alignment commands on the Home tab. In our example, we’ll choose Center Align.

    Screenshot of Excel 2013Choosing Center Align

  3. The text will realign.

    Screenshot of Excel 2013The realigned cell text

To change vertical text alignment:

  1. Select the cell(s) you want to modify.

    Screenshot of Excel 2013Selecting a cell

  2. Select one of the three vertical alignment commands on the Home tab. In our example, we’ll choose Middle Align.

    Screenshot of Excel 2013Choosing Middle Align

  3. The text will realign.

    Screenshot of Excel 2013The realigned cell text

You can apply both vertical and horizontal alignment settings to any cell.

Cell borders and fill colors

Cell borders and fill colors allow you to create clear and defined boundaries for different sections of your worksheet. Below, we’ll add cell borders and fill color to our header cells to help distinguish them from the rest of the worksheet.

To add a border:

  1. Select the cell(s) you want to modify.

    Screenshot of Excel 2013Selecting a cell range

  2. Click the drop-down arrow next to the Borders command on the Home tab. The Borders drop-down menu will appear.
  3. Select the border style you want to use. In our example, we will choose to display All Borders.

    Screenshot of Excel 2013Choosing a border style

  4. The selected border style will appear.

    Screenshot of Excel 2013The added cell borders

You can draw borders and change the line style and color of borders with the Draw Borders tools at the bottom of the Borders drop-down menu.

Screenshot of Excel 2013Drawing custom borders

To add a fill color:

  1. Select the cell(s) you want to modify.

    Screenshot of Excel 2013Selecting a cell range

  2. Click the drop-down arrow next to the Fill Color command on the Home tab. The Fill Color menu will appear.
  3. Select the fill color you want to use. A live preview of the new fill color will appear as you hover the mouse over different options. In our example, we’ll choose Light Green.

    Screenshot of Excel 2013Choosing a cell fill color

  4. The selected fill color will appear in the selected cells.

    Screenshot of Excel 2013The new fill color

Format Painter

If you want to copy formatting from one cell to another, you can use the Format Painter command on the Home tab. When you click the Format Painter, it will copy all of the formatting from the selected cell. You can then click and drag over any cells you want to paste the formatting to.

Screenshot of Format Painter command

Watch the video below to learn two different ways to use the Format Painter.

Cell styles

Instead of formatting cells manually, you can use Excel’s predesigned cell styles. Cell styles are a quick way to include professional formatting for different parts of your workbook, such as titles and headers.

To apply a cell style:

In our example, we’ll apply a new cell style to our existing title and header cells.

  1. Select the cell(s) you want to modify.

    Screenshot of Excel 2013Selecting a cell range

  2. Click the Cell Styles command on the Home tab, then choose the desired style from the drop-down menu. In our example, we’ll choose Accent 1.

    Screenshot of Excel 2013Choosing a cell style

  3. The selected cell style will appear.

    Screenshot of Excel 2013The new cell style

Applying a cell style will replace any existing cell formatting except for text alignment. You may not want to use cell styles if you’ve already added a lot of formatting to your workbook.

Formatting text and numbers

One of the most powerful tools in Excel is the ability to apply specific formatting for text and numbers. Instead of displaying all cell content in exactly the same way, you can use formatting to change the appearance of dates, times, decimals, percentages (%), currency ($), and much more.

To apply number formatting:

In our example, we’ll change the number format for several cells to modify the way dates are displayed.

  1. Select the cells(s) you want to modify.

    Screenshot of Excel 2013Selecting a cell range

  2. Click the drop-down arrow next to the Number Format command on the Home tab. The Number Formatting drop-down menu will appear.
  3. Select the desired formatting option. In our example, we will change the formatting to Long Date.

    Screenshot of Excel 2013Choosing Long Date

  4. The selected cells will change to the new formatting style. For some number formats, you can then use the Increase Decimal and Decrease Decimal commands (below the Number Format command) to change the number of decimal places that are displayed.

    Screenshot of Excel 2013The applied number formatting

Click the buttons in the interactive below to learn about different text and number formatting options.

Challenge!

  1. Open an existing Excel 2013 workbook. If you want, you can use our practice workbook.
  2. Select a cell and change the font style, size, and color of the text. If you are using the example, change the title in cell A3 to Verdana font style, size 16, with a font color of green.
  3. Apply bold, italics, or underline to a cell. If you are using the example, bold the text in cell range A4:C4.
  4. Try changing the vertical and horizontal text alignment for some cells.
  5. Add a border to a cell range. If you are using the example, add a border to the header cells in in row 4.
  6. Change the fill color of a cell range. If you are using the example, add a fill color to row 4.
  7. Try changing the formatting of a number. If you are using the example, change the date formatting in cell range D4:H4 to Long Date.

/en/excel2013/worksheet-basics/content/

What Is Excel Format Cells?

Formatting cells in Excel is one of the key options used to format the data. We can format data in different formats, such as time, date, currency, font, etc.,

For example, using format cells in excel, we can format time. If the value is 1800 hrs and we want to format it based on hh:mm AM/PM format, we can use the format cells option. As soon as we click format, the 1800 hrs will be formatted into 06:00 PM.

Table of contents
  • What Is Excel Format Cells?
    • How To Format Cells In Excel?
    • Examples
    • Important Things To Remember
    • Frequently Asked Questions (FAQs)
    • Recommended Articles
  • Format cells in excel are used to format the data in the worksheet to present well and to save time.
  • The tabs available in the Format cells option in excel are number, alignment, font, border, fill, and protection.
  • Using the Number tab, we can format values such as date, currency, time, percentage, fraction, scientific notation, accounting number, etc., in excel.
  • The shortcut keys to format date (in dd-mm-yy format) are Ctrl+Shift+#.
  • Similarly, the shortcut keys to format time in hh:mm AM/PM format is [email protected]

How To Format Cells In Excel?

Formatting cells in excel is really simple. Let us have a look at the following examples to learn how to use format cells in excel.

You can download this Format Cell Excel Template here – Format Cell Excel Template

Examples

Example #1 – Format Date Cell

Excel stores date and time as serial numbers. We need to apply an appropriate format to the cell to see the date and time correctly.

For example, look at the below data.

Format Cell in Excel Example 0

It looks like a serial number to us, but we get date values when applying date format in excel to these serial numbers.

The date has a wide variety of formats. Below is a list of formats we can apply to dates.

Example 0.1

We can apply any formatting codes to see the date, as shown above in the respective format.

  • To apply the date format, we must first select the range of cells and press Ctrl + 1 to open the format window. Then, under Custom, we must apply the code as we want to see the date.

Format Cells Shortcut Key

Format Cell in Excel Shortcut

Format Cell in Excel Example 1

We get the following result.

Example 1.1

Example #2 – Format Time Cell

As we said, the date and time are stored as serial numbers in Excel. Now, it is time to see the TIME formatting in excel. For example, look at the numbers below.

Example 2

The TIME values are varied from 0 to less than 0.99999, so let us apply the time format to see the time. Below are the time format codes we can generally use:

“h:mm:ss”

To apply the time format, we must follow the same steps:

Format Cell in Excel Example 2.1

So, we get the following result.

 Example 2.2

So, the number “0.70192” equals the time of 16:50:46.

If we do not want to see the time in the 24-hour format, we need to apply the time formatting code like the one below.

Format Cell in Excel Example 2.3.0

Now, we will get the result as shown in the below image.

 Example 2.4.0

Now, our time is shown as 04:50:46 PM instead of 16:50:46.

Example #3 – Format Date And Time Together

The date and time are together in Excel. We can format both the date and time together in Excel. For example, look at the below data.

Format Cell in Excel Example 3

Let us apply the date and time format to these cells to see the results. The formatting code is dd-mmm-yyyy hh:mm:ss AM/PM.

Example 3.1

We get the following result.

Format Cell in Excel Example 3.2

Let us analyze this briefly now.

The first value we had was 43689.6675 for this, we have applied the date and time format as dd-mm-yyyy hh:mm:ss AM/PM, so the result is 12-Aug-2019 04:01:12 PM.

43689 represents data in this number, and the decimal value 0.6675021991 represents time.

Example #4 – Positive And Negative Values

When dealing with numbers, positive and negative values are part of it. To differentiate between these two values by showing them with different colors is the general rule everybody follows. For example, look at the below data.

Example 4

To apply a number format to these numbers and show negative red values, below is the code.

Format Cell in Excel Example 4.0

#,###;[Red]-#,###

If we apply this formatting code, we can see the above numbers.

Example 4.0.0

Similarly, showing negative numbers in brackets is also in practice. For example, to show the negative numbers in the bracket and red color, below is the code.

#,###;[Red](-#,###)

Format Cell in Excel Example 4.1

We get the following result.

Example 4.2

Example #5 – Add Suffix Words To Numbers

If we want to add suffix words along with numbers and still be able to do calculations, it is great.

If we show a person’s weight, adding the suffix word KG will add more value to the numbers. Below is the person’s weight in KG.

Format Cell in Excel Example 5

To show this data with the suffix word KG, apply the below formatting code.

### ” KG”

Example 5.1

After applying the code, the weight column looks like as shown below.

Format Cell in Excel Example 5.2

Example #6 – Using Format Painter

Format Painter Excel, we can apply one cell format to another. For example, look at the below image.

 Example 6

The date format is DD-MM-YYYY, and the remaining cells are not formatted for the first cell. But, we can apply the format of the first cell to the remaining cells by using a format painter.

We must select the first cell, then go to the Home tab and click on Format Painter.

Format Cell in Excel Example 6.1.0

Now, we must click on the next cell to apply the formatting.

Example 6.2

Now again, select the cell and apply the formatting, but this is not the smart way of using a format painter. Instead, double-click on Format Painter by selecting the cell. Once we double-click, we can apply the format to any number of cells, applying all at once.

Format Cell in Excel Example 6.3

Important Things To Remember

  • The format option is used to format the data in different formats.
  • We can format the date and time together.
  • The Excel Format Painter is the tool used to copy one cell format to another.

Frequently Asked Questions (FAQs)

1. What are format cells in excel?

Format cells is an option used to format the values used in excel.
We can use the format cells option by clicking on
Home → Cells group → Format drop-down option → Format Cells

2. How to format data in excel?

We can format the date with simple steps;

Consider the following example. The date of birth of 3 people is in 3 different formats. Now, let us learn how to format the date such that cell range B2:B4 are in the same format.

Format Cells in Excel - FAQ 2

The steps used to format date are:

• Step 1: Select cell B2.

• Step 2: Select HomeCells groupFormat drop-down optionFormat Cells

• Step 3: The Format Cells tab pops up.

FAQ 2 - Step 3

• Step 4: Click Date from the Category under Number tab.

FAQ 2 - Step 4

• Step 5: We can select the desired option. In our example, let us select the 4th option.
As we click OK¸ we can see that the value in cell B2 is formatted.

FAQ 2 - Step 5

Similarly, we can format cells in excel.

3. What are the shortcut keys to format cells in excel?

The following are some useful shortcut keys to format cells in excel:
Ctrl+Shift+~ – General Format
Ctrl+Shift+# – Format Date
[email protected] – Format Time

Recommended Articles

This article is a guide to Format cells in Excel. Here, we discuss the top 6 tips to format cells, including date, time, date and time together, format painter, etc., examples, and a downloadable Excel template. You may also look at these useful functions in Excel: –

  • Shortcut Key to Start New Line in Excel Cell
  • Export Excel into PDF File
  • How to Format Phone Numbers in Excel?
  • Accounting Number Excel Format

Понравилась статья? Поделить с друзьями:
  • Cell excel по русски
  • Cell excel на русском
  • Cell count in excel vba
  • Cell contains excel if microsoft
  • Cell column number excel