Data Formatting in Excel (With Examples & Shortcuts)

By upGrad

Updated on Sep 24, 2026 | 8 min read | 2.36K+ views

Share:

Key Highlights

  • Data formatting in Excel is a process of changing the appearance of data without replacing its underlying value. 
  • Formatting improves readability, reduces formula-related issues, highlights important patterns, and saves time through custom formats.
  • Common types include number, date/time, text, cell, conditional, and table formatting.
  • Excel provides multiple formatting methods, including the Home tab, Format Cells, and keyboard shortcuts.
  • In this article, you will learn what data formatting in Excel is, its different types, how to format data using formulas and shortcuts, and practical examples and best practices for effective formatting.

Turn raw data into real decisions. Learn Python, SQL, statistics, and machine learning from scratch, no prior coding experience needed. Enroll in our Data Science course today and start building skills companies are actually hiring for.

What Is Data Formatting in Excel?

Data formatting is a process of changing how information will appear in excel without changing the underlying value. Means adjusting the visual presentation of data. 

For example, if you change the format of 0.25 number to percentage, then it will become 25% but for any calculation 0.25 will be taken. Data formatting in excel is not about altering data, it is about increasing readability. 

Why Is Data Formatting Important?

Data formatting is important because it transforms the raw and confusing data into clear numbers. Some other important points for data formatting are as follows:

  • Prevents Formula Errors: In excel, text and numbers are different. You cannot put a formula on text as it will show these signs #value or 0.
  • Protects Leading Zeros: Say you type a number 022108, excel just drops that first zero and shows 22108 instead. It thinks that you do not need it because it is not adding any value to the number. The fix is easy though, format the cell as text before you type it in, and the zero stays put.
  • Highlights Patterns Automatically: This one's a time saver. You can tell excel to change a cell's color depending on what's in it, so negative numbers show up red, good sales show up green, deadlines coming up show up yellow. Once that's set, you don't have to go through row by row checking what needs your attention, excel just shows you at a glance.

Must read: Microsoft Excel Tutorial for Beginners: Complete Step-by-Step Guide

Free Courses

Explore courses related to Data Science
Case Study using Tableau, Python and SQL
Case Study using Tableau, Python and SQL
10.58K+ learners
10 hrs of learning
Introduction to Tableau
Introduction to Tableau
8.5K+ learners
8 hrs of learning
Data Science in E-commerce: Pricing & Marketing Analytics

Types of Data Formatting in Excel

Excel offers six main ways to format data. Some change only appearance, while others add real functionality. Here is a breakdown of different types.

Type

Changes the Data?

Where to Find It

Number Formatting No, display only Home tab, Number section, or Ctrl + 1
Date & Time Formatting No, display only (if recognized as a date) Home tab, Number section, or Ctrl + 1
Text & Font Formatting No Home tab, Font section
Cell Formatting No Home tab, Font/Alignment, or Ctrl + 1
Conditional Formatting No, rule-based and automatic Home tab, Conditional Formatting
Table Formatting No, but adds functionality Insert tab, Table (Ctrl + T)

1. Number Formatting

It changes the presentation of a number, not the real value. For calculation, Excel use the true value.

  • Example: 845.5 can become ₹845.50 or 845%
  • Fix: Select cell(s), go to the Home tab, then the Number section
  • For More Control: Press Ctrl + 1, open Format Cells, and set custom decimals, currency symbols, etc.
Excel number formatting example showing raw data converted into formatted rupee currency, dates, and percentage values.

2. Date & Time Formatting

A date can be present in different formats like, 12/09/2026, 12-Sep-2026, and September 12, 2026. These all are identical dates.

  • Fix: Select cell(s), press Ctrl + 1, open Format Cells, choose Date or Time, pick a built-in style or build a Custom one, then click OK
  • Watch out: If Excel doesn't recognize your entry as a real date, it gets stored as text. Sorting and date math will misbehave when this happens.

3. Text & Font Formatting

This is purely cosmetic: font, size, color, bold or italic. It doesn't touch the underlying data.

  • Where: Home tab, Font section
  • Use for: readability, emphasis, visual hierarchy

4. Cell Formatting

Covers the container around the data rather than the data itself:

  • Background color or fill
  • Borders
  • Alignment (left, center, right)
  • Common use: color-coding headers, boxing in totals

5. Conditional Formatting

This tells Excel: if a cell meets a certain condition, format it a certain way, automatically.

  • Examples:
    • Negative numbers turn red
    • Overdue dates get highlighted yellow
  • How: Home tab, Conditional Formatting, pick a rule type, set your condition, choose a format
  • Best for: large datasets where manually checking every row isn't practical
Excel conditional formatting example showing sales data automatically highlighted based on targets and performance.

