Data Analysis With Excel Notes
Data Analysis With Excel Notes
Data Analysis
with
Excel
st
1 Semester
Page |2
Qualitative Data
Non-numerical and descriptive by nature.
Includes words, images, audio, video, narratives, and observations.
Captures qualities, characteristics, feelings, and meanings.
Collected through interviews, focus groups, open-ended questionnaires, and
observations.
Used to explore "why" and "how" questions, providing rich and contextual
insights.
Data is unstructured or semi-structured and analyzed by identifying themes
or categories.
Examples: Interview transcripts, notes on behaviors, descriptions of
experiences.
Quantitative Data
Numerical and measurable.
Includes counts, measurements, ratings, and statistics.
Represents quantities and frequencies, often expressed in numbers.
Collected through surveys (closed-ended questions), experiments, sensors,
and databases.
Used to answer "how many," "how much," or "how often" questions.
Data is structured and analyzed through statistical methods.
Examples: Age, income, number of sales, test scores.
Structured vs Unstructured
Structured and unstructured data differ mainly in organization, format, storage, and
ease of analysis.
Structured Data
Organized in a predefined format, usually as rows and columns in databases
or spreadsheets.
Fits into a fixed schema that defines data types and attributes.
Easily searchable and accessible using standard query languages like SQL.
Ideal for quantitative data such as numbers and text with clear formats (e.g.,
dates, phone numbers).
Stored in relational databases and data warehouses.
Easier and faster to process using traditional data processing methods.
Examples: Customer information in CRM, sales records, inventory
databases.
Unstructured Data
Lacks a predefined format or organizational schema; highly flexible.
Includes text, images, videos, audio files, emails, social media posts, and
sensor data.
Difficult to categorize and search without advanced processing tools like
natural language processing (NLP) or machine learning.
Considered qualitative data, often large in volume.
Stored in data lakes or non-relational (NoSQL) databases.
Requires sophisticated analysis techniques and more computational power.
Examples: Video recordings, email bodies, photos, web pages.
Page |5
Interface
The Excel interface consists of the workbook area made up of cells arranged
in rows and columns, where data is entered and manipulated.
Key interface components include the Formula Bar (for entering and editing
formulas), the Name Box (displays the active cell address), and the Status
Bar (shows information like sum, average of selected cells).
Workbooks can contain multiple worksheets, accessible through tabs at the
bottom.
Ribbon
The Ribbon is a toolbar located at the top, organizing features into tabs such
as Home, Insert, Page Layout, Formulas, Data, Review, and View.
Each tab contains groups with related commands for formatting, inserting
charts, creating formulas, sorting data, etc.
The Ribbon also includes the Quick Access Toolbar for frequently used
commands and a Search box to quickly find features or help.
Shortcuts
Excel supports many keyboard shortcuts that save time and enhance
productivity, such as:
o Ctrl + C (Copy), Ctrl + V (Paste), Ctrl + X (Cut)
o Ctrl + Z (Undo), Ctrl + Y (Redo)
o Ctrl + Arrow Keys (navigate to edges of data regions)
o Ctrl + Shift + L (toggle filters)
o Alt keys combined with letters to access Ribbon commands (e.g., Alt
+ H for Home tab)
Cell Referencing
Refers to addressing cells in formulas by their column letter and row number
(e.g., A1).
Types of references:
o Relative (A1): Changes when copied across cells.
o Absolute ($A$1): Fixed reference, does not change when copied.
o Mixed ($A1 or A$1): Partially fixed row or column.
Formulas
Equations entered in cells to perform calculations, starting with an equal
sign (=).
Can include arithmetic operations (e.g., =A1+B1), cell references, and
functions.
Used for dynamic calculations that update automatically when referenced
data changes.
Functions
Predefined formulas that perform specific calculations, such as:
o SUM(range): Adds numbers in a range.
o AVERAGE(range): Calculates average.
o IF(condition, value_if_true, value_if_false): Conditional logic.
o VLOOKUP(lookup_value, table, col_index, [range_lookup]): Lookup
values in tables.
Functions simplify complex calculations without manual computation.
Data Entry
Inputting data into cells using keyboard or copy-paste.
Supports numbers, text, dates, and more.
Autofill feature helps to quickly fill cells with repetitive or sequential data.
Page |8
Formatting
Enhances readability and presentation:
o Font style, size, and color adjustments.
o Cell background color and borders.
o Number formatting (currency, percentage, date).
o Conditional formatting to highlight specific values.
Data Validation
Controls and restricts data entry to meet criteria.
Examples include drop-down lists, limiting number ranges, and restricting
text length.
Helps maintain accuracy and consistency within datasets.
Creating Spreadsheets
Starting a New Spreadsheet
Open Excel and select a blank workbook or choose from templates for
specific purposes (budgets, invoices, schedules).
Establish the structure by planning column headers and data organization
before entry.
Set up sheets based on data categories (e.g., separate sheets for Sales,
Expenses, Summary).
Page |9
Naming Conventions
Use descriptive file names that reflect content and date (e.g.,
"Q4_Budget_2025.xlsx").
Name worksheets clearly (e.g., "January Sales" instead of "Sheet1").
Name ranges for frequently used data ranges to simplify formula references.
Organizing Data
Column and Row Structure
Place headers in the first row to identify data categories.
Use consistent formatting for data in each column (e.g., all dates in one
format).
Leave adequate space for data growth.
Multiple Worksheets
Create separate sheets for different data categories or time periods.
Use a summary sheet to consolidate key information from other sheets.
Link sheets using formulas to maintain data consistency.
Managing Spreadsheets
Sorting and Filtering
Sort data alphabetically, numerically, or by date to organize information.
Apply filters to view specific subsets of data without deleting information.
Use AutoFilter for quick filtering on multiple columns.
Data Protection
Freeze rows/columns to keep headers visible while scrolling.
Lock cells to prevent accidental changes; protect sheets with passwords.
Validate data entry to maintain consistency and accuracy.
Basic Excel formulas are essential tools for performing calculations and data
analysis efficiently. Here are some commonly used formulas and their uses:
SUM
Adds all numbers in a selected range.
Formula: =SUM(A1:A5)
Use to quickly total values in rows or columns, such as sales or expenses.
AVERAGE
Calculates the mean value in a range.
Formula: =AVERAGE(B1:B10)
Useful for finding average scores, prices, or other metrics.
IF
Performs conditional logic.
Formula: =IF(condition, value_if_true, value_if_false)
Example: =IF(A1>=40, "Pass", "Fail")
Great for decision-based operations like pass/fail, eligibility, or status flags.
COUNT
Counts numeric entries in a range.
Formula: =COUNT(A1:A10)
Helps determine how many numbers are in a dataset.
Mastering these formulas helps automate calculations, enhance data analysis, and
reduce errors in spreadsheets, making Excel a powerful tool for everyday and
professional use.
P a g e | 13
Unit-II
Sorting and Filtering Data.
Sorting and filtering are fundamental Excel operations used to organize and
analyze data efficiently.
Sorting Data
Sorting arranges data in a specified order based on one or more columns.
Can be sorted alphabetically (A-Z or Z-A), numerically (smallest to largest
or vice versa), or by date.
Multi-level sorting allows sorting by primary, secondary, and tertiary
criteria.
Helps in quickly organizing data for better readability, such as sorting a sales
list by region and then by sales amount.
Filtering Data
Filtering displays only the rows that meet certain criteria, hiding the rest.
Common filters include text filters (contains, begins with), number filters
(greater than, between), and date filters (before, after).
AutoFilter feature lets you select values from a dropdown or apply custom
filters.
Useful for focusing on specific data subsets, like viewing records from a
particular month or sales above a threshold.
Additional Tips
Use the Clear Filter option to show all data again.
Combine sorting and filtering for comprehensive data analysis.
Apply filters to multiple columns simultaneously.
Use advanced filters for complex criteria and extracting filtered data to
another location.
These tools enhance data management, allowing users to quickly find insights and
make informed decisions in Excel spreadsheets.
P a g e | 14
Missing Data
Missing or blank cells can cause errors or distort analysis.
Identify missing data using filters or conditional formatting to highlight
blanks.
Methods to handle missing data:
o Fill with appropriate values (mean, median, or specific defaults).
o Use Excel’s "Go To Special" feature (Ctrl + G > Special > Blanks) to
select and fill blanks.
o Leave blank if missing data is meaningful.
o Use formulas like IFERROR or ISBLANK to manage calculations
involving missing data.
Duplicate Data
Duplicate records can lead to bias and incorrect conclusions.
Detect duplicates using Conditional Formatting > Highlight Cells Rules >
Duplicate Values.
Remove duplicates via Data > Remove Duplicates tool, selecting columns to
check.
Alternatively, use formulas such as COUNTIF to identify duplicates for
manual review.
Consider if duplicates represent errors or legitimate repeated entries before
deletion.
Proper handling of missing and duplicate data improves dataset quality, ensuring
more reliable analysis and decision-making in Excel.
P a g e | 15
Data transformation
Data transformation in Excel involves modifying and preparing data for analysis
by using various built-in functions and tools. Here are key methods for common
transformations:
Text to Columns
Splits a single column of data into multiple columns based on a delimiter
(e.g., comma, space, tab).
Accessible via Data > Text to Columns.
Useful for separating full names into first and last names or dividing
addresses into components.
TRIM
Removes extra spaces from text, leaving only single spaces between words.
Syntax: =TRIM(A1)
Helps clean imported or copied data with irregular spacing.
UPPER / LOWER
Converts text to all uppercase or lowercase letters.
Syntax: =UPPER(A1) or =LOWER(A1)
Standardizes text format for consistency, especially useful in data matching
tasks.
These transformation tools streamline data cleaning and preparation, ensuring data
is structured correctly and consistently for analysis and reporting in Excel.
P a g e | 16
Benefits
Makes data interpretation faster and more intuitive.
Helps spot outliers, trends, or errors instantly without manual checking.
Enhances reporting by adding visual cues directly in the spreadsheet.
How to Apply
Select cells or range.
Go to Home > Conditional Formatting.
Choose a rule type or create a custom formula.
Set formatting style (font color, background color, icon).
Apply and adjust rules as needed.
Key Benefits
Improved readability: Formulas with named ranges like =SUM(Sales) are
more intuitive than =SUM(A1:A20).
Simplified formula creation: You can type or select named ranges instead
of remembering exact cell references.
Consistency: Ensures the same range is referenced throughout the
workbook, reducing errors.
Easy navigation: Quickly jump to named ranges within the workbook.
Dynamic updating: Named ranges can be adjusted to include new data
without changing all formulas referencing them.
Cleaning raw datasets in Excel involves several steps to improve data quality,
consistency, and readiness for analysis. Proper cleaning reduces errors and ensures
more reliable insights.
4. Correct Errors
Find and fix typos or inconsistent labels manually or using Find & Replace.
Validate data ranges, e.g., ensure all ages are within valid bounds.
Restrict data entry to valid options via Data > Data Validation dropdowns.
Prevent errors by limiting inputs to specific ranges, lists, or formats.
P a g e | 19
Final Tips
Maintain backups before large cleaning operations.
Document changes for transparency.
Use Excel functions and tools efficiently for automating recurring cleaning
tasks.
Consistent and thorough data cleaning ensures your dataset is accurate and ready
for meaningful analysis, improving decision-making quality.
Practical Uses
Correcting misspelled words or incorrect data entries.
Updating outdated values or standardized terminology.
Removing unwanted characters or spaces.
Changing formatting codes or references within formulas.
Bulk modification saves time compared to manual edits.
"Find and Replace" streamlines data editing and ensures consistency across large
datasets or complex spreadsheets.
3. Using Formulas
Use a custom formula for more control, e.g., highlight values beyond 1.5
times the interquartile range (IQR).
Example formula for outliers using standard deviation:
=OR(A1>AVERAGE($A$1:$A$100)+2*STDEV($A$1:$A$100),
A1<AVERAGE($A$1:$A$100)-2*STDEV($A$1:$A$100))
Set this as a new rule under Conditional Formatting > New Rule > Use a
formula.
P a g e | 21
Use color scales (Home > Conditional Formatting > Color Scales) to
visually distinguish unusually high or low values.
Conditional formatting for outliers quickly highlights data points that fall outside
typical ranges, making them easy to spot and investigate in large datasets.
Unit-III
Descriptive statistics using Excel:
Descriptive statistics in Excel provide summary measures to describe the central
tendency, dispersion, and spread of data. Key statistics include mean, median,
mode, variance, and standard deviation.
Mean (Average)
Calculates the arithmetic average.
Formula: =AVERAGE(range)
Represents the central value of data.
Median
Finds the middle value when data is ordered.
Formula: =MEDIAN(range)
Useful when data has outliers, giving a better central measure than mean.
Mode
Identifies the most frequently occurring value.
Formula: =[Link](range)
Helpful for categorical or discrete data to find the most common value.
P a g e | 22
Variance
Measures average squared deviation from the mean.
Formula for sample variance: =VAR.S(range)
Indicates data spread; larger variance means more dispersion.
Standard Deviation
Square root of variance, representing average deviation from the mean.
Formula for sample standard deviation: =STDEV.S(range)
Often used to assess data variability.
How to Use
Replace range with the actual cell range (e.g., A1:A20).
These formulas are easy to apply to columns or rows of numeric data.
Excel’s Data Analysis Toolpak also offers a descriptive statistics summary
with additional measures.
Common Uses
Quickly obtain statistics such as mean, median, variance, standard deviation.
Perform regression analysis to explore relationships between variables.
Generate histograms to visualize data distribution.
Conduct hypothesis testing like t-tests and ANOVA.
The Data Analysis Toolpak is valuable for users needing to perform detailed
statistical analyses without requiring external statistical software, streamlining
data-driven decision-making in Excel.
VLOOKUP
Stands for Vertical Lookup.
Searches for a value in the first column of a range (table) vertically.
Returns a corresponding value from a specified column in the same row.
Syntax: =VLOOKUP(lookup_value, table_array, col_index_num,
[range_lookup])
Limitation: Can only look to the right of the lookup column and requires the
lookup column to be the leftmost in the range.
HLOOKUP
Stands for Horizontal Lookup.
Searches for a value in the first row of a range horizontally.
P a g e | 24
INDEX-MATCH
Combination of two functions: MATCH finds the position of a lookup value,
and INDEX retrieves the value at a given position within a range.
Syntax: =INDEX(return_range, MATCH(lookup_value,
lookup_range, 0))
More flexible than VLOOKUP/HLOOKUP:
o Can look up values in any column or row (not limited to the leftmost
column).
o Handles insertions/deletions of columns without breaking.
o Efficient for large datasets and dynamic ranges.
Often preferred for robust and complex lookups.
Comparison Summary
Feature VLOOKUP HLOOKUP INDEX-MATCH
Lookup direction Vertical only Horizontal only Any direction
Lookup Must be first column Must be first row Any column or
column/row (V) (H) row
Flexibility Less flexible Less flexible Highly flexible
Performance Slower on large data Slower on large Faster with large
data data
Breakage risk High if columns High if rows Low, robust to
change change changes
Using these functions enhances Excel's power for data retrieval, analysis, and
reporting tasks.
For example:
What-if analysis
What-if analysis in Excel helps you explore different scenarios and understand
how changes in input values affect the outcomes of formulas or models. Two
common tools for what-if analysis are Goal Seek and Scenario Manager.
Goal Seek
Used to find the input value needed to achieve a desired result in a formula.
For example, determining the sales needed to reach a target profit.
How to use: Data > What-If Analysis > Goal Seek.
o Set the cell with the formula you want to adjust (Set Cell).
o Specify the desired result (To value).
o Choose the input cell Excel can change (By changing cell).
Excel iterates to find the input value that makes the formula output equal to
the target.
Scenario Manager
Allows you to create and save multiple input value sets (scenarios) to see
how they impact results.
Useful to compare best-case, worst-case, and expected scenarios side-by-
side.
How to use: Data > What-If Analysis > Scenario Manager.
o Add scenarios by defining different input values for selected cells.
o Switch between scenarios to observe changes in outputs.
o Generate summary reports comparing all scenarios.
Arrange your data chronologically with time periods (dates, months, years)
in one column and corresponding values (sales, temperature, etc.) in another.
3. Add a Trendline
Applications
Sales forecasting
Stock price movement analysis
Demand or temperature pattern identification
This foundational approach helps identify whether values are generally increasing,
decreasing, or stable, guiding further detailed forecasting or decision-making steps.
4. Interpret Output
Benefits
Quick, automated process for multiple statistics.
Useful for preliminary data exploration and reporting.
Saves time compared to manually calculating each measure.
Using the Toolpak for summary statistics enhances productivity and provides
detailed insights into the distribution and tendencies of the dataset efficiently.
Financial Functions
PMT(rate, nper, pv, [fv], [type]): Calculates loan payment for a loan based
on constant payments and interest rate.
FV(rate, nper, pmt, [pv], [type]): Computes future value of an investment
based on periodic payments.
NPV(rate, value1, …): Calculates net present value of cash flows given a
discount rate.
IRR(values, [guess]): Returns the internal rate of return for a series of cash
flows.
PV(rate, nper, pmt, [fv], [type]): Determines present value of an
investment.
These functions help in budgeting, investment appraisal, loan planning, and other
financial modeling tasks.
P a g e | 29
Logical Functions
IF(logical_test, value_if_true, value_if_false): Returns one value if
condition is true, another if false.
AND(logical1, logical2, …): Returns TRUE if all arguments are true.
OR(logical1, logical2, …): Returns TRUE if any argument is true.
NOT(logical): Reverses the logical value (TRUE to FALSE, vice versa).
IFERROR(value, value_if_error): Returns a specified value if a formula
results in an error.
Logical functions are commonly used to implement decision rules, error handling,
and complex conditional calculations.
Application
Combine financial and logical functions to build dynamic models.
Example: Use IF to decide loan approval based on financial ratios.
Automate complex financial decisions and scenarios efficiently.
These functions greatly enhance Excel’s capability for analysis, modeling, and
problem-solving across finance and business domains.
P a g e | 30
Unit-IV
Types of Charts:
Excel offers a variety of chart types to visually represent data effectively, each
suited for different purposes:
Column Chart
Displays vertical bars to compare values across categories.
Ideal for showing changes over time or comparing items.
Variations include clustered, stacked, and 3-D columns.
Bar Chart
Similar to column charts but uses horizontal bars.
Useful when category labels are long or to show comparison across
categories.
Line Chart
Shows trends over time by connecting data points with lines.
Effective for tracking changes, patterns, or continuous data.
Pie Chart
Depicts parts of a whole as slices of a circle.
Best for showing proportional data or percentage contributions.
Variations include exploded and doughnut charts.
Combo Chart
Combines two chart types (e.g., column and line) in one chart.
Useful for showing different data series with distinct scales or types in one
view.
P a g e | 31
Area Chart
Similar to line charts but fills the area below the line.
Highlights magnitude of change over time and emphasizes volume.
Scatter Chart
Displays points to show relationships or correlations between two variables.
Helpful in regression or trend analysis.
Radar Chart
Plots data points on axes starting from the same point, forming a web.
Used to compare multiple variables or performance metrics.
Each chart type helps communicate data insights visually, making complex
information easier to understand and present.
Excel charts can be customized with titles, labels, legends, colors, and data labels
for clarity and impact.
Creating Charts
Select the data range including labels.
Go to Insert tab and choose a chart type (Column, Line, Pie, Bar, etc.).
Excel inserts the chart on the worksheet based on the selected data.
Customizing Charts
Chart Title: Click the default title to edit. Add descriptive titles relevant to
data.
Axis Titles: Use Chart Tools > Layout or Chart Design > Add Chart
Element > Axis Titles to label X and Y axes clearly.
P a g e | 32
Legend: Adjust the position or remove the legend to optimize chart space.
Data Labels: Add labels on data points to show exact values.
Chart Style and Colors: Use pre-built styles or customize colors for better
visual appeal.
Gridlines: Show or hide gridlines to reduce clutter or improve readability.
Chart Size and Position: Drag to resize or reposition the chart on the sheet.
Format Axis: Customize number format, scale, tick marks, and font through
right-clicking the axis and choosing "Format Axis."
Add Trendlines: Implement trendlines for trend analysis via Chart
Elements or right-click a data series.
Advanced Customization
Use Combo Charts to combine chart types for different data series.
Adjust series overlap and gap width in column/bar charts.
Switch row/column data orientation to change chart viewpoints.
Modify chart data source to add or remove data dynamically.
Pivot Tables
Allow quick summarization of data by dragging and dropping fields into
Rows, Columns, Values, and Filters areas.
Automatically aggregate data through sums, averages, counts, and more.
Enable filtering and grouping to explore data from different perspectives.
Support drill-down to view underlying raw data behind summary results.
Useful for financial reporting, sales analysis, inventory management, and
any multi-dimensional data analysis.
P a g e | 33
Pivot Charts
Visual representations of Pivot Table data.
Automatically update when Pivot Table data changes.
Created by selecting the Pivot Table and choosing Insert > PivotChart.
Support interactive filtering and slicing like Pivot Tables.
Benefits
Fast, flexible data summarization with minimal formulas.
Easy to adjust and rearrange data views without altering source data.
Enhances data exploration and decision-making with interactive visual
analysis.
Pivot Tables and Pivot Charts are essential for generating insightful reports and
uncovering trends in complex datasets efficiently.
P a g e | 34
Introduction to Dashboards.
An Excel dashboard is a visual interface that consolidates key metrics, data
summaries, and interactive charts into a single, easy-to-read page. It enables users
to monitor performance, trends, and insights at a glance without digging through
raw data.
Dashboards transform complex data into clear stories, making them essential for
reporting, business intelligence, and performance management in Excel.
P a g e | 35
Printing Reports
Use File > Print to preview how your worksheet or report will appear
on paper.
Set the print area to focus on specific sections via Page Layout > Print
Area > Set Print Area.
Adjust page layout options: orientation (portrait/landscape), scaling,
margins, and headers/footers.
Use Page Break Preview to control where pages break for clean
printouts.
Print gridlines, row and column headings, or repeat header rows on
each page for better readability.
Choose to print entire workbooks or selected sheets.
Sharing Reports
Save and share Excel files via email or cloud services like OneDrive
and SharePoint for easy collaboration.
Export reports to PDF format (File > Export > Create PDF/XPS) for
fixed-layout sharing.
Use Excel’s “Protect Workbook” or “Protect Sheet” features to restrict
editing or viewing.
Share links with permission controls to allow view-only or editing
access.
Collaborate in real-time with multiple users using Excel Online or
Microsoft 365.
These printing and sharing options maximize report usability, ensuring your
insights reach the right audience clearly and securely.
P a g e | 36
Benefits
Quickly summarize complex data without formulas.
Easily rearrange to view different perspectives.
Drill down to underlying data for detailed inspection.
Pivot Tables are ideal for sales reports, financial summaries, and any scenario
needing fast, interactive data analysis.
P a g e | 37
Slicers
Visual filter controls that let users quickly filter data in PivotTables,
PivotCharts, or tables.
Insert via Insert > Slicer, then connect to relevant data sources.
Multiple slicers can be used to filter by categories, dates, or other
dimensions.
Enhance interactivity and ease of data exploration without complex filtering.
Charts
Incorporate various chart types (column, line, pie, combo) to visualize key
metrics and trends.
Use dynamic charts linked to PivotTables or tables for real-time updates.
Customize colors, labels, and titles for clear communication.
Arrange charts logically on the dashboard to tell a coherent data story.
Summaries
Use PivotTables or formulas like SUM, AVERAGE, and COUNT to create
concise data summaries.
Display key performance indicators (KPIs) such as totals, percentages, or
averages in cells formatted for prominence.
Use conditional formatting to highlight critical values or thresholds.
Best Practices
Organize dashboard layout thoughtfully for easy navigation.
Keep it uncluttered; focus on the most important data points.
Ensure slicers and charts are synchronized and responsive.
Use consistent color schemes and fonts for professional appearance.