Microsoft Excel Notes
Microsoft Excel Notes
Definitions
Delete worksheets
o By right-clicking on the tab of the worksheet, you wish to delete then selecting
“delete”
Rearrange them:
o By clicking on the worksheet tab and dragging it to the location you desire
Renaming:
o By double-clicking on the worksheet title.
2. Cell
Cells are the basic rectangular building blocks of a spreadsheet. The intersection
between row and columns is known as a cell. The active cell is shown in the name
box
3. Rows
Rows travel horizontally and are assigned letters.
4. Column
Columns travel vertically and are assigned letters
Maximum number of rows and columns
Rows 1048576
Columns 16384
You can also move to the first and last row and columns by pressing CTRL +
ARROW KEYS.
60
Creating and saving Spreadsheets
Starting Excel
Click the start button- All programs- click Microsoft office Excel 2007
Saving a Spreadsheet
i) Click the Microsoft Office Button and click save or save as
ii) Press CTRL+S on the keyboard or click the file icon on the quick access
toolbar.
Close a Spreadsheet
i) Click the office button
ii) Click close or press alt+f4
Entering data
There are different ways to enter data in excel: in an active cell or formula bar.
Edit a cell
After you enter data into a cell, you can edit the data by pressing F12 while you are in the cell
you wish to edit or double click in the cell
61
Alignments:
- In excel 2007, you can change the horizontal and vertical alignment of cell data.
By default, the text is left-aligned and values or dates are right-aligned.
- Follow these steps to change the horizontal or vertical alignment of cell data:
a. Select the cells you want to align with.
Align text left: horizontally aligns the data along the left edge of the cell.
Center: centers the data horizontally in the middle of the cell. If you modify
the width of the columns; the data remains centered on the new column
width.
Align text right: horizontally aligns the data along the right edge of the
cell.
o Top align: aligns the data vertically along the top edge of the cell
o Middle align: centers the data vertically in the cell
o Bottom align: this is the default option and aligns data along the bottom edge of
the cell.
Select cells that you will change the text orientation in.
Click the orientation button under the home tab
In the dropdown list of the orientation button, select one of the orientation styles.
You can get more orientation styles in the format cells dialog box by clicking the format cells
alignment item on the list. Go to the orientation section under the alignment tab in the format
cells dialog box. Enter the orientation degree to change the orientation of the text in cells.
62
Wrap text: In excel, if you have a long entry in a cell the text automatically spans into multiple
columns.
Select the cells you want to wrap
Click Home on the ribbon
Select wrap text.
Excel will wrap the text in the cell and also increase the height of the cell row.
Merge and center: It allows you to center titles evenly above your data by merging several
cells into one and then centering the title in this one cell.
Click the Home tab
Go to alignment group
Then you will view the merge and center button there.
Saving a Spreadsheet
You can Save a Spreadsheet in two ways:
Save: This option is used when you save a spreadsheet for the first time.
Steps
Save As: This option is used when you want to save an existing saved spreadsheet with a
different name and different location
Steps
63
Using editing functions
Number Group:
We can use this option to change actual formatting for our data like a fraction, date format,
percentage, and currency.
(a) Sum
1. Create a table
Anit 85 96 15 19 74
1
Riya 96 36 23 58 85
2
64
(b) Average
1. Create a table.
1 Anit 85 96 15 19 74 289
2 Riya 96 36 23 58 85 298
65
(c) Min: - It gives minimum value from the selected cells.
Roll no Name English Hindi Maths Sst Science Total Average Minimum
(d) Max: -It gives maximum value from the selected cells. Same steps as above
Roll no Name English Hindi Maths Sst Science Total Average Minimum Maximum
66
Learning styles tab
Styles Group
Conditional Formatting:
Using conditional formatting, you can highlight your data using a combination of color
scales, icon sets, and data bars.
Steps
1. Select the numbers.
67
Format as a table: Apply quickly formatting to the table.
Steps
68
Sorting and filtering
Sorting and filtering allow you to manipulate data in a worksheet based.
Basic Sorts
To execute a basic ascending or descending sort based on one column:
Filtering
Filtering allows you to display only data that meets certain criteria. To filter:
Click the column or columns that contain the data you wish to filter.
On the Home tab, click on Sort &Filter.
Click the Filter button.
Click the arrow at the bottom of the first cell.
Click the Text Filter.
Click the Words you wish to filter.
To clear the filter click the Sort & Filter button.
Click clear
69
Using Formulas and Functions
Formulas Text
Function
70
Date and Time
Financial Formula
Amount 45000
Rate 3%
Month 15
71
Logical Functions
72
Using Charts and Graphics
Pivot Table
1. Select any cell in the worksheet that contains the data you want to create the report on.
2. Click the Insert tab click on the Pivot Table button.
3. The Pivot Table dialog box opens and the table or data range we already selected will
show in that field.
4. You can have it placed in a new worksheet or in an existing one where you will need to
select the location.
5. The Pivot Table Field List opens up and the Pivot Table tools become available.
6. Select the fields you want to include in the table by dragging them to the different boxes
below.
Pivot Chart
73
Learning Defined names and Data Tools
Name Manager
Data Tools
Text to Column: -Using this command, you can separate the combined data into separate
columns.
74
Remove Duplicates: -
1. Select the range of cells, or make sure that the active cell is in a table.
2. On the Data tab, in the Data Tools group, click Remove Duplicates.
3. Do one or more of the following:
Under Columns, select one or more columns.
To quickly select the columns, click Select All.
To quickly clear all columns, click Unselect All.
4. Click OK.
Data Validation
Data Validation is an Excel feature that you can use to define restrictions on what data
can or should be entered in a cell.
Steps: -
Once you have set the previous criteria, you have to set the Minimum and Maximum
amounts.
Click the ok button. Input Message
75
Error Alert
The Error Alert can be set to stop, warn, or inform the user if they inserted an invalid
value.
Consolidate: -
It consolidates data from multiple worksheets in the same workbook.
Steps: -
What-if analysis: -
To access these, select the Data tab, and locate the What-If Analysis command, if you
click this command, a menu with three options appears.
Scenario Manager is used when you want to change multiple values.
Steps: -
76
Goal seek is useful if you know the needed result, but need to find the input value that will
give you the desired result.
Steps: -
Select the cell containing the formula that will return the result you’re seeking.
On the Data tab, choose What-If-Analysis Goal Seek in the Data Tools Group.
Select the To Value Text box and enter the goal.
Select the By Changing Cell text box and select the cell that you want to change.
Click OK.
Data Table
A Data Table is a way to see different results by Altering an Input Cell in your formula.
E.g. if you want to print tables from 1 to 10 then follow these steps: -
77
Page Setup and Printing
Click Print.
78
Formulas of MS Excel
A B C D
1 1 2 3 6
FORMULA RESULT
=SUM(A1: C1) 6
=AVERAGE(A1: C1) 2
=COUNT(A1: C1) 3
=MAX(A1:C1) 3
=MIN(A1:C1) 1
=PRODUCT(A1,B1) 2
=A1*B1 2
=A1/B1 0.5
=B1-A1 1
=A1+B1+C1 6
=D1*100/10 60
=D1*2/100 0.12
IF CONDITION
A B C
1PERCENTAGE RESULT GRADE
274.3 PASS B
383.6 PASS B
494.3 PASS A
569.7 FAIL B
654.3 FAIL C
Formula:
1) For Result Column =IF(A2>70,” PASS”,” FAIL”)
2) For Grade Column =IF(A2>90,”A”,IF(A2>60,”B”,”C”))
79
SUMIF AND COUNTIF
A B C
1 PERCENTAGE RESULT GRADE
2 74.3 PASS B
3 83.6 PASS B
4 94.3 PASS A
5 69.7 FAIL B
6 54.3 FAIL C
FORMULA RESULT
SUMIF
=SUMIF(C2:C6,”B”,A2:A6) 376.2
FORMULA
COUNTIF
=COUNTIF(B2:B6,”PASS”) 3
FORMULA
PMT FORMULA
Amount 45000
Rate 3%
Month 15
= PMT (*rate/12,*months, *-principal amount)
80
MORE SHORT FORMULAS
Demo of Excel Data which are used to show the results of the formulas explained.
A B C D E F G H
1 HARTRON 8-15-2020 Hartron car 35 20 HAR TRON
Formulas Results
=left(A1,2) HA
=mid(A1,2,3) Art
=right(A1,3) RON
=sqrt(36) 6
=Abs(1.89) 1.89
=Abs(-1.89) 1.89
=Trunc(1.895) 1
=Trunc(-1.895) -1
=month(B1) 8
=Year(B1) 2020
=Day(B1) 15
=Upper(C1) HARTRON
=Lower(A1) hartron
=Proper(A1) Hartorn
=Trim(D1) Car
=round(12.2548,2) 12.25
81
=round(12.2568,2) 12.26
=roundup(12.254,-1) 20
=rounddown(12.254,-1) 10
=product(2,3) 6
=power(2,2) 4
=Counta(D1:F1) 3
All logics correct: TRUE
=And(logic1, logic2)
At least one logic is false: FALSE
All logics correct: TRUE
=Or(logic1, logic2) At least one logic is correct: TRUE
All logics incorrect: FALSE
Correct logic: FALSE
=Not(logic)
Incorrect logic: TRUE
Calculate working days between given
=Networkdays(start date, end date)
dates
=Concatenate(G1,H1) HARTRON
=LEN(A1) 7
82