6. Table Formatting

Converts a plain range into a structured Excel Table, which is more than just a style upgrade.

Benefit

Description

Visual Alternating row colors, styled headers
Filtering Filter buttons added automatically to headers
Formulas Reference columns by name, like Table1[Sales], instead of cell addresses
Customization Table Design tab lets you switch styles anytime
  • How: Select your data, go to Insert, click Table (or press Ctrl + T), confirm your range, then OK

Also read: Mastering Excel: A Comprehensive Guide to Boost Your Spreadsheet Skills

Data Science Courses to upskill

Explore Data Science Courses for Career Progression

background

Liverpool John Moores University

MS in Data Science

Double Credentials

Master's Degree18 Months

Placement Assistance

Certification6 Months

Data Formatting in Excel Formulas

Manual cell formatting works fine for static data. But once you're building dynamic reports or summary lines that pull from other cells, you need a formula to control the output, not just a formatting menu. That's what the TEXT function and its related tools are for.

1. The TEXT Function

TEXT() converts a number or date into a formatted string, right inside a formula.

=TEXT(value, format_code)

 

Formula

Input

Output

=TEXT(2450,"₹#,##0.00") 2450 ₹2,450.00
=TEXT(0.084,"0.0%") 0.084 8.4%
=TEXT(TODAY(),"DD-MMM-YYYY") 24/09/2026 24-Sep-2026
=TEXT(7,"00000") 7 00007

That last example is worth remembering. Zero-padding an ID or invoice number takes one formula instead of manual formatting.

2. Text Output Can't Be Calculated

Once a value passes through TEXT(), Excel treats it as text, not a number. It can't be summed, averaged, or used in further math.

Standard practice to avoid this:

  • Keep raw numbers untouched in one column
  • Do all calculations on those raw values
  • Use a separate column or cell with TEXT() only for what gets displayed

One layer for Excel to calculate with, one layer for people to read.

3. Other Formatting Formulas

  • ROUND(number, digits): rounds to a fixed number of decimals, changing the stored value itself
  • TRUNC(number, digits): cuts off decimals without rounding (4.99 becomes 4, not 5)
  • DAY() / MONTH() / YEAR(): extracts a single part of a date
  • & operator or CONCAT(): joins TEXT() output with labels or other text

4. Cell Formatting vs. Formula Formatting

Use cell formatting when the question is how a cell should look.

Use TEXT() inside a formula when the question is how to build a label or sentence from values that change.

Most spreadsheets need both.

Must read: Top 60+ Advanced Excel Formulas List with Examples (2026)

Data Formatting in Excel Shortcuts

If you format data often, learning a few keyboard shortcuts can save you a good amount of time instead of clicking through menus every time.

1. Common Number Formatting Shortcuts

These work on whatever cell or range you've selected, and apply the format instantly:

Shortcut

What It Does

Ctrl + Shift + 1 Applies number format with commas and 2 decimals
Ctrl + Shift + 4 Applies currency format
Ctrl + Shift + 5 Applies percentage format
Ctrl + Shift + 3 Applies date format
Ctrl + Shift + 6 Applies scientific format
Ctrl + Shift + ~ Resets back to General format

2. Shortcut to Open Format Cells

Instead of right-clicking every time, just select your cells and press Ctrl + 1 (Cmd + 1 on Mac). This opens the Format Cells window directly, where you can pick number formats, date styles, borders, alignment, and more, all in one place.

3. Shortcut for Applying Date and Time Formats

Ctrl + Shift + 3 applies a quick date format to selected cells. There's no default shortcut for time in most Excel versions, so you'd typically go through Ctrl + 1, select Time, and pick the format you want. If you use a specific time format often, it's worth setting it up once and reusing that cell as a template.

4. Shortcut for Applying Borders and Other Cell Formats

To quickly add a border around selected cells, press Ctrl + Shift + 7. This applies an outline border to your selection. For more specific border styles, like only bottom borders or double lines, you'll still need to go through Format Cells or the Borders drop-down in the Home tab.

Other useful ones while formatting cells:

  • Ctrl + B for bold
  • Ctrl + I for italic
  • Ctrl + U for underline

From your first line of Python to your first autonomous AI agent. This Professional Certificate Programme in Data Science & Agentic AI covers Python, SQL, BI, machine learning, and RAG. One programme, a complete skill set. Enroll now. 

Common Mistakes in Data Formatting in Excel

Even regular Excel users run into these. Most take seconds to fix once you spot the cause.

1. Numbers Stored as Text

Common after pasting data from a website or another file. The number looks normal, but Excel reads it as text, so SUM() skips it or throws an error. Look for a small green triangle in the corner of the cell; that's the warning sign.

