02 - Fundamentals of Excel
02 - Fundamentals of Excel
Roadmap
The Ribbon:
• Horizontal strip with tabs and groups of commands.
• Tabs like Home, Insert, Page Layout, etc.
Various Views:
• Normal View: Default for data entry.
• Page Layout View: Shows print layout.
• Page Break Preview: Reveals print page breaks.
Excel Interface
Tabs
Excel Overview
Let's make a function!
• First, double click the cell A1, the one that is marked with
the green rectangle in the picture.
• Second, type =1+1.
• Third, hit the enter button:
Excel Overview
The Sheet
• The Sheet is a set of rows and columns. It forms the same pattern as we
have in math exercise books, the rectangle boxes formed by the pattern
are called cells.
• Values can be typed to cells.
Excel Syntax
Syntax:
• A formula in Excel is used to do mathematical calculations. Formulas
always start with the equal sign = typed in the cell, followed by your
calculation.
Creating formulas, step by step
• Select a cell
• Type the equal sign (=)
• Select a cell or type value
• Enter an arithmetic operator
• Select another cell or type value
• Press enter
• For example: In cell =1+1 is the
formula to calculate 1+1=2
Excel Syntax
Using Formulas with Cells:
• You can type values to cells
and use them in your formulas.
• Select C2
• Type = 1 3
• Select A2
• Type +
• Select B2
• Hit enter
• Double click the
2 3
fill function
Basic Cell Operations
Step 2:
• Select E2
• Fill E2:E4
Excel Formulas
Step 3:
• Select cell E5, and
type =
• Left click E2
• Type (+)
• Left click E3
• Type (+)
• Left click E4
• Hit enter
Basic Excel Functions
Dataset: customer_shopping_data
Basic Excel Functions
SUM Function:
LEN Function:
• Purpose: Counts the number of characters in a text string.
• Usage: =LEN(text)
• Example: =LEN("Hello, world!") returns 13 because the text
contains 13 characters.
Excel Formatting
Why format and style your spreadsheet?
• Make it easier to read and understand
• Make it more delicate
Format Painter
Excel Formatting
How to use Print Format:
DAYS Function:
2023-10-10 2023-10-20
2023-11-05 2023-11-10
• In cell C2, enter the formula =DAYS(B2, A2). This calculates the number of days
between the end date (B2) and the start date (A2). In this example, it's 10 days.
• Copy the formula down to apply it to the entire dataset. In cell C3, it will
calculate the number of days between the dates in A3 and B3, which is 5 days.
Dates and Times in Excel
Lookup Functions
VLOOKUP Function:
• Usage: =VLOOKUP(lookup_value, table_array, col_index_num,
[range_lookup])
• lookup_value is the value you want to find.
• table_array is the range containing the data you want to search.
• col_index_num is the column number from which to return data.
• [range_lookup] is optional and can be set to FALSE for an exact
match or TRUE for an approximate match (usually set to FALSE for
most cases).
Lookup Functions
VLOOKUP Function:
Lookup Functions
HLOOKUP Function:
IF Function:
IFERROR Function:
• In cell C2, enter the formula: =IF(B2 >= 50, "Pass", "Fail"). This checks if
the score in cell B2 is greater than or equal to 50 and returns "Pass" or
"Fail" accordingly.
• In cell D2, enter the formula: =IFERROR(B2, "N/A"). This checks if there
is an error (e.g., a missing score in cell B2) and returns "N/A" if an error
occurs.
• Copy this formula down the column to handle errors for all students.
Data Cleaning Techniques
Text Functions and Their Role in Cleaning Data:
• Use the TRIM Function: In a new column, use the formula =TRIM(A2) to remove
extra spaces from the product names.
• Use the PROPER Function: In another new column, use the formula =PROPER(B2)
to capitalize the first letter of each word in the cleaned product names.
• Use CONCATENATE Function: If you want to standardize the format further, you
can concatenate the cleaned text with additional information. For example, if
you want to add " - Electronics" to each product name, use =B2 & " -
Electronics".
Practical Exercise: Student Result
Dataset: Student Result
Grade – A++ < 90, A+ < 80, A < 70, B+ < 60, B < 35, else F
1. Click on cell K2
1
2. Click on Conditional Formatting
3. Click on Highlight Cells Rule
4. Click on Equal to
5. Type "Pass"
6. Select "Yellow Fill with Dark Yellow
Text"
7. Repeat the same for "Fail" & apply
"Red" Color.
8. "Double Click" to cell apply to all
cells
2
Conditional Formatting
Conditional Formatting
Let's Apply color scale as per value to the
Average Field.
1. Click on cell I2
2. Click on Conditional Formatting
3. Click on Color Scale --> More Rules..
4. Select Minimum Color to Red &
Maximum Color to Green
5. Click on "OK" 1
6. "Double Click" to cell apply to all cells
2
Conditional Formatting
Sorting and Filtering in Excel
Sorting and filtering are essential data manipulation techniques in Excel.
Sorting arranges data in a specific order, while filtering displays only data that
meets certain criteria.
Region Sales
Suppose you have a sales dataset with regions and
North 500
sales figures:
South 750
1. Select Data: Highlight the data range you want to convert into a
table.
2. Create a Table: In the "Insert" tab, click on "Table."
3. Define the Table: Ensure the "Create Table" dialog recognizes your
data range. Check the box if your table has headers.
4. Confirm: Click "OK" to create the table.
Thank You!!!