The Wayback Machine - https://web.archive.org/web/20241228134426/https://www.geeksforgeeks.org/excel-formatting-cells/
Open In App

Excel: Formatting Cells

Last Updated: 30 Apr, 2024

R

Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Excel Formatting Shortcuts

If you have closely followed the previous parts of this tutorial, you already know most of the Excel formatting shortcuts. The table below provides a summary.

Shortcut Format

Ctrl+Shift+~ General format

Ctrl+Shift+! Number format with a thousand separators and two decimal places.

Ctrl+Shift+$ Currency format with two decimal places and negative numbers displayed in parentheses

Ctrl+Shift+% Percentage format with no decimal places

Ctrl+Shift+^ Scientific notation format with two decimal places

Ctrl+Shift+# Date format (dd-mmm-yy)

Ctrl+Shift+@ Time format (hh: mm AM/PM)

Excel opens with all the cells looking the same. Things can get hard to understand if you have a lot of them. Changing Excel's look is as simple as changing the font and size parameters to modify the appearance of your written work. The key points become more apparent, and the material becomes more accessible.

Excel also lets you choose whether the numbers are money ($) or percentages (%). Then, it will know just what to display to them. After these easy changes, your Excel file will look better and be easier for everyone to understand.

Format Cells in Excel

How to Change the Font?

Step 1: Select the cell

Click on the cell or drag to select multiple cells where you want to change the font.

IMG-20240308-WA0050
Select the cell

Step 2: Click the Font dropdown arrow

To access the Font menu, go to the Home tab and click the arrow near the dropdown.

IMG-20240308-WA0025
Click the Font dropdown arrow

Step 3: Select the desired font

You can pick one from the list of available fonts.

IMG-20240308-WA0027
Select the desired font

Step 4: The font will change

The text in the chosen cells will immediately change to reflect the new font style after you've picked a font.

How to Change the Font Size?

Step 1: Select the cells

Select the cell to change the font size of it.

IMG-20240308-WA0024
Select the cells

Step 2: Open Font Size dropdown

Click the dropdown arrow next to the Font Size command on the Home tab.

IMG-20240308-WA0028
Open Font Size dropdown

Step 3: Select the font size

Select a font size from the list of available options.

IMG-20240308-WA0030
Select the font size

Step 4: Once applied, the text in the selected cells will be resized to match the font size.

Note: You may adjust the font size using the keyboard keys "Increase" and "Decrease" or by navigating the controls on your keyboard.

How to Change the Font Color?

Step 1: Select the cells

Click on one cell or drag to select multiple cells.

IMG-20240308-WA0032
Select the cells

Step 2: Open the Font Color dropdown on Home

Simply click the down arrow next to Font Colour on the Home to change the font colour.

IMG-20240308-WA0029
Open the Font Color dropdown on Home

Step 3: Select the font color

Pick a colour from the spectrum that works for you.

IMG-20240308-WA0031
Select the font color

Step 4: The selected font colour will changed

The text in the chosen cells will be changed to match the new colour of the font.

How to Use the Bold, Italic, and Underline Commands?

Step 1: Select the cells

Press and hold or drag to choose several cells for formatting.

IMG-20240308-WA0038
Select the cells

Step 2: Select Bold, Italic, or Underline from the Home

From the Home menu, choose Bold (B), Italic (I), or Underline (U). This will change the style of the text you have chosen.

IMG-20240308-WA0042
Select Bold, Italic, or Underline from the Home

Step 3: The selected style will be applied

The highlighted, italicised, or bolded text will be the one you choose.

Note: Pressing Ctrl+B, Ctrl+I, and Ctrl+U on the keyboard will correspondingly bold, italicise, and underline the chosen text.

How to use Text Alignment?

Numbers will be aligned to the bottom-right of a cell and text to the bottom-left of a cell in your worksheet by default. You may arrange cell information to make it simpler to read.

Step 1: Select the cells

Click or drag to select multiple cells to change text alignment.

IMG-20240308-WA0040
Select the cells

Step 2: Go to the Home, find alignment options

To access the Home tab in Excel, go to the ribbon. Various alignment choices may be found in the "Alignment" category.

Step 3: Choose from left, centre, or right alignment options

Choose one of the three horizontal alignment commands from the Home tab: left, centre, or right.

IMG-20240308-WA0039
Go to the Home, find alignment options

Step 4: The text will realign

Text in the selected cells will be aligned after you make your selection.

How To Add a Border in Excel?

Step 1: Select the cells

To add a border, click on the cell or groups of cells that you want to border.

IMG-20240308-WA0037
Select the cells

Step 2: Click the Borders on the Home

On the Excel menu, go to the Home tab. The "Borders" button is in the "Font" group. It looks like a grid with borders.

IMG-20240308-WA0034
Click the Borders on the Home

