Excel Basic Advance Detail
Excel Basic Advance Detail
Title Bar: The topmost bar that displays the name of the Excel application and the name of
the currently open workbook.
Ribbon: The Ribbon is a horizontal strip located below the title bar. It contains tabs, such as
Home, Insert, Page Layout, Formulas, Data, etc. Each tab is divided into groups that contain
related commands and functions for different tasks.
Worksheet Area: The main area of the Excel window is divided into multiple worksheets
(tabs at the bottom) where you can enter and manipulate data. By default, a new workbook
contains three worksheets, but you can add or delete worksheets as needed.
Formula Bar: The Formula Bar is located above the worksheet area. It displays the contents
of the currently selected cell and allows you to enter or edit formulas and data.
Column Headers: The columns are labeled with letters (A, B, C, etc.) at the top of the
worksheet. You can click on the column headers to select an entire column or perform
column-related operations.
Row Headers: The rows are labeled with numbers (1, 2, 3, etc.) on the left side of the
worksheet. You can click on the row headers to select an entire row or perform row-related
operations.
Cell Grid: The cell grid forms the main part of the worksheet area. Each cell is identified by a
unique combination of a column letter and a row number (e.g., A1, B2, C3, etc.). Cells are
used to enter and store data, perform calculations, and display results.
Status Bar: The Status Bar is located at the bottom of the Excel window. It provides
information about the current status of the worksheet, such as the sum, count, or average
of selected cells, the mode of calculation, and various other indicators.
5. Types of References
Relative Reference: Adjusts cell references relative to the formula's position when copied,
making it flexible for calculations across different cells.
Absolute Reference: Maintains the exact cell reference when copied, ensuring that the
formula always refers to the same cell, regardless of its new location.
6. Formatting Options
Number Formatting: Change the appearance of numeric data, such as decimals, currency,
dates, and percentages.
Font Formatting: Modify the font type, size, color, and style (bold, italic, underline) for text
within cells.
Cell Alignment: Adjust the alignment of cell content, including horizontal alignment (left,
center, right), vertical alignment (top, middle, bottom), and text orientation.
Borders and Gridlines: Apply borders around cells or ranges, customize border styles, and
show/hide gridlines to enhance the visual structure of the worksheet.
Cell Fill: Change the background color or add patterns to cells, making it easier to
differentiate and highlight specific data.
Conditional Formatting: Set rules to automatically format cells based on specific conditions,
such as color scales, data bars, and icon sets.
Cell Styles: Apply pre-defined cell styles that combine various formatting attributes for
consistent and professional-looking formatting.
Column Width and Row Height: Adjust the width of columns and the height of rows to
control the visual presentation of data.
Merge and Center: Combine multiple cells into a single cell and center the content within
the merged cell.
Format Painter is a tool in Excel that allows you to copy the formatting of one cell or range
and apply it to another cell or range.
3. AVERAGE 4. Median
MODE MAX
MIN 25th Percentile
Nth LARGEST
IFS FUNCTIONS:
COUNTIF: Counts the number of cells in a range that meet a specific criteria
AVERAGEIF: Calculates the average of cells in a range that meet a specific criteria.
SUMIF: Adds the values of cells in a range that meet a specific criteria
COUNTIFS: Counts the number of cells in multiple ranges that meet multiple criteria.
AVERAGEIFS: Calculates the average of cells in multiple ranges that meet multiple criteria.
SUMIFS: Adds the values of cells in multiple ranges that meet multiple criteria.
LOOKUP FUNCTION
VLOOKUP: Searches for a value in the leftmost column of a table and returns a
corresponding value from a specified column.
HLOOKUP: Searches for a value in the top row of a table and returns a corresponding value
from a specified row.
XLOOKUP: Searches for a value in a range or array and returns a corresponding value from a
specified column or array.
INDEX MATCH
INDEX: Retrieves the value from a specific row and column in a range or array.
MATCH: Searches for a specified value in a range and returns its relative position.
INDEX MATCH: Retrieves a value from a specific row and column in a range based on a
matching criterion in another column. Example: =
=INDEX(B5:G12,MATCH(B15,B5:B12,0),MATCH(C15,B5:G5,0)) retrieves the value from the
second column of the range A1:D10 where the value in C1 matches the corresponding value
in the range B5:G5.
Offset Match
OFFSET MATCH is a combination of two functions used in Excel to dynamically retrieve data
from a table. OFFSET function defines a range based on a given reference point, and MATCH
function finds the position of a specified value within a range. Together, they allow you to
retrieve data by dynamically adjusting the range based on the matching criteria.
Text functions
Upper Case: Converts text to uppercase letters.
DATE: Creates a date value based on specified year, month, and day.
TIME: Creates a time value based on specified hour, minute, and second.
NETWORKDAYS: Calculates the number of working days between two dates, excluding
weekends.
EDATE: Returns a date that is a specified number of months before or after a given date.
EOMONTH: Returns the last day of the month, n months before or after a given date.
DATEDIF: Calculates the difference between two dates in years, months, or days.
TIMEVALUE: Converts a time in text format to a serial number (the fraction of a day).
Type of error
Data Validation
Range: Define a range of cells where you want to apply data validation.
Criteria: Specify the rules or conditions that the data must meet, such as whole numbers,
dates, or custom formulas.
Input Message: Provide a custom message that appears when a user selects a cell with data
validation, offering guidance or instructions.
Error Alert: Display a warning or error message if the data entered violates the defined
validation criteria, helping maintain data accuracy and integrity.
Excel Table
Ranges can be converted into tables.
Tables make it easier to structure and organize data.
Table Design
This menu has options and commands such as:
Resize
Remove duplicates
Convert to range
Style options (Total row, Header row, Banded row etc..)
Formatting
Table Name
1. Select the table
2. Click the Table design menu
3. See the name input field
Table Resizing
Resize table command
Drag to resize
Adding headers
Removing Duplicate
Removing duplicates are helpful when cleaning a dataset and you do not want to include
copies.
Excel sorting
Ranges can be sorted using the Sort Ascending and Sort Descending commands.
It is not recommended to sort the names alone because it will break the relationship
Clicking the other option in the warning "Expand and Sort" makes the sort function include
Column B and sorts them in relation to each other.
Filtering
AutoFilter: Apply basic filtering to a range of data in Excel.
Filter by Color: Filter data based on cell color in Excel.
Filter by Condition: Apply specific criteria or conditions to filter data in Excel.
Top/Bottom Filters: Filter data to show the top or bottom values in Excel (e.g., top 10,
bottom 5).
Text Filters: Filter data based on text criteria, such as contains, does not contain, or begins
with, in Excel.
Number Filters: Filter data based on numerical criteria, such as greater than, less than, or
equal to, in Excel.
Date Filters: Filter data based on date criteria, such as before, after, or between certain
dates, in Excel.
Custom Filters: Create custom filtering criteria using formulas or expressions in Excel.
Advanced Filters: Apply complex criteria using multiple conditions to filter data in Excel.
Filter by Selection: Filter data based on the selected cell's value in Excel.
Non-Woking Example
Excel Conditional Formatting
Conditional formatting is used to change the appearance of cells in a range based on your
specified conditions.
The conditions are rules based on specified numerical values or matching text.
Pie chart
Column chart
Line chart
Bar Charts
Bar charts show the data as vertical bars.
There are three different type of bar charts:
Clustered bar( )
Stacked bar( )
100% stacked bar( )
Stacked bar charts are used to highlights the total amount of contribution for each
category.
This is done by stacking the bars at the end of each other.
The charts are used when you have more than one data column.
Column chart
Column charts show the data as vertical bars.
Excel has three different types of column charts:
Clustered column( )
Stacked column( )
1. Click Insert > Insert Statistic Chart, and then under Histogram, pick Pareto.
You can also use the All Charts tab in Recommended Charts to create a Pareto chart
(click Insert > Recommended Charts > All Charts tab.
Configure Bins
1. Right-click on the chart horizontal axis, > Format Axis >Axis Options.
2. Use the information below to pick the options you want in the Format Axis task pane.
Histogram charts
Excel 2013
1. Make sure you load the Analysis ToolPakto add the Data Analysis command to
the Data tab.
2. On a worksheet, type the input data in one column, and the bin numbers in
ascending order in another column.
4. Under Input, select the input range (your data), then select the bin range.
Pie Chart
Pie charts arrange the data as slices in a circle.
Pie charts are used for representing values of qualitative (categorical) data.
2-D pie ( )
Doughnut ( )
Doughnut Chart
Doughnut charts arrange the data as slices in a circle with hollow center.
Doughnut charts are often used when you have more than one data column.
Line Chart
Line charts show the data as a continuous line.
Line charts are typically used for showing trends over time.
Line charts are used with data which can be placed in an order, from low to high .
Line ( )
Stacked Line ( )
Area Chat
An area chart is similar to a line chart with one difference – the area below the line is filled
with a color.
Both – a line chart and an area chart – show a trend over time.
Tree Map
A tree map chart provides a hierarchical view of your data and makes it easy to spot
patterns, such as which items are a store's best sellers. The tree branches are represented
by rectangles and each sub-branch is shown as a smaller rectangle. The tree map chart
displays categories by color and proximity and can easily show lots of data which would be
difficult with other chart types.
Tree map charts are good for comparing proportions within the hierarchy
2. Go to the Insert tab > Insert Hierarchy Chart > Tree map.
You can also use Recommended Charts to create a tree map chart by going
to Insert > Recommended Charts > All Charts.
3. Change label display
Waterfall chart
A waterfall chart shows a running total as values are added or subtracted. It's useful for
understanding how an initial value (for example, net income) is affected by a series of
positive and negative values.
The columns are color coded so you can quickly tell positive from negative numbers. The
initial and the final value columns often start on the horizontal axis, while the intermediate
values are floating columns. Because of this "look", waterfall charts are also called bridge
charts.
Heat maps
A Heat Map in Excel is a visual representation that quickly shows you a comparative
view of a dataset.
For example, in the dataset below, I can easily spot which are the months when the
sales were low (highlighted in red) as compared with other months.
1. Click anywhere in the chart you want to change to a combo chart to show the CHART
TOOLS.
3. On the All Charts tab, choose Combo, and then pick the Clustered Column - Line on
Secondary Axis chart.
4. Under Choose the chart type and axis for your data series , check the Secondary
Axis box for each data series you want to plot on the secondary axis, and then change
their chart type to Line.
5. Make sure that all other data series are shown as Clustered Column.
Sparkline
A sparkline is a tiny chart in a worksheet cell that provides a visual representation of data.
Use sparklines to show trends in a series of values, such as seasonal increases or decreases,
economic cycles, or to highlight maximum and minimum values. Position a sparkline near
its data for greatest impact.
Add sparkline
Funnel chart
Funnel charts show values across multiple stages in a process. For example, you could use a funnel
chart to show the number of sales prospects at each stage in a sales pipeline. Typically, the values
decrease gradually, allowing the bars to resemble a funnel.
1. Set up your data like the above example. Use one column for the
stages in the process, and one for the values.
2. Select the data.
3. Click Insert > Insert Waterfall, Funnel, Stock, Surface or Radar
chart > Funnel.
Dumbbell chart
Dumbbell chart also called DNA chart, which can help you to compare two points in a
series that are on the same axis.
It lets you add and remove values, perform calculations, and to filter and sort data sets.
PivotTable helps you structure and organize data to understand large data sets.
1. Column
2. Rows
3. Filter
4. Values
The Table Pivot is displayed how by your settings.
The PivotTable Fields panel is used to change how you see the data.
Layout
Drag and drop fields to the boxes to the right to display data in the table.
You can drag them to the four different boxes that we mentioned earlier (four main
components):
1. Filters
2. Rows
3. Columns
4. Values
Pivot table timeline
Instead of adjusting filters to show dates, you can use a PivotTable Timeline—a dynamic
filter option that lets you easily filter by date/time, and zoom in on the period you want with
a slider control. Click Analyze > Insert Timeline to add one to your worksheet.
1. Click anywhere in a PivotTable to show the PivotTable Tools ribbon group, then
click Analyze > Insert Timeline.
2. In the Insert Timeline dialog box, check the date fields you want, and click OK.
Work with link in excel
Quick access to related information in another file or on a web page, you can insert a hyperlink in a
worksheet cell. You can also insert links in specific chart elements.
You can also select an object, such as a picture or an element in a chart, that you want
to use to represent the link.
You can also right-click the cell or graphic and then click Link on the shortcut menu, or
you can press Ctrl+K.
Protect Worksheet
To prevent other users from accidentally or deliberately changing, moving, or deleting data
in a worksheet, you can lock the cells on your Excel worksheet and then protect the sheet
with a password. Say you own the team status report worksheet, where you want team
members to add data in specific cells only and not be able to modify anything else. With
worksheet protection, you can make only certain parts of the sheet editable and users will
not be able to modify data in any other region in the sheet.
2. In the Allow all users of this worksheet to list, select the elements you want people to
be able to change.
Unprotect an Excel worksheet
VBA Visual Basic for Applications is the Microsoft programming language for Microsoft
products like Excel, Word, and PowerPoint. It will do all the programming we wish to do in
the VBE (Visual Basic Editor). It is the platform to write our code of tasks to execute in Excel.
To start with VBA coding in Excel, you need to record a Macro.
1. Go to file option
2. Under file, go the option
3. Select customize ribbon
Record Macros
1. Developer” tab, click on Record Macro.
Give a proper name to the Macro.
The macro recorder keeps recording all your activities in the Excel sheet.
Stop recording under the “Developer” tab.
Saving Macros
One must save the Excel workbook containing macro code as “Macro-
Enabled Workbook. Then, click “Save As” and select the file’s extension as
“Macro-Enabled Workbook.