Skip to Content
Course content

3.2. Formatting Numbers, Dates, and Times

Excel provides a wide range of formatting options to display numbers, dates, and times in a way that best suits your data analysis needs. Understanding how to format these elements effectively can help make your data more readable and visually appealing. This section covers how to format numbers, dates, and times, enabling you to present your data in a professional manner.

1. Formatting Numbers

Formatting numbers is crucial when working with financial data, percentages, or any numerical data that requires clear presentation. Excel offers several built-in number formats to help you display data in a way that is both functional and visually appealing.

Basic Number Formatting

To format a number in Excel:

  1. Select the Cells: Highlight the cells containing the numbers you want to format.
  2. Open the Format Cells Dialog Box:
    • Right-click on the selected cells and choose Format Cells, or press Ctrl + 1.
    • Alternatively, you can use the Number Format dropdown in the Ribbon (on the Home tab) for quick formatting.
  3. Choose a Number Format:
    • Number: Displays numbers with decimal places. You can specify how many decimal places you want to show, and whether to include a thousands separator (comma).
    • Currency: Formats the number as a currency value, adding a currency symbol (such as $, €, etc.), and allows you to specify decimal places.
    • Accounting: Similar to the Currency format but aligns the currency symbols and decimal points in a column for better readability.
    • Percentage: Converts the number to a percentage format by multiplying the value by 100 and adding a percent sign (%). You can control the number of decimal places.
    • Scientific: Displays numbers in scientific notation (e.g., 1.23E+06) for large numbers.
    • Custom: If the built-in formats don't meet your needs, you can create a custom number format by defining specific symbols, text, and number formatting options.
Examples:
  • 1000 can be displayed as:
    • 1,000 (Number with a comma separator).
    • $1,000.00 (Currency format).
    • 1,000% (Percentage format).

2. Formatting Dates

Excel offers a variety of date formats to display dates in different styles based on your preferences or regional standards. The format you choose can significantly impact how your data is interpreted, especially when dealing with large datasets or financial reports.

Basic Date Formatting

To format a date:

  1. Select the Cells: Highlight the cells containing the dates you want to format.
  2. Open the Format Cells Dialog Box:
    • Right-click on the selected cells and choose Format Cells, or press Ctrl + 1.
  3. Choose the Date Format:
    • Short Date: Displays the date in a shorter format, usually as MM/DD/YYYY or similar, depending on your regional settings (e.g., 12/21/2024).
    • Long Date: Displays the full date with the weekday name (e.g., Friday, December 21, 2024).
    • Custom: If the default date formats don’t suit your needs, you can create a custom date format. For example, you can display the date as DD-MMM-YYYY (e.g., 21-Dec-2024).
Examples:
  • 12/21/2024 can be formatted as:
    • 12/21/2024 (Short Date).
    • Friday, December 21, 2024 (Long Date).
    • 21-Dec-2024 (Custom Date).
Date Formatting Symbols:
  • d: Day of the month (1-31).
  • dd: Day of the month with leading zero (01-31).
  • m: Month number (1-12).
  • mm: Month number with leading zero (01-12).
  • mmm: Abbreviated month name (Jan-Dec).
  • mmmm: Full month name (January-December).
  • yyyy: Year with four digits (2024).
  • yy: Year with two digits (24).

3. Formatting Times

Excel stores time values as decimal numbers (fractions of a 24-hour day), so you need to apply time formatting to display them properly. Time formatting is particularly useful when working with project schedules, time tracking, or any data that involves hours and minutes.

Basic Time Formatting

To format time:

  1. Select the Cells: Highlight the cells containing the time values you want to format.
  2. Open the Format Cells Dialog Box:
    • Right-click on the selected cells and choose Format Cells, or press Ctrl + 1.
  3. Choose the Time Format:
    • Time: Excel provides several standard time formats, such as hh:mm AM/PM (e.g., 08:30 AM) or hh:mm:ss (e.g., 15:45:30). Choose the one that best fits your needs.
    • Custom: If you want a specific time format, you can create a custom format. For example, you might want to display time as hh:mm:ss AM/PM.
Examples:
  • 15:45:30 can be formatted as:
    • 3:45 PM (Time format).
    • 15:45 (24-hour format).
Time Formatting Symbols:
  • h: Hours (1-12 for 12-hour format, 0-23 for 24-hour format).
  • hh: Hours with leading zero (01-12 or 00-23).
  • m: Minutes (0-59).
  • mm: Minutes with leading zero (00-59).
  • s: Seconds (0-59).
  • ss: Seconds with leading zero (00-59).
  • AM/PM: Shows the time in the 12-hour clock format (morning/afternoon).

4. Using Conditional Formatting with Numbers, Dates, and Times

Conditional formatting allows you to apply specific formats to numbers, dates, and times based on their values. This feature can be used to highlight data, making it easier to spot trends or outliers.

  • Highlight Cell Rules: You can format cells based on conditions like greater than, less than, equal to, between, or text that contains a specific string.
  • Data Bars, Color Scales, and Icon Sets: These options allow you to visually represent data in cells using bars, color gradients, or icons. For example, a color scale can change the background color of a cell based on its value, while data bars show the relative size of the number within the range.

To apply conditional formatting:

  1. Select the cells you want to format.
  2. Go to the Home tab and click on Conditional Formatting.
  3. Choose a rule type (e.g., Highlight Cell Rules, Data Bars, etc.) and customize the condition and format.

5. Tips for Formatting Numbers, Dates, and Times

  • Consistency: Ensure that all similar data (like dates or monetary values) are formatted in the same way to maintain consistency throughout your worksheet.
  • Using Keyboard Shortcuts: You can quickly format numbers by pressing Ctrl + Shift + ! for the number format or Ctrl + Shift + $ for currency format.
  • Custom Formats for Complex Data: For specialized data formats, such as displaying numbers in thousands (e.g., 1,000 as 1K), you can use custom formatting. For example, a custom format like #,##0.0,"K" will display 1,000 as 1.0K.

6. Conclusion

Mastering number, date, and time formatting in Excel is essential for presenting data clearly and accurately. By choosing the appropriate format for your data, you can improve readability, avoid misinterpretation, and enhance the overall presentation of your worksheets. Excel's formatting options allow you to customize the display to fit your specific needs, whether you're working with financial reports, timelines, or any other type of data.

Commenting is not enabled on this course.