Step 3: Select the border style

From the dropdown box, pick the border style you want to use. Some options are: There are no borders, all borders, outside borders, thick box borders, and more borders.

IMG-20240308-WA0041
Select the border style

Step 4: Apply Border

Click on the border style option to apply it to the selected cells.

How To Add a Fill Color?

Step 1: Select the cells

Click on the cell where you want to fill in the colour.

IMG-20240308-WA0038
Select the cells

Step 2: Click "paint bucket" in the "Font" group

On the Excel menu, go to the Home tab. The "Fill Colour" button is in the "Font" group. Like a paint bucket, it usually has a colour label.

IMG-20240308-WA0035
Click "paint bucket" in the "Font" group.

Step 3: Select the color

Please choose the colour you want to use as the fill colour by clicking on it in the palette.

IMG-20240308-WA0036
Select the color

Step 4: Click on it to apply

Choose a colour, and then the cells will be filled with that colour.

How to use Format Painter in Excel?

Applying formatting to several cells at once is easy with the Format Painter. Copying the formatting of a specific cell or range to another location in your spreadsheet is simple with this helpful function.

Step 1: Click on a cell with the style

Pick out the cell that features the style you wish to copy.

IMG-20240308-WA0046
Click on a cell with the style

Step 2: Locate the Format Painter section at Home

Go to home and find the Format Painter section.

IMG-20240308-WA0047
Locate the Format Painter section at Home

Step 3: Click on it

Click on the format painter when you find it.

IMG-20240308-WA0048
Click on the format painter when you find it

Step 4: Click on the cell for the same style

Select the cells you want to format or a range of cells, and then click and drag to apply the style.

Step 1: Copy formatting from the first cell.

Like the other cell, the format of the selected one will be modified.

Cell Styles

Excel has built-in cell styles, so you can forget to manually format cells. Cell styles in Excel make it easy to professionally arrange the contents of cells, like titles and heads.

Step 1: Select the cells

Select cells where you want to apply a cell style.

IMG-20240308-WA0033
Select the cells

Step 2: Click the Styles on the Home

On Home, click Styles and choose the style from the dropdown menu.

IMG-20240308-WA0051
Click the Styles on the Home

Step 3: Select the style and press enter

Select a cell style and press enter to apply it to selected cells.

IMG-20240308-WA0043
Select the style and press enter

How to Format Numbers?

One of Excel's powerful features is applying specific formatting to numbers. Formatting allows you to vary the look of dates, times, decimals, percentages, currency ($), and much more rather than presenting all cell information similarly.

Step 1: Select the cells

Select cells to apply formatting.

IMG-20240308-WA0049
Select the cells

Step 2: Click the dropdown menu in the "Number" group

Click the dropdown menu in the "Number" group to choose a number format.

IMG-20240308-WA0045
Click the dropdown menu in the "Number" group

Step 3: Select the Number format

Choose from the available choices (Date, Time, Currency, Percentage, etc.) by scrolling down the page.

IMG-20240308-WA0044
Select the Number format

Step 4: The selected formatting will be applied

Once you've chosen a formatting option, it will be applied to the selected cells.

Conclusion

Excel-style rules can help your data look better and be easier to understand. For neat and professional-looking spreadsheets, learn how to use the Format Painter, change fonts, sizes, and colours, align text, add borders and colours, and apply cell styles. The skills listed here make your work look better and help you organise knowledge so it's easier to understand.

Excel: Formatting Cells - FAQs

How do I auto-format cells in Excel?

You can use a method to make this whole process automatic. You can change the style by pressing Alt 0 A and clicking inside the table. Following that, Excel will automatically clean and arrange your data.

How do I format a lot of cells in Excel?

Pick the cell with your desired format, then press Ctrl+C to copy its contents and forms. Click on the column name or row you want to change the style to select the whole thing. To paste special, right-click on the pick and choose "Paste Special." Click Formats in the Paste Special box, then click OK.

How do I conditionally format cells in Excel?

Click the down arrow under Conditional Formatting on the Home tab's Style group, then choose Highlight Cells Rules. To use a specific command, such as "Between," "Equal To," or "A Date Occurring," choose it. Type in the desired values and then choose a format.


R

News
Improve
Discuss

Formatting Charts in Excel

article_img
One of the major uses of Excel is to create different types of charts for a given data set. Excel provides us with a lot of modification options to perform on these charts to make them more insightful. In this article, we are going to see the most common "Formatting" performed on charts using a suitable example shown below. Example: Consider the performance of a batsman in a T20 match. The data set contains the runs scored by the batsman in various matches. Now we will insert a bar chart using the above table. To insert a bar chart : Select dataset -> Click on Insert -> Chart Sets Pop Down -> 2-D column The key steps to format anything on the chart is : Select the part of the chart which needs to be formatted.Right-click on it and select "Format". The format window will open.1. Formatting the Chart Title :Select the Title -> Right Click on it -> Format Chart Title In the Format Chart Title window, you can change the Font color, add Borders surrounding the title and various other modifications can be done. You can also rename the title by simply selecting and retyping a new name. 2. Formatting Axis Titles: You can add the axis title by using the "+" button in the top
Read More

