1. Excel
1. Excel
Data Entry
- Select the desired cell > enter the data
- Press ‘Enter’ to move to next cell in row and press ‘Tab’ to move to next cell in
column or use arrow keys
- Double click on cell to edit > press Enter to save changes or press esc to cancel
- Ctrl + C to copy | Ctrl + X to cut | Ctrl + V to paste
- Enter a value in cell > click and drag fill handle (small square at the bottomright
corner of the cell) to adjacent cells to autofill. You can also customize autofill to fill with a
series.
- Ctrl + Z to undo | Ctrl + Y to redo
2. Range:
- A range in Excel refers to a group of cells that are adjacent to each other, either
horizontally, vertically, or in a rectangular shape.
- It is defined by specifying the starting cell and ending cell, separated by a colon (:).
For example, A1:B5 represents a range that includes all cells from A1 to B5.
- Ranges are commonly used in formulas, functions, and data manipulation operations
to perform calculations, analyze data, and apply formatting to multiple cells
simultaneously.
Functions
1. Mathematical and trigonometric functions: Perform basic arithmetic and
trigonometric calculations. Examples: SUM, AVERAGE, MIN, MAX, SIN, COS.
2. Statistical functions: Analyze and summarize data statistically. Examples: COUNT,
COUNTA, COUNTIF, AVERAGEIF, STDEV, STDEVP.
3. Logical functions: Make decisions based on logical conditions. Examples: IF, AND,
OR, NOT.
4. Text functions: Manipulate and analyze text strings. Examples: CONCATENATE,
LEFT, RIGHT, MID, LEN.
5. Data and time functions: Work with dates and timerelated calculations. Examples:
DATE, TODAY, NOW, YEAR, MONTH, DAY.
6. Lookup and reference functions: Retrieve data from tables or specific references.
Examples: VLOOKUP, HLOOKUP, INDEX, MATCH, INDIRECT, OFFSET.
7. Financial functions: Perform common financial calculations. Examples include PV,
FV, RATE, and PMT.
8. Database functions: Analyze data stored in databases or lists by extracting
information based on specified criteria. Examples include DSUM, DCOUNT, DAVERAGE,
DMAX, and DMIN.
Mathematical Functions
SUM:
Adds up the values in a range of cells.
Syntax: `=SUM(number1, [number2], ...)`
AVERAGE:
Calculates the average of the values in a range of cells.
Syntax: `=AVERAGE(number1, [number2], ...)`
MIN:
Finds the smallest value in a range of cells.
Syntax: `=MIN(number1, [number2], ...)`
MAX:
Finds the largest value in a range of cells.
Syntax: `=MAX(number1, [number2], ...)`
ROUND:
Rounds a number to a specified number of digits.
Syntax: `=ROUND(number, num_digits)`
INT:
Rounds a number down to the nearest integer.
Syntax: `=INT(number)`
ABS:
Returns the absolute value of a number.
Syntax: `=ABS(number)`
SQRT:
Calculates the square root of a number.
Syntax: `=SQRT(number)`
POWER:
Raises a number to a power.
Syntax: `=POWER(number, power)`
MOD:
Returns the remainder of a division operation.
Syntax: `=MOD(number, divisor)`
PRODUCT:
Multiplies the values in a range of cells.
Syntax: `=PRODUCT(number1, [number2], ...)`
SUMPRODUCT:
Calculates the sum of the products of corresponding numbers in multiple arrays or
ranges.
Syntax: `=SUMPRODUCT(array1, [array2], ...)`
SUBTOTAL:
Returns a subtotal in a list or database.
Syntax: `=SUBTOTAL(function_num, ref1, [ref2], ...)`
MEDIAN:
Returns the median (middle value) of a set of numbers.
Syntax: `=MEDIAN(number1, [number2], ...)`
RAND:
Returns a random number between 0 and 1.
Syntax: `=RAND()`
Statistical Functions
AVERAGE:
Calculates the arithmetic mean of a range of numbers.
Syntax: `=AVERAGE(number1, [number2], ...)`
COUNT:
Counts the number of cells that contain numbers.
Syntax: `=COUNT(value1, [value2], ...)`
COUNTA:
Counts the number of cells that are not empty.
Syntax: `=COUNTA(value1, [value2], ...)`
COUNTIF:
Counts the number of cells that meet a specific condition.
Syntax: `=COUNTIF(range, criteria)`
COUNTIFS:
Counts the number of cells that meet multiple conditions.
Syntax: `=COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2], ...)`
MIN:
Returns the smallest number in a range of cells.
Syntax: `=MIN(number1, [number2], ...)`
MAX:
Returns the largest number in a range of cells.
Syntax: `=MAX(number1, [number2], ...)`
SUM:
Adds up the values in a range of cells.
Syntax: `=SUM(number1, [number2], ...)`
SUMIF:
Adds the cells specified by a given condition or criteria.
Syntax: `=SUMIF(range, criteria, [sum_range])`
AVERAGEIF:
Calculates the average of cells that meet a specific condition.
Syntax: `=AVERAGEIF(range, criteria, [average_range])`
AVERAGEIFS:
Calculates the average of cells that meet multiple conditions.
Syntax: `=AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2,
criteria2], ...)`
STDEV:
Estimates the standard deviation based on a sample.
Syntax: `=STDEV(number1, [number2], ...)`
STDEVP:
Calculates the standard deviation based on an entire population.
Syntax: `=STDEVP(number1, [number2], ...)`
MEDIAN:
Returns the median (middle value) of a set of numbers.
Syntax: `=MEDIAN(number1, [number2], ...)`
MODE:
Returns the most frequently occurring value in a range of numbers.
Syntax: `=MODE(number1, [number2], ...)`
Logical Functions
IF Function:
Syntax: `=IF(logical_test, value_if_true, value_if_false)`
Example: `=IF(A1>10, "Yes", "No")` - Returns "Yes" if the value in cell A1 is greater than
10, otherwise returns "No".
AND Function:
Syntax: `=AND(condition1, condition2, ...)`
Example: `=AND(A1>10, B1<20)` - Returns TRUE if both conditions (A1>10 and B1<20)
are true, otherwise returns FALSE.
OR Function:
Syntax: `=OR(condition1, condition2, ...)`
Example: `=OR(A1="Male", A1="Female")` - Returns TRUE if either condition (A1 is
"Male" or A1 is "Female") is true, otherwise returns FALSE.
NOT Function:
Syntax: `=NOT(logical_expression)`
Example: `=NOT(A1="Completed")` - Returns TRUE if the value in cell A1 is not
"Completed", otherwise returns FALSE.
IFERROR Function:
Syntax: `=IFERROR(value, value_if_error)`
Example: `=IFERROR(A1/B1, "Error: Division by Zero")` - Returns the result of A1/B1 if
no error occurs, otherwise returns "Error: Division by Zero".
IFNA Function:
Syntax: `=IFNA(value, value_if_na)`
Example: `=IFNA(VLOOKUP(A1, range, 2, FALSE), "Not Found")` - Returns the result of
the VLOOKUP function if a value is found, otherwise returns "Not Found" if #N/A error
occurs.
XOR Function (Exclusive OR):
Syntax: There is no built-in XOR function in Excel, but it can be simulated using other
logical functions.
Example: `=IF(AND(A1="Yes", B1="No"), TRUE, FALSE)` - Returns TRUE if A1 is "Yes"
and B1 is "No", or vice versa; otherwise returns FALSE.
Text Functions
FORMULA
CONCATENATE/CONCAT:
Joins two or more text strings into one string.
Syntax: =CONCATENATE(text1, text2, ...)
Example: =CONCATENATE("Hello", " ", "World") returns "Hello World".
LEFT:
Returns a specified number of characters from the beginning of a text string.
Syntax: =LEFT(text, num_chars)
Example: =LEFT("Excel", 3) returns "Exc".
RIGHT:
Returns a specified number of characters from the end of a text string.
Syntax: =RIGHT(text, num_chars)
Example: =RIGHT("Excel", 2) returns "el".
MID:
Returns a specific number of characters from a text string, starting at the position you
specify.
Syntax: =MID(text, start_num, num_chars)
Example: =MID("Excel", 2, 3) returns "xce".
LEN:
Returns the number of characters in a text string.
Syntax: =LEN(text)
Example: =LEN("Hello") returns 5.
LOWER:
Converts text to lowercase.
Syntax: =LOWER(text)
Example: =LOWER("HELLO") returns "hello".
UPPER:
Converts text to uppercase.
Syntax: =UPPER(text)
Example: =UPPER("hello") returns "HELLO".
PROPER:
Converts the first letter of each word in a text string to uppercase.
Syntax: =PROPER(text)
Example: =PROPER("hello world") returns "Hello World".
FIND:
Finds one text string within another (case-sensitive) and returns the starting position of
the found text.
Syntax: =FIND(find_text, within_text, [start_num])
Example: =FIND("e", "Excel") returns 2.
SEARCH:
Similar to FIND but case-insensitive.
Syntax: =SEARCH(find_text, within_text, [start_num])
Example: =SEARCH("e", "Excel") returns 2.
REPLACE:
Replaces characters within a text string, starting at a specified position.
Syntax: =REPLACE(old_text, start_num, num_chars, new_text)
Example: =REPLACE("abcdef", 2, 3, "123") returns "a123ef".
SUBSTITUTE:
Replaces occurrences of a specified substring within a text string.
Syntax: =SUBSTITUTE(text, old_text, new_text, [instance_num])
Example: =SUBSTITUTE("apple,banana,orange", ",", ";", 2) replaces the second
occurrence of "," with ";" resulting in "apple;banana;orange".
2. Filtering:
- Filtering allows users to display only the rows that meet specific criteria and hide the
rest of the data temporarily.
- To apply filtering in Excel:
- Select the range or table you want to filter.
- Go to the "Data" tab on the Excel ribbon.
- Click on the "Filter" button.
- Dropdown arrows will appear next to the column headers.
- Click on the dropdown arrow in the column you want to filter.
- Choose the filter criteria you want to apply (e.g., text filters, number filters, date
filters).
- Excel will display only the rows that meet the selected criteria, hiding the rest.
3. Advanced Filtering:
- Excel also provides advanced filtering options for more complex filtering criteria.
- To use advanced filtering:
- Select the range or table you want to filter.
- Go to the "Data" tab on the Excel ribbon.
- Click on the "Advanced" button in the "Sort & Filter" group.
- Specify the criteria range and copy-to range for the advanced filter.
- Click "OK" to apply the advanced filter.
Sorting and filtering are essential tools for analyzing and visualizing data in Excel. They
help users identify patterns, trends, and outliers more effectively, making data-driven
decisions easier to implement.
2. Conditional Formatting:
- Conditional formatting allows you to dynamically format cells based on specified
conditions or rules.
- It helps highlight important trends, patterns, or outliers in your data visually.
- You can apply various formatting options such as font color, background color, font
style, and borders.
- Common use cases include highlighting top/bottom values, data bars, color scales,
and icon sets.
- To apply conditional formatting:
- Select the cell or range of cells where you want to apply conditional formatting.
- Go to the "Home" tab on the Excel ribbon.
- Click on "Conditional Formatting" in the "Styles" group.
- Choose the formatting rule and set the conditions based on your requirements.
Pivot Tables
What is a PivotTable?:
A PivotTable is a data summarization tool in Excel that allows you to reorganize and
summarize large amounts of data into a more manageable format.
It enables users to quickly analyze and extract insights from complex datasets without
altering the original data.
Key Features:
Summarization: PivotTables can summarize data by performing calculations such as
sum, count, average, minimum, maximum, etc.
Dynamic Reorganization: Users can easily rearrange rows, columns, and data fields to
view different perspectives of the data.
Filtering: PivotTables allow filtering data based on various criteria to focus on specific
subsets of data.
Drill-down: Users can drill down into summarized data to see underlying details.
Charts: PivotTables can be used to create dynamic charts and graphs based on the
summarized data.
Refreshing Data:
PivotTables are dynamic and update automatically when the source data changes.
Users can manually refresh PivotTables by right-clicking on the PivotTable and selecting
"Refresh".
Grouping Data:
Users can group dates, numeric values, or text fields in PivotTables to simplify analysis
and visualization. For example, grouping sales data by month, quarter, or year to
identify seasonal trends or patterns more easily.
PivotTables also allow for custom grouping, enabling users to define their own grouping
criteria based on specific requirements.
Creating PivotCharts:
PivotTables can be used to create dynamic PivotCharts that visually represent
summarized data. Users can choose from various chart types, customize chart elements,
and link PivotCharts to PivotTables for dynamic interaction.
PivotCharts update automatically when the underlying data in the PivotTable changes,
providing real-time insights into the data.
Name Manager
Name Manager enables users to create, edit, delete, and organize named ranges and
defined names within Excel workbooks.
You can access the Name Manager by going to the Formulas tab in the Ribbon and
clicking on the Name Manager button.
Create: Allows users to define names for cells, ranges, formulas, or constants within the
workbook.
Edit: Enables modification of existing named ranges or defined names, including
changing the reference or name itself.
Delete: Permits removal of named ranges or defined names that are no longer needed.
Organize: Provides a list view of all named ranges and defined names in the workbook,
making it easy to manage and organize them.
Power Query
Power Query is a data transformation and data preparation tool available in Microsoft
Excel and Power BI. Here's a short explanation of Power Query for data transformation:
1. Data Import: Power Query allows you to import data from various sources
including Excel files, CSV files, text files, databases, websites, and more. You can
connect to multiple data sources simultaneously.
2. Data Transformation: Once the data is imported, Power Query provides a user-
friendly interface for transforming and shaping the data. You can perform a wide range
of transformations including:
- Filtering rows and columns
- Removing duplicates
- Splitting columns
- Merging or appending tables
- Renaming columns
- Changing data types
- Adding custom columns with calculated values using the M language (Power Query
Formula Language)
3. Query Steps: Power Query records each transformation step in a series of query
steps. These steps are stored and can be edited, rearranged, or deleted at any time. This
provides a transparent and reproducible process for data transformation.
4. Data Load: Once the data is transformed, you can load it into Excel or Power BI for
analysis and reporting. Power Query allows you to create connections that can be
refreshed to update the data with new information from the original sources.
5. Automatic Refresh: Power Query enables automatic data refresh, which means
that when the original data source is updated, you can refresh your queries to pull in the
latest data without manual intervention.
2. Merge and Append Queries: Power Query allows users to merge multiple queries or
append data from multiple sources into a single query. The Merge feature enables users
to join tables based on common columns, similar to SQL joins, while the Append feature
combines data from multiple queries vertically. This feature is helpful for combining data
from different sources or tables for analysis and reporting.
3. Unpivot Columns: Power Query includes the Unpivot Columns feature, which allows
users to transform columns into rows. This is particularly useful when dealing with data
sets where columns represent different categories or attributes, and users need to
reshape the data into a more structured format for analysis.
4. Custom Functions: Power Query supports the creation of custom functions, which
allows users to encapsulate and reuse complex transformation logic across multiple
queries. Custom functions can be created using the M language and invoked within
Power Query queries, providing a way to modularize and streamline data transformation
workflows.
2. Creating a Chart: To create a chart in Excel, users typically select the data they want
to visualize and then navigate to the "Insert" tab on the Excel ribbon. From there, they
choose the type of chart they want to create based on their data and visualization
requirements.
4. Chart Tools: Excel provides dedicated chart tools and contextual tabs that appear
when a chart is selected. These tools allow users to make adjustments to the chart's
appearance, layout, and data series easily.
5. Data Series and Labels: Users can add multiple data series to a chart to compare
different sets of data. They can also include data labels, which provide additional
information about data points on the chart.
6. Interactive Features: Excel charts support interactive features such as zooming,
panning, and data point selection. Users can interact with the chart to explore specific
data points or regions of interest.
7. Dynamic Charts: Users can create dynamic charts in Excel by linking them to dynamic
ranges or pivot tables. Dynamic charts automatically update when the underlying data
changes, ensuring that the chart always reflects the most current information.
8. Combining Chart Types: Excel allows users to combine different chart types within the
same chart, creating visually compelling and informative presentations of data. For
example, users can create a combination chart with both column and line series to show
trends and comparisons simultaneously.
Creating a Chart
Select Data: First, select the data range you want to include in your chart. This can be a
range of cells containing your data.
Insert Chart: With your data selected, go to the "Insert" tab on the Excel ribbon.
Choose Chart Type: Click on the type of chart you want to create from the "Charts"
group. Common types include column, bar, line, pie, and scatter charts.
Insert Chart: Click on the specific chart subtype you want to use. Excel will automatically
generate a chart and place it in your worksheet.
Press ‘alt’ key when resizing chart will fit it into row-column boundary.
Press ‘shift’ key while resizing keeps width-height ratio constant.
Sparklines
Sparklines are small, simple, and condensed charts that provide a visual representation
of data trends within a single cell. They are designed to be used within individual cells to
quickly summarize data trends without taking up much space. Here's an overview of
Sparklines in Excel:
3. Customization Options: After inserting Sparklines, you can customize them using the
"Sparkline Tools" tab that appears on the ribbon when you select a Sparkline. You can
adjust various aspects of the Sparkline, such as:
- Style: Change the style and appearance of the Sparkline.
- Color: Modify the color scheme of the Sparkline.
- Axis: Show or hide the axis and set axis options.
- Markers: Add markers to data points on the Sparkline.
- Axis Scaling: Adjust the minimum and maximum values of the axis.
4. Dynamic Updates: Sparklines are dynamic and update automatically when the data in
the underlying range changes. This allows you to see real-time updates of data trends
without manually adjusting the Sparklines.
5. Compact Visualization: Sparklines are compact and can be inserted directly into cells,
making them ideal for presenting data trends in tables, dashboards, and reports where
space is limited.
6. Data Analysis: Sparklines provide a quick and visual way to analyze data trends,
identify patterns, and compare data points across different categories or time periods.
Trendlines
Trendlines are lines that visually represent the general direction of data points plotted
on a chart. They help to illustrate trends or patterns in the data and make it easier to
identify relationships between variables. Here's an explanation of trendlines in Excel:
4. Interpreting Trendlines: Trendlines help to visualize the overall trend or pattern in the
data. Depending on the type of trendline, they can show whether the data is increasing,
decreasing, or following a specific mathematical relationship.
5. Analysis and Prediction: Trendlines can be used for analysis and prediction. By
examining the slope and direction of the trendline, users can make informed decisions
and predictions about future trends or outcomes based on historical data.
6. Validity and Limitations: While trendlines provide valuable insights into data trends,
it's important to interpret them carefully. Trendlines assume that the underlying
relationship between variables remains consistent over time, which may not always be
the case.
Pivot Charts
Pivot charts are graphical representations of data that are derived from pivot tables in
Microsoft Excel. They allow users to visualize summarized data from a pivot table in a
chart format, making it easier to interpret and analyze trends, patterns, and
relationships within the data. Here's a breakdown of pivot charts:
1. Derived from Pivot Tables: Pivot charts are created based on the data and calculations
within a pivot table. A pivot table is a data summarization tool that allows users to
analyze large datasets by organizing and summarizing data into a more manageable
format.
2. Dynamic Updates: Like pivot tables, pivot charts are dynamic and automatically
update when changes are made to the underlying data in the pivot table. This ensures
that the chart reflects the most current information and eliminates the need to manually
update the chart whenever the data changes.
4. Interactivity: Pivot charts support interactivity, allowing users to filter and manipulate
the data displayed in the chart dynamically. Users can apply filters, slicers, and timelines
to the pivot table, and the pivot chart will adjust accordingly to reflect the filtered data.
6. Analysis and Insights: Pivot charts enable users to analyze and gain insights from their
data more effectively by visually identifying trends, patterns, and outliers. They provide
a powerful tool for data exploration and presentation, making it easier to communicate
findings and make informed decisions based on the data.
Macros
Excel macros are automated sequences of commands and actions that users can create
to perform repetitive tasks in Microsoft Excel. Essentially, macros allow users to record a
series of steps and then execute them with a single click or keyboard shortcut. Here's an
introduction to Excel macros:
1. Recording Macros: Excel provides a built-in macro recorder that allows users to record
their actions as they perform tasks in Excel. To record a macro:
- Go to the "View" tab on the Excel ribbon.
- Click on the "Macros" dropdown menu and select "Record Macro."
- Provide a name for the macro and optionally assign it to a shortcut key.
- Perform the actions you want to record in Excel.
- Once you're done, stop the recording by clicking on the "Stop Recording" button in
the status bar.
2. Writing Macros in VBA: Macros recorded using the macro recorder are written in VBA
(Visual Basic for Applications), a programming language developed by Microsoft. Users
can also write macros manually using VBA code editor in Excel. VBA allows for more
advanced and customized macros compared to the macro recorder.
3. Editing Macros: After recording a macro or writing VBA code, users can edit and
modify the macro to suit their specific needs. The VBA editor provides tools for writing,
debugging, and organizing macros.
5. Common Uses of Macros: Macros can be used to automate a wide range of tasks in
Excel, including:
- Formatting data and reports.
- Performing calculations and data analysis.
- Importing and exporting data.
- Generating charts and graphs.
- Automating data entry and manipulation tasks.
- Creating custom functions and tools.
6. Security Considerations: Macros can potentially pose security risks if they contain
malicious code. Therefore, Excel has built-in security features that allow users to enable
or disable macros based on their trust level. Users should be cautious when enabling
macros from untrusted sources.
VBA
VBA stands for Visual Basic for Applications. It's a programming language developed by
Microsoft to automate tasks in their Office applications, such as Excel, Word, Access, and
PowerPoint.
VBA allows users to write scripts that manipulate data, automate processes, create
forms and user interfaces, and interact with other applications. It's particularly powerful
when used within Excel for tasks like data analysis, report generation, and automating
repetitive tasks.
Press Alt + F11 to open the Visual Basic for Applications (VBA) editor.
Go to Insert > Module to insert a new module.
Copy and paste the code into the module.
Close the VBA editor.
You can then run the macro by pressing Alt + F8, selecting "AddNumbers", and clicking
"Run".
Certainly! Let's cover the basics of VBA programming with syntax and code examples:
VBA Syntax:
VBA syntax follows a structure similar to other programming languages like Visual Basic.
Statements in VBA typically end with a line break or a colon `:` to separate multiple
statements on a single line.
Variables:
Variables are used to store data during program execution.
In VBA, you declare variables using the `Dim` keyword.
Variables can have various data types such as String, Integer, Long, Double, Boolean,
Date, Object, etc.
```vba
Dim myInteger As Integer
Dim myString As String
Dim myDouble As Double
Dim myBoolean As Boolean
Dim myDate As Date
```
Data Types:
VBA supports different data types to represent different kinds of values.
Some common data types in VBA include:
Integer: Represents whole numbers.
String: Represents text.
Double: Represents double-precision floating-point numbers.
Boolean: Represents true or false values.
Date: Represents date and time values.
Object: Represents objects such as Excel worksheets or ranges.
Loops:
Loops are used to execute a block of code repeatedly.
Common types of loops in VBA include For loops, Do...While loops, and Do...Until loops.
```vba
' For Loop
For i = 1 To 10
' Code to be executed
Next i
Conditional Statements:
Conditional statements are used to perform different actions based on different
conditions.
Common conditional statements in VBA include If...Then...Else statements and Select
Case statements.
```vba
' If...Then...Else Statement
If condition Then
' Code to be executed if condition is true
Else
' Code to be executed if condition is false
End If
Procedures:
Procedures in VBA are blocks of code that perform specific tasks.
Subroutines (Sub) are procedures that don't return a value, while functions return a
value after performing a task.
```vba
' Subroutine
Sub MySubroutine()
' Code to be executed
End Sub
' Function
Function MyFunction() As Integer
' Code to be executed
MyFunction = 10 ' Assigning a return value
End Function
```
The Excel object model allows you to interact with various elements of Excel, such as
workbooks, worksheets, ranges, cells, charts, and more, through VBA code. Here's an
overview with code examples for each:
```vba
' Open a workbook
Workbooks.Open "C:\path\to\workbook.xlsx"
```vba
' Select a range
Range("A1:B5").Select
Charts:
```vba
' Add a new chart
Dim chartObj As ChartObject
Set chartObj = ws.ChartObjects.Add(Left:=100, Width:=375, Top:=75, Height:=225)
```vba
' Access the Application object
Dim excelApp As Application
Set excelApp = Application
Shortcuts
Navigation Shortcuts:
- Arrow Keys: Move one cell up, down, left, or right.
- Ctrl + Arrow Keys: Move to the edge of the current data region.
- Ctrl + Home: Move to cell A1.
- Ctrl + End: Move to the last cell in the worksheet.
- Ctrl + G: Go to a specific cell.
Selection Shortcuts:
- Shift + Arrow Keys: Extend the selection one cell in the direction of the arrow.
- Ctrl + Shift + Arrow Keys: Extend the selection to the last nonblank cell in the same
column or row.
- Ctrl + A: Select the entire worksheet.
- Shift + Space: Select the entire row.
- Ctrl + Space: Select the entire column.
Editing Shortcuts:
- F2: Edit the active cell.
- Ctrl + C: Copy.
- Ctrl + X: Cut.
- Ctrl + V: Paste.
- Ctrl + Z: Undo.
- Ctrl + Y: Redo.
- Ctrl + D: Fill down.
- Ctrl + R: Fill right.
- Ctrl + ;: Enter the current date.
- Ctrl + Shift + :: Enter the current time.
Formatting Shortcuts:
- Ctrl + B: Bold.
- Ctrl + I: Italic.
- Ctrl + U: Underline.
- Ctrl + 1: Format cells dialog box.
- Ctrl + Shift + $: Apply currency format.
- Ctrl + Shift + %: Apply percentage format.
- Ctrl + Shift + #: Apply date format.
- Ctrl + Shift + @: Apply time format.
Function Shortcuts:
- Alt + =: AutoSum.
- Ctrl + Shift + A: Insert function.
- Ctrl + Shift + L: Toggle filters.
- Ctrl + Shift + O: Select all cells with comments.
- F3: Paste a named range into a formula.
- Ctrl + Enter: Fill selected cell range with the current entry.
Window Shortcuts:
- Ctrl + F6: Switch between open workbooks.
- Ctrl + Tab: Switch to the next open workbook.
- Ctrl + Shift + Tab: Switch to the previous open workbook.
- Ctrl + W: Close the current workbook.
Other Shortcuts:
- Ctrl + P: Print.
- F1: Open Excel Help.
- F7: Spell check selected text or document.
- Ctrl + F: Find.
- Ctrl + H: Replace.