Chapter 5: MS Excel
What to remember
- Excel is a spreadsheet program. A file is a workbook (.xlsx) made of worksheets; each sheet has rows (numbers) and columns (letters), and a cell address looks like B3. Every formula starts with the equals sign (=).
- Key functions: SUM, AVERAGE, MAX, MIN, COUNT, IF, VLOOKUP, ROUND. Cell references can be relative (A1), absolute ($A$1) or mixed (A$1, $A1).
- Charts show data as pictures: column, bar, line, pie, scatter and others. The F4 key toggles reference types.
Spreadsheet basics
A spreadsheet is a grid used to store, calculate and analyse data. MS Excel is the spreadsheet program of the Microsoft Office suite. Its file is called a workbook and has the extension .xlsx (older versions: .xls). A new workbook opens with one or more worksheets, shown as tabs at the bottom (Sheet1, Sheet2). A workbook can hold many sheets, and sheets can be added, renamed, moved, copied or deleted.
Layout of a worksheet:
- Columns are named with letters A, B, C and so on. Rows are numbered 1, 2, 3 and so on.
- A cell is the box where a row and a column meet. Its cell address is the column letter followed by the row number, such as C5.
- The active cell is the cell that is selected now.
- A range is a group of cells, written with a colon, such as A1:A10 or B2:D5.
- The Name Box (left of the formula bar) shows the address of the active cell.
- The Formula Bar shows the content or formula of the active cell.
- The fill handle is the small square at the corner of the active cell; dragging it copies data or continues a series.
Data types: text (labels, left-aligned by default), numbers (right-aligned by default), dates and times (stored as numbers), and formulas. A cell that is too narrow for a number shows hash marks (#####); widening the column fixes this. Excel can hold more than a million rows and sixteen thousand columns in modern versions, but exact limits are not needed for exams.
Formulas and operators
A formula is an instruction that calculates a value. It must start with = (or + or -). Example: =A1+B1. Excel formulas update by themselves when cell values change.
Arithmetic operators: + (add), - (subtract), * (multiply), / (divide), ^ (power), % (percent). Order of operations follows BODMAS: brackets first, then powers, then multiplication and division, then addition and subtraction. Example: =2+3*4 gives 14, and =(2+3)*4 gives 20. The comparison operators are =, >, <, >=, <= and <>. The & operator joins text. The ampersand in ="Ram"&" Kumar" gives Ram Kumar.
Functions
A function is a built-in formula. Its form is =NAME(arguments). The Insert Function button (fx) helps to choose one. The AutoSum button adds a column or row quickly (Alt+=).
| Function | Use | Example |
|---|---|---|
| SUM | adds numbers | =SUM(A1:A5) |
| AVERAGE | mean of numbers | =AVERAGE(B1:B4) |
| MAX | largest value | =MAX(C1:C9) |
| MIN | smallest value | =MIN(C1:C9) |
| COUNT | counts cells with numbers | =COUNT(A1:A10) |
| COUNTA | counts non-empty cells | =COUNTA(A1:A10) |
| COUNTBLANK | counts empty cells | =COUNTBLANK(A1:A10) |
| IF | tests a condition | =IF(A1>=35,"Pass","Fail") |
| ROUND | rounds a number | =ROUND(12.567,1) gives 12.6 |
| PRODUCT | multiplies numbers | =PRODUCT(A1:A3) |
| SUMIF | adds cells that meet a condition | =SUMIF(A1:A9,">10") |
| COUNTIF | counts cells that meet a condition | =COUNTIF(A1:A9,"Yes") |
| VLOOKUP | looks up a value in the first column of a table and returns a value from the same row | =VLOOKUP(E2,A2:C9,3,FALSE) |
| HLOOKUP | like VLOOKUP but across a row | =HLOOKUP(...) |
| LEN | number of characters in text | =LEN("Andhra") gives 6 |
| UPPER, LOWER | change case | =UPPER("ap") gives AP |
| TODAY | today's date | =TODAY() |
| NOW | current date and time | =NOW() |
| CONCATENATE | joins text | =CONCATENATE(A1,B1) |
Notes: The last argument of VLOOKUP, FALSE, asks for an exact match. In the IF function, the first argument is the test, the second is the result if true, and the third is the result if false. Nested IF puts one IF inside another. A function can have text in double quotes. AND, OR and NOT give TRUE or FALSE and are often used inside IF. Range-based statistical functions skip empty cells. MEDIAN gives the middle value; MODE gives the most repeated value.
Cell referencing
A cell reference tells a formula which cell to use.
| Type | Looks like | What happens when copied |
|---|---|---|
| Relative | A1 | changes with the new position |
| Absolute | $A$1 | never changes |
| Mixed | $A1 or A$1 | only the part without $ changes |
If the formula =A1*2 in cell B1 is copied to B2, it becomes =A2*2 because the reference is relative. If the formula is =$A$1*2, it stays =$A$1*2 wherever it is copied. Press F4 while editing a reference to cycle through A1, $A$1, A$1 and $A1. A reference to another sheet is written with an exclamation mark, such as Sheet2!A1. Named ranges give a name to a range so that formulas are easy to read.
Charts and data tools
A chart turns numbers into a picture. Insert a chart from the Insert tab after selecting the data. The data items are the data series; the horizontal axis is the category (X) axis and the vertical axis is the value (Y) axis. A chart also has a title, legend (key to colours) and data labels.
| Chart type | Best used for |
|---|---|
| Column | comparing values across categories (vertical bars) |
| Bar | comparing values with horizontal bars |
| Line | showing change over time |
| Pie | showing parts of a whole (one series) |
| Scatter (XY) | showing the relation between two numeric variables |
| Area | showing the total change over time |
| Doughnut | parts of a whole, with a hole in the middle |
A sparkline is a tiny chart inside one cell. Conditional formatting changes the look of cells by a rule, such as red for marks below 35. Sort arranges data in ascending or descending order. Filter shows only the rows that match a condition. PivotTable summarises large data by grouping and totals. Data Validation limits what can be typed in a cell (for example a drop-down list). Freeze Panes keeps rows or columns visible while scrolling. Merge and Center joins cells into one. Wrap Text shows long text in many lines in a cell. Goal Seek finds the input needed to get a result. Macros record and replay a series of steps.
Printing and protecting: set the print area, use Page Layout and Print Preview, and use Protect Sheet or a password to prevent changes.
Shortcut keys
| Keys | Action |
|---|---|
| Ctrl+C, Ctrl+X, Ctrl+V | copy, cut, paste |
| Ctrl+Z, Ctrl+Y | undo, redo |
| Ctrl+S | save |
| Ctrl+B, Ctrl+I, Ctrl+U | bold, italic, underline |
| Ctrl+A | select all |
| Ctrl+Home | go to cell A1 |
| Ctrl+End | go to the last used cell |
| Ctrl+Arrow keys | jump to the edge of the data |
| Ctrl+Space | select the whole column |
| Shift+Space | select the whole row |
| Ctrl+Shift+; | enter the current time |
| Ctrl+; | enter the current date |
| F2 | edit the active cell |
| F4 | repeat last action or change reference type |
| F11 | create a chart on a new sheet |
| Alt+= | AutoSum |
| Shift+F11 | insert a new worksheet |
| Ctrl+1 | open Format Cells |
| Ctrl+Shift+L | turn filter on or off |
| Alt+Enter | new line inside a cell |
Exam traps
- Excel formulas start with =; text typed without = is not calculated.
- A workbook is the whole file; a worksheet is a single sheet.
- COUNT counts only numbers; COUNTA counts all non-empty cells.
- Relative references change on copying; absolute references ($A$1) do not.
- F4 toggles reference type while editing a formula; F2 edits the cell.
- Pie charts show one data series; line charts show trends over time.
- Text is left-aligned and numbers are right-aligned by default.
- ##### in a cell means the column is too narrow, not that the formula is wrong.
- In VLOOKUP, the lookup value must be in the first column of the table.
- Ctrl+Home goes to A1; Ctrl+End goes to the last used cell.
One-liners
- 1. The Excel file is a workbook with extension .xlsx.
- 2. A cell address is column letter plus row number, such as D7.
- 3. A range of cells is written as A1:B5.
- 4. Every formula begins with the = sign.
- 5. =SUM(A1:A3) adds the cells A1, A2 and A3.
- 6. The fill handle copies data or fills a series.
- 7. F4 changes a cell reference between relative and absolute.
- 8. A pie chart shows parts of a whole.
- 9. =TODAY() returns the current date.
- 10. A PivotTable summarises large data quickly.
- 11. Freeze Panes keeps headings visible when scrolling.
- 12. The Name Box shows the address of the selected cell.
Practice questions
MS Excel is an example of
- spreadsheet software
- word processor
- presentation software
- operating system
Answer
A. spreadsheet software
Excel stores and calculates data in rows and columns.
A complete Excel file is called a
- worksheet
- workbook
- range
- template only
Answer
B. workbook
A workbook holds one or more worksheets.
The default extension of an Excel 2016 file is
- docx
- pptx
- txt
- xlsx
Answer
D. xlsx
Excel 2007 and later save as .xlsx.
Every Excel formula must begin with
- $
- #
- =
- @
Answer
C. =
The equals sign tells Excel that a formula follows.
The intersection of a row and a column is called a
- cell
- sheet
- range
- field
Answer
A. cell
A cell is the basic unit of a worksheet.
Which of the following is a valid cell address?
- C-5
- CC5C
- C5
- 5C
Answer
C. C5
A cell address is column letter then row number.
A range of cells from A1 to A10 is written as
- A1-A10
- A1:A10
- A1;A10
- A1..A10
Answer
B. A1:A10
A colon separates the first and last cells of a range.
Which function adds the numbers in a range?
- MAX
- ROUND
- COUNT
- SUM
Answer
D. SUM
SUM adds all numbers in the range.
Which function gives the largest value in a range?
- MAX
- MIN
- AVERAGE
- SUM
Answer
A. MAX
MAX returns the biggest number.
What does =AVERAGE(A1:A4) calculate for the values 10, 20, 30 and 40?
- 40
- 100
- 25
- 20
Answer
C. 25
Sum 100 divided by 4 gives 25.
The shortcut key to toggle between relative and absolute references is
- F5
- F2
- F7
- F4
Answer
D. F4
F4 cycles A1, $A$1, A$1 and $A1.
Which reference does NOT change when the formula is copied?
- A$1
- $A$1
- A1
- $A1
Answer
B. $A$1
$A$1 is a fully absolute reference.
If =A1*2 in cell B1 is copied to B3, the formula becomes
- =A2*2
- =A3*2
- =$A$3*2
- =A1*2
Answer
B. =A3*2
A relative reference moves with the new row.
What is the result of =2+3*4?
- 9
- 24
- 14
- 20
Answer
C. 14
Multiplication is done first: 3 x 4 = 12, then 2 + 12 = 14.
Which function counts only the cells that contain numbers?
- COUNTA
- COUNTBLANK
- LEN
- COUNT
Answer
D. COUNT
COUNTA counts all non-empty cells.
Which function counts all non-empty cells?
- COUNTA
- MIN
- COUNT
- SUMIF
Answer
A. COUNTA
COUNTA counts text and numbers.
The result of =IF(40>=35,"Pass","Fail") is
- Fail
- Pass
- 40
- TRUE
Answer
B. Pass
The test is true so the second argument is returned.
In =VLOOKUP(E2,A2:C9,3,FALSE), the number 3 refers to
- the column from which the result is returned
- the number of rows to skip
- the row number
- the number of matches
Answer
A. the column from which the result is returned
The third column of the table gives the result.
The last argument FALSE in VLOOKUP asks for
- an approximate match
- a sorted result
- a text result only
- an exact match
Answer
D. an exact match
FALSE means exact match.
The result of =ROUND(12.567,1) is
- 12.57
- 12.5
- 12.6
- 13
Answer
C. 12.6
One decimal place: 12.567 becomes 12.6.
What is the result of =LEN("Andhra")?
- 5
- 6
- 7
- 3
Answer
B. 6
The word Andhra has six letters.
Which function returns the current date?
- COUNT
- MEDIAN
- TODAY
- DATEDIF only
Answer
C. TODAY
=TODAY() returns the system date.
Which chart is best for showing parts of a whole?
- Scatter chart
- Line chart
- Column chart for trends
- Pie chart
Answer
D. Pie chart
A pie shows each part as a share of the whole.
Which chart is best for showing change over time?
- Line chart
- Pie chart
- Doughnut chart
- Bubble chart only
Answer
A. Line chart
A line connects values over time.
The small square at the corner of the active cell used to copy data is the
- sparkline
- name box
- anchor
- fill handle
Answer
D. fill handle
Dragging the fill handle copies or extends a series.
The box on the left of the formula bar that shows the cell address is the
- Cell Box
- Title Box
- Name Box
- Fill Box
Answer
C. Name Box
The Name Box displays the active cell address.
When a number is too wide for the cell, Excel shows
- #NAME?
- #####
- #DIV/0!
- #REF!
Answer
B. #####
Widening the column shows the number.
The error #DIV/0! appears when
- a number is divided by zero
- a name is misspelt
- the column is narrow
- a cell is deleted
Answer
A. a number is divided by zero
Division by zero gives #DIV/0!.
Which shortcut selects the entire column in Excel?
- Ctrl+Space
- Alt+Space
- Ctrl+A
- Shift+Space
Answer
A. Ctrl+Space
Shift+Space selects the entire row.
Which shortcut moves the cursor to cell A1?
- Ctrl+PgUp
- Ctrl+Home
- Home
- Ctrl+End
Answer
B. Ctrl+Home
Ctrl+Home goes to A1.
Which shortcut puts the AutoSum formula in a cell?
- Alt+S
- Ctrl+=
- Shift+=
- Alt+=
Answer
D. Alt+=
Alt+= inserts SUM for adjacent cells.
Which feature keeps heading rows visible while scrolling?
- Merge and Center
- Wrap Text
- Freeze Panes
- Sort
Answer
C. Freeze Panes
Freeze Panes locks selected rows or columns.
Which feature shows only rows that match a condition?
- Filter
- Format Painter
- Sort
- Freeze Panes
Answer
A. Filter
Filter hides non-matching rows.
Which tool summarises large data by grouping and totals?
- Sparkline
- Goal Seek
- PivotTable
- Data Bar only
Answer
C. PivotTable
A PivotTable summarises data in a new layout.
A tiny chart that fits inside one cell is a
- PivotChart
- sparkline
- data label
- legend
Answer
B. sparkline
Sparklines show trends inside a cell.
Which feature changes the look of a cell by a rule, such as red for low marks?
- Data validation
- Goal Seek
- Protect Sheet
- Conditional formatting
Answer
D. Conditional formatting
The rule decides the formatting.
In the IF function =IF(test, A, B), B is returned when
- the test is true
- the test is false
- there is an error
- the cell is blank only
Answer
B. the test is false
The third argument is for a false result.
Statements: 1. A workbook may contain many worksheets. 2. A worksheet is the whole Excel file. Which is/are correct?
- 1 only
- 2 only
- Both 1 and 2
- Neither 1 nor 2
Answer
A. 1 only
The workbook is the whole file.
Statements: 1. COUNT counts cells with numbers. 2. COUNTA counts non-empty cells. Which is/are correct?
- 1 only
- 2 only
- Both 1 and 2
- Neither 1 nor 2
Answer
C. Both 1 and 2
Both are right.
Statements: 1. A relative reference changes on copying. 2. An absolute reference uses the $ sign. Which is/are correct?
- 1 only
- 2 only
- Both 1 and 2
- Neither 1 nor 2
Answer
C. Both 1 and 2
Both describe the reference types correctly.
Statements: 1. A pie chart can show many data series at once. 2. A line chart shows trends. Which is/are correct?
- 1 only
- 2 only
- Both 1 and 2
- Neither 1 nor 2
Answer
B. 2 only
A pie chart shows one series.
Statements: 1. Excel text is left-aligned by default. 2. Formulas can start without the = sign. Which is/are correct?
- 1 only
- 2 only
- Both 1 and 2
- Neither 1 nor 2
Answer
A. 1 only
A formula needs =, + or - at the start.
Statements: 1. F2 edits the active cell. 2. F4 edits the active cell. Which is/are correct?
- 1 only
- 2 only
- Both 1 and 2
- Neither 1 nor 2
Answer
A. 1 only
F4 repeats the last action or changes reference type.
Match the pair: which pair is correct?
- Ctrl+Home - last used cell
- Shift+Space - select column
- Ctrl+Space - select row
- Ctrl+End - last used cell
Answer
D. Ctrl+End - last used cell
Ctrl+Home goes to A1; Shift+Space selects a row; Ctrl+Space selects a column.