Data Formatting in Excel

article_img
In Excel, the whole entered data in the sheet uses the same formatting by default which can make the data look monotonous, dull, and difficult to read. Excel provides a pool of tools called formatting tools which customize the data in such a way that it only affects the appearance of the data and not the content. How to apply formatting in Excel? Following are the steps to apply the formatting: Select the range of cells on which formatting needs to be done.Select the suitable formatting tool from the toolbox(ribbon).Formatting can be observed on the sheet. Formatting tools that work on the text and cell appearance can be found in Home Tab [ Font Group ] in the ribbon. Let's discuss some formatting tools in this article. Font: It changes the writing style of the data. Font Size: It changes the size of the data, can make it appear big or short. Increase/Decrease Font Size: It does the same work as by Font Size i.e adjusts the size of the font accordingly. However, it gets handy as in only one click, the size is getting changed. Bold and Italic: Bold thickens the letter and makes it appear darker than before while Italic, italicize the letters. Both are useful when some data needs to
Read More

I

How to Apply Conditional Formatting Based On VLookup in Excel?

VLOOKUP is an Excel function to lookup data in a table organized vertically. VLOOKUP supports approximate and exact matching, and wildcards (* ?) for partial matches. Conditional Formatting Based on Vlookup: 1. Using the Vlookup formula to compare values in 2 different tables and highlighting those values which is only present in table 1 using conditional formatting. We have a Table containing old products of any grocery shop in 'Old Product' sheet and an updated table having new products in worksheet 'New'. We want to highlight rows in New table containing those items which are not in Old Product Table. Select the data from New table except the Headers. (The table in which we want to highlight rows.)Go to Home->Conditional Formatting->New Rule. In the dialog box appeared, Select the rule type - "Use a formula to determine which cells to format;";Under Edit the rule description enters the following formula: =ISNA(VLOOKUP($A2,'Old Product'!$A$1:$B$8,1,FALSE))Then click Format. Formula explanation: Inside VLOOKUP, 1st parameter is $A2 which is first name in New table.2nd parameter is Old Product Table.3rd parameter is column we want to compare which is 1 as we want to compare i
Read More

How to Apply Conditional Formatting in a Pivot Table in Excel

article_img
One of the most useful ways to customize the pivot table formatting is using Conditional Formats. Conditional formatting rules can be applied to Pivot tables just like they can be applied to normal data ranges. So by using conditional formatting, we can highlight the cells with a certain color depending on the cell's value. Conditional FormattingWhat is Pivot Table Conditional Formatting In Excel, you have the power to make your data stand out using conditional formatting. This means you can automatically highlight cells that meet certain criteria. For example, you can easily spotlight cells that have values above the average or those that fall below a specific threshold. Now, when you apply this special formatting to a Pivot table, there is an important step to remember. After you've set up your conditional formatting, make sure to tweak the settings so that even after you refresh the Pivot table, the right cells maintain their distinctive appearance. This ensures that your highlighted information remains accurate and up-to-date as your data evolves. Types of Conditional Formatting in ExcelThere are many conditional formats that we can use on our data. Some of them are given below
Read More

Excel Table Styles and Formatting: How to Apply, Change and Remove

article_img
In Excel, you can format tables using various styles, colors, fonts, and other visual elements to make your data more organized and visually appealing. However, there may be situations where you want to remove all the formatting from a table and revert it to its default appearance. Have you ever felt stuck in the maze of Excel tables? Let’s break free together! Discover the straightforward way to remove table formatting in Excel. No more complications—just a quick and easy guide to make your data dance without the formatting fuss. Ready to embark on this hassle-free journey? Let’s get started! Excel Table StylesIn Microsoft Excel, table styles are predefined formatting sets that allow you to quickly and easily apply a consistent and professional look to your data tables. These styles include various formatting elements such as bold headers, alternating row colors, and distinct column formatting. Here's a short note on Excel table styles: How to Choose a Table Style When Creating a TableStep 1: Launch Your Excel SpreadsheetTo Apply Excel table formatting you have to open your Excel spreadsheet from which you want to remove table formatting. Step 2: Select the Data Select the data fo
Read More

Conditional Formatting in Excel

