Excel Number Formats Guide
Application Steps for Number Formats
Step 1: Open Excel and Select the Cells
- Open Excel.
- Select the cells you want to format.
Step 2: Access Format Cells Dialog
- Right-Click on the selected cells.
- Choose 'Format Cells…' from the context menu.
Step 3: Select a Category
In the 'Format Cells' dialog:
- Go to the
Number
tab. - Select one of the categories listed below:
Common Categories and Formats
1. Number
- Decimal Places: Specify how many decimal places you want.
- Use 1000 Separator (,): Check this box to separate thousands.
- Negative Numbers: Choose how to display negative numbers.
2. Currency
- Symbol: Select the currency symbol (e.g., $, โฌ, ยฃ).
- Decimal Places: Set the number of decimal places.
- Negative Numbers: Choose a negative number format.
3. Accounting
- Symbol: Select the currency or accounting symbol.
- Decimal Places: Choose the number of decimal places.
4. Date
- Format: Choose a date format (e.g., mm/dd/yyyy, dd-mmm-yy).
5. Time
- Format: Choose a time format (e.g., h:mm AM/PM, h:mm:ss).
6. Percentage
- Decimal Places: Set the number of decimal places.
7. Fraction
- Type: Choose how you want to display fractions (e.g., Up to one digit, two digits).
8. Scientific
- Decimal Places: Set the number of decimal places.
9. Text
- Display numbers as text without any modification.
10. Custom
- Type: Enter a custom format using format codes (e.g.,
#,##0.00
).
Step 4: Apply and Confirm
- Click
OK
to apply the formatting to the selected cells.
Example Formats
Format Example for Currency
$1,234.56
- Select the cell.
- Open Format Cells: Right-click > Format Cells…
- Choose
Currency
. - Set Symbol to
$
, Decimal places to2
.
Format Example for Date
14-Mar-21
- Select the cell.
- Open Format Cells: Right-click > Format Cells…
- Choose
Date
. - Set format to
14-Mar-21
.
Format Example for Percentage
85.50%
- Select the cell.
- Open Format Cells: Right-click > Format Cells…
- Choose
Percentage
. - Set Decimal places to
2
.
This guide will directly improve the clarity and functionality of your data analysis by applying precise number formats in Excel.
Working with Date Formats in Excel: Practical Guide
Changing Date Formats
- Select the cells that contain the dates.
- Right-click to open the context menu and select Format Cells.
Using Custom Date Formats
Using Pre-Defined Date Formats
- In the Format Cells dialog, go to the Number tab.
- Select Date in the Category list.
- Choose a pre-defined date format from the list.
Creating Custom Date Formats
- Go to the Format Cells dialog (as described above).
- Select Custom in the Category list.
- Enter your custom date format in the Type field. Some examples:
dd/mm/yyyy
for31/12/2023
mm/dd/yyyy
for12/31/2023
dd-mmm-yy
for31-Dec-23
mmmm dd, yyyy
forDecember 31, 2023
Using Date Functions
Extracting Parts of a Date
- YEAR Function:
=YEAR(A1)
– Extracts the year from the date in cellA1
. - MONTH Function:
=MONTH(A1)
– Extracts the month from the date in cellA1
. - DAY Function:
=DAY(A1)
– Extracts the day from the date in cellA1
.
Combining Dates
- DATE Function:
=DATE(year, month, day)
\nExample:=DATE(2023, 12, 31)
results in12/31/2023
.
Formatting as Text
- TEXT Function:
=TEXT(A1, "dd/mm/yyyy")
– Formats the date inA1
as31/12/2023
.
Converting Text to Date
- Use the DATEVALUE Function:
=DATEVALUE("31/12/2023")
\nConverts the text"31/12/2023"
to a date value.
Inserting the Current Date and Time
- Current Date:
=TODAY()
\nInserts the current date. - Current Date and Time:
=NOW()
\nInserts the current date and time.
Using Date Formatting in Charts
- Create a chart as usual.
- Right-click on the date axis.
- Select Format Axis.
- Change the Date format in the Axis Options.
This guide contains the practical steps and formulas to work with date formats in various contexts within Excel. Follow these steps to manipulate and format dates effectively in your data analysis projects.
Applying Currency Formats in Excel
Step-by-Step Implementation
Step 1: Select the Data Range
- Highlight the cells you want to format as currency.
Step 2: Open Format Cells Dialog
- Right-click on the selected cells.
- Click on Format Cells.
Step 3: Apply Currency Format
- In the Format Cells dialog box, go to the Number tab.
- Select Currency from the Category list.
- Choose the desired formatting options:
- Decimal Places: Set the number of decimal places.
- Symbol: Choose the currency symbol (e.g., $, โฌ, ยฅ).
- Negative Numbers: Choose the display format for negative numbers.
- Click OK to apply the changes.
Step 4: Fine-tune via Home Ribbon
- With the cells still selected, go to the Home tab.
- In the Number group, modify additional settings as needed using the dropdown
and buttons available for quick access.
Example:
Assume we have values in the range A1:A10. The steps will format these values as currency in USD with two decimal places.
' Select the cells you're working with
Range("A1:A10").Select
' Open Format Cells Dialog
With Selection
Selection.NumberFormat = "$#,##0.00"
End With
Now, the values in cells A1 to A10 will be displayed as USD currency with two decimal places.
Additional Tips
- Customize the placement of currency symbols directly in the Format Cells dialog.
- Use predefined shortcuts in the Home ribbon to enhance ease of use.
The above implementation can be done swiftly through Excelโs GUI or using VBA for automation.
Part 4: Using Percentage Formats
Step-by-Step Guide
-
Highlight the Data
- Select the range of cells you wish to format as percentages.
-
Apply Percentage Format
- Go to the Home tab on the Ribbon.
- In the Number group:
- Click the Percentage Style button (often represented as
%
).
- Click the Percentage Style button (often represented as
-
Adjust Decimal Places
- With the cells still highlighted:
- In the Number group, click the Increase Decimal or Decrease Decimal buttons to set the desired number of decimal places.
- With the cells still highlighted:
Shortcut Method
-
Highlight the Data
- Select the range of cells you want formatted.
-
Keyboard Shortcut
- Press
Ctrl+Shift+%
to quickly apply the percentage format.
- Press
Example Use
- If you have values such as
0.25
,0.5
, and0.75
in cellsA1
,A2
, andA3
:- Applying the percentage format will display them as
25%
,50%
, and75%
respectively.
- Applying the percentage format will display them as
Custom Percentage Format
-
Highlight the Data
- Select the range of cells you wish to format.
-
Open Format Cells Dialog
- Press
Ctrl+1
to open the Format Cells dialog box.
- Press
-
Custom Format
- Go to the Number tab.
- Select Custom from the list on the left.
- In the Type field, enter a custom format such as
0.00%
for two decimal places.
Real-world Use
Example Usage | Description |
---|---|
Percentages in Sales Data | Format cells to show sales growth rates like 5.00% |
Budget Allocation | Display budget portions in percentage, e.g., 12.5% for transportation |
Conclusion
This section outlines the practical steps needed to apply, modify, and customize percentage formats in Excel. Refer to the previous sections for foundational steps if needed.
Exploring Custom Number Formats in Excel
Custom Number Format Examples
1. Display Numbers with Leading Zeros
# Custom Format Code: 00000
123 -> 00123
45 -> 00045
Steps:
- Select the cell or range.
- Press
Ctrl
+1
to open the Format Cells dialog. - Navigate to the Number tab.
- Select Custom.
- In the Type field, enter
00000
.
2. Format Numbers as Phone Numbers
# Custom Format Code: (###) ###-####
1234567890 -> (123) 456-7890
Steps:
- Select the cell or range.
- Press
Ctrl
+1
to open the Format Cells dialog. - Navigate to the Number tab.
- Select Custom.
- In the Type field, enter
(###) ###-####
.
3. Display Large Numbers with Thousands Separator
# Custom Format Code: #,##0
1000 -> 1,000
1000000 -> 1,000,000
Steps:
- Select the cell or range.
- Press
Ctrl
+1
to open the Format Cells dialog. - Navigate to the Number tab.
- Select Custom.
- In the Type field, enter
#,##0
.
4. Show Negative Numbers in Red and Parentheses
# Custom Format Code: #,##0_);[Red](#,##0)
1234 -> 1,234
-1234 -> (1,234) [in red]
Steps:
- Select the cell or range.
- Press
Ctrl
+1
to open the Format Cells dialog. - Navigate to the Number tab.
- Select Custom.
- In the Type field, enter
#,##0_);[Red](#,##0)
.
5. Display Numbers as Fractions
# Custom Format Code: # ?/?
0.75 -> 3/4
Steps:
- Select the cell or range.
- Press
Ctrl
+1
to open the Format Cells dialog. - Navigate to the Number tab.
- Select Custom.
- In the Type field, enter
# ?/?
.
6. Custom Text with Numbers
# Custom Format Code: "Order #" 0000
123 -> Order # 0123
Steps:
- Select the cell or range.
- Press
Ctrl
+1
to open the Format Cells dialog. - Navigate to the Number tab.
- Select Custom.
- In the Type field, enter
"Order #" 0000
.
7. Add Suffix to Numbers
# Custom Format Code: 0" kg"
50 -> 50 kg
Steps:
- Select the cell or range.
- Press
Ctrl
+1
to open the Format Cells dialog. - Navigate to the Number tab.
- Select Custom.
- In the Type field, enter
0" kg"
.
Conclusion
This guide provides practical custom number format solutions that you can apply directly in Excel to improve the clarity and functionality of your data analysis.
Part #6: Integrating Number Formats with Excel Formulas and Data Analysis Tools
Conditional Formatting with Number Formats
- Highlight Cells Based on Number Values:
- Select your data range.
- Go to
Home
>Conditional Formatting
>Highlight Cell Rules
. - Choose options like
Greater Than
,Less Than
, etc., and format accordingly.
=IF(A1 > 100, "High", "Low")
- Color Scales:
- Select your data range.
- Go to
Home
>Conditional Formatting
>Color Scales
. - Select a color scale to apply.
Using Number Formats in Formulas
- Combining Text with Numbers:
= "Total Sales: " & TEXT(A1, "$#,##0.00")
- Rounding Numbers:
= ROUND(A1, 2)
- Percentage Calculations:
= A1 * 100 & "%"
Leveraging Excel Functions
- SUMIFS with Date Formats:
= SUMIFS(B:B, A:A, ">=01/01/2023", A:A, "<=12/31/2023")
- MONTH and YEAR Functions:
= MONTH(A1)
= YEAR(A1)
- Concatenating Custom Formats:
= TEXT(A1, "mmm-dd-yyyy") & " - " & DOLLAR(B1)
Data Analysis Tools
- Pivot Tables:
- Select your data.
- Go to
Insert
>PivotTable
. - Use the
Values
area to apply number formats.
= TEXT(SUM(A1:A10), "$#,##0.00")
- Data Validation:
- Select your data range.
- Go to
Data
>Data Validation
. - Set criteria to restrict data entry to specific formats.
= AND(ISNUMBER(A1), A1 >= 0)
Charting Data with Formats
- Creating a Chart:
- Select your data range.
- Go to
Insert
>Chart
. - Apply number formats to the chartโs axis.
= TEXT(A1, "$#,##0.00")
Implement these strategies to integrate number formats into your Excel formulas and data analysis tools effectively.