Fix it two ways:

  • Click the warning icon on the cell and choose "Convert to Number"
  • Copy a cell containing just the number 1, select your data, then use Paste Special > Multiply

3. Too Many Colors and Borders

Color-coding everything backfires. It makes a sheet harder to scan, not easier.

Stick to two or three colors max, each with a clear purpose:

  • One color for totals
  • One color for cells needing attention

4. Inconsistent Decimal Places

A column mixing 0, 2, and 4 decimal places looks unprofessional, especially in financial sheets.

Fix: Select the entire column or range at once and apply one decimal setting, rather than formatting cells individually as you go.

5. Merging Cells Inside a Dataset

Merging looks fine for a header, but merging cells within your actual data causes real problems:

Issue

What Happens

Sorting Stops working correctly
Filters Break or behave unpredictably
Formulas Referencing merged cells can act strange

Better option: Use Center Across Selection (under Format Cells) instead of merging, when you want that centered look.

Also read: Supercharge Your Analysis with Statistical Functions in Microsoft Excel!

Conclusion

Data formatting in excel is not just about making a sheet look nice. It changes how easily you and others can read, trust, and use the data. A well formatted sheet catches errors faster, works better with formulas, and just looks more professional when you share it with someone else. 

Once you get comfortable with the basics, like number formats, date formats, and conditional formatting, it becomes second nature. Try applying a few of these tips to your next sheet, and you'll notice the difference right away. 

Have any questions about this topic? Book a free consultation call with our experts and get personalized guidance on the right learning path for you.

Frequently Asked Question (FAQs)

1. What is the difference between a Table and a normal formatted range in excel?

A Table (created using Insert > Table) automatically applies banded rows, filter buttons, and structured references in formulas. A normal range with formatting looks similar visually, but doesn't have these built-in features like auto filtering or expanding formulas when you add new rows.

2. How do I copy formatting from one cell to another?

You can use the Format Painter. Select the cell with the formatting you want to copy, click Format Painter on the Home tab, and then click or drag over the cells you want to apply it to. Double-clicking Format Painter lets you apply it to multiple areas without reselecting it each time.

3. How do I remove all formatting from a cell?

Select the cell or range, go to the Home tab, click on the Clear option in the Editing group, and choose Clear Formats. This removes all formatting but keeps the actual data in the cell.

4. Can I apply the same formatting across multiple sheets at once?

Yes. Select all the sheets you want to format by holding Ctrl and clicking their tabs, then apply the formatting as usual. It will apply to the same cell range on every selected sheet. Right-click a tab and choose Ungroup Sheets once you're done.

5. What does the green triangle in the corner of a cell mean?

It usually means excel thinks something might be off with the cell, often that a number is stored as text. Click on the cell and a warning icon will appear, giving you the option to convert it to a proper number.

6. How do I create a custom number format in excel?

Open Format Cells with Ctrl + 1, go to the Number tab, select Custom from the list, and type your own format code in the Type box. For example, 0.00 "kg" would show a number followed by "kg" while keeping it usable in formulas.

7. Does formatting affect how a sheet prints?

Yes. Fonts, borders, colors, and column widths all show up when you print, so it's worth checking Print Preview before printing to make sure the formatting looks right on paper, not just on screen.

8. What is Paste Special used for in formatting?

Paste Special lets you choose exactly what gets pasted, like just the formatting, just the values, or just the formulas, instead of pasting everything at once. It's useful when you want to copy formatting without overwriting the data already in a cell.

9. Why do my column widths change after I format data?

When you apply a new font size, bold text, or a longer format like a full date, the content may no longer fit in the existing column width. Double-clicking the border of the column header will auto-fit it to the content.

10. Can I set a default formatting style for new sheets?

Yes, this is done by creating a custom template. Format a sheet the way you want, then save it as an excel Template file (.xltx), so every new sheet you create from that template starts with the same formatting already applied.

11. Is it possible to undo formatting without undoing my data changes?

Not directly through Undo, since it tracks actions in order. But you can select the affected cells and use Clear Formats from the Home tab to remove just the formatting, while keeping all your data exactly as it is.

upGrad

987 articles published

We are an online education platform providing industry-relevant programs for professionals, designed and delivered in collaboration with world-class faculty and businesses. Merging the latest technolo...

Speak with Data Science Expert

+91

By submitting, I accept the T&C and
Privacy Policy

Start Your Career in Data Science Today

Top Resources

Recommended Programs

IIIT Bangalore logo

IIIT Bangalore

Executive Diploma in DS & AI

360° Career Support

Executive Diploma

12 Months

Liverpool John Moores University Logo
bestseller

Liverpool John Moores University

MS in Data Science

Double Credentials

Master's Degree

18 Months

upGrad

Bootcamp

6 Months