article_img
Conditional Formatting in Excel is a game-changer for anyone dealing with large datasets. This feature allows you to automatically apply formatting, such as colors and icons, to cells that meet specific criteria. With conditional formatting Excel formulas, you can customize your data presentation and highlight key information effortlessly. Whether you need to create a heatmap, highlight duplicates, or show trends, conditional formatting in excel with formula makes it simple and effective. Moreover, you can even apply conditional formatting in Excel based on other cells, enabling dynamic and interactive data visualization. Unlock the full potential of your data with conditional formatting Excel and transform the way you analyze information. Table of Content What is Conditional Formatting in ExcelTypes of Conditional Formatting VisualisationWhere is Conditional Formatting in ExcelHow to Use Conditional Formatting in ExcelHow to Use a Preset Rule with Custom FormattingHow to Create a New Conditional Formatting Rule in ExcelHow to Edit Conditional Formatting Rules in ExcelConditional Formatting Excel Formula ExamplesHow to Find Duplicates in Excel How to Highlight Cells with Value Grea
Read More

How to Remove Table Formatting in Excel

article_img
Struggling with unwanted table formatting in Excel? Whether you're working on a crucial report or just cleaning up your spreadsheet, knowing how to remove table formatting in Excel can save you time and frustration. Excel tables come with predefined styles that can sometimes get in the way of your preferred presentation or data analysis methods. In this article, we'll show you the quickest and easiest ways to remove table formatting in Excel while keeping your data intact. Say goodbye to distracting table styles in Excel and hello to clean, organized spreadsheets. Let's dive into the best methods for transforming your tables into plain data, giving you full control over your worksheet's appearance and functionality. Table of Content How to Remove Table Formatting in ExcelHow to Clear All Tables in ExcelHow to Remove Excel Table Formatting (while keeping the Table)How to Change the Formatting of the Excel TableHow to Remove Format as Table in Excel (Convert Table to Range)How to Remove Table Formatting in ExcelStep 1: Launch the Excel spreadsheetTo remove your Excel table formatting you have to open your Excel spreadsheet from which you want to remove table formatting. Step 2: Selec
Read More

Convert Excel to Google Sheets [Without Losing Formatting]

article_img
Switching from Excel to Google Sheets is a common requirement for individuals and teams looking to enhance collaboration. However, ensuring that the formatting remains intact during the conversion can be a concern. This guide will walk you through the steps to convert Excel to Google Sheets without losing formatting. From importing files through Google Drive to resolving common issues, we’ll also share Excel file import Google Sheets tips to ensure your data stays intact and professional. How to Import Excel Files into Google SheetsIf you need to import Excel into Google Sheets without losing formatting, follow these simple steps: Step 1: Open Google SheetsStart by opening Google Sheets in your browser. If you don’t already have a Google account, you’ll need to create one to access Google Sheets. Step 2: Create or Open a Google SheetClick the + Blank button to create a new spreadsheet or open an existing one where you want to import the Excel data. Step 3: Access the Import FeatureTo import the Excel file: Click on the File menu in the top-left corner.From the dropdown, select Import. Step 4: Upload Your Excel FileYou’ll see an Import file dialog box with several options: My Drive:
Read More

How to Sum Diagonal Cells in a range in Excel?

article_img
The calculation of matrices is one of the most difficult numerical computation tasks. You may need to add values diagonally in a table when performing mathematical computations. Excel allows you to sum diagonal numbers without having to add the values one by one. We'll go through how to sum cells diagonally down or diagonally up. Example: The image below shows a matrix & we want to add the elements of the diagonal. Diagonal1 is the right diagonal & Diagonal2 is the left diagonal as its top element is on the left. Conditional Formatting (On Matrix or Table) : To do conditional formatting use the following steps :Step 1: Select the Matrix/Table. Then Go to the home tab & select the conditional formatting option. Step 2: Choose New Rule. Step 3: Select: "Use a formula to determine which cells to format" & in the rule description give the format values for the formula. Here we give 1st cell name of the matrix in the formula, i.e., column(B2) - row(B2) (For diagonal) Step 4: Click on the format. Choose the color, fonts, etc, for formatting & then click on OK. Step 6: Click on Ok. You will get your cells formatted. How to Sum Diagonal Cells in a range in Excel? A rang
Read More

How to Find the Percentage of Two Cells in Microsoft Excel?

article_img
If you want to find the percentage of two cells in Microsoft Excel, Simply select an empty cell, where you want to display the percentage of the two cells. Type in the following formula in the selected cell : =address of cell1/address of cell2 For example, I want to print out the percentage of C2 and C3, so the formulae will be: =C2/C3, in an empty cell C4. As soon as you click on the return key, You will get your percentage calculated in cell C4. However, if a decimal value is displayed in the cell. Like 0.10, Simply press the shortcut key Ctrl+Shift+% to format as a percent or convert the numeric value into the percentage style and press the Return key. The Decimal value will be converted to a percentage. You can also go to the Number section under the Home tab and press the % Symbol to convert to percentage format.
Read More
three90RightbarBannerImg