SarkariJobTrackAm I Eligible?
Sign in

MS Excel: Read a Worksheet, Work Out Any Formula and Lock Cell References

Learn how a workbook, worksheet, cell and range fit together, how Excel works out a formula's answer, what SUM, AVERAGE, COUNT, COUNTA, MAX, MIN and IF return, how relative, absolute and mixed references change when a formula is copied, and how AutoFill, sorting, filtering, Freeze Panes, charts, file formats and shortcuts work, through worked exam-style questions.

By the end of this lesson you will be able to name every part of an Excel worksheet, work out a formula's answer the way Excel does, pick the function a question describes, predict what a cell reference becomes when its formula is copied, and choose a chart for a set of data. The core idea is short: a worksheet is a grid of cells, each with an address such as B3, and a formula is an entry that starts with = and calculates from those addresses. Copy a formula and its addresses shift with it, unless a dollar sign ($) locks them.

Short on time? Revise with the MS Excel cheat sheet

Already confident? Skip to practice: MS Excel quiz

Before this: the ribbon, its tabs and the parts of an Office window are taught in the MS Word lesson, and Excel shares them. This lesson starts with what is new in Excel: the grid.

Workbook, worksheet, cell and range

Microsoft's definitions, in short:

TermWhat it is
WorkbookThe file you create in Excel. It contains one or more worksheets.
WorksheetOne sheet of cells organised into columns and rows; also called a spreadsheet. A worksheet is always stored in a workbook, and you can add as many as memory allows.
ColumnA vertical line of cells, headed by a letter: A, B, C …
RowA horizontal line of cells, headed by a number: 1, 2, 3 …
CellThe box formed where a row and a column meet. It can hold a number, text or a formula.
Cell reference (address)The column letter followed by the row number. The cell where column B meets row 3 is B3.
Active cellThe selected cell, where typing goes. Only one cell is active at a time, and it has a heavy border.
RangeTwo or more cells. A block of adjacent cells is written first cell, colon, last cell: A10:A20, B15:E15, A10:E20.

Colon or comma? Microsoft calls the colon the range operator: it makes one reference to all the cells between two references, including the two. The comma is the union operator: it joins separate references, as in =SUM(B5:B15,D5:D15). So A1:A10 is ten cells, A1 down to A10, while A1,A10 is only those two.

To count the cells in a block, multiply the number of columns by the number of rows.

Example 1: Counting a range

Question: How many cells does the range B2:D5 contain? (a) 2 (b) 8 (c) 12 (d) 16

  1. Columns: B, C and D, so 3 columns.
  2. Rows: 2, 3, 4 and 5, so 4 rows.
  3. Cells: 3 × 4 = 12. Option (a) would be right only for B2,D5, the two separate cells.

Answer: (c) 12.

How big a worksheet is

In Excel for Microsoft 365, a worksheet has 1,048,576 rows by 16,384 columns; Microsoft's specifications page gives the same figure for Excel 2016, 2019, 2021 and 2024. The columns run from A to XFD. A workbook saved in the older .xls format (Excel 97-2003) holds only 65,536 rows by 256 columns per sheet.

The Name Box and the formula bar

Just above the grid sit two boxes:

  • Name Box: at the left end of the formula bar, it identifies the selected cell. Type a reference such as B3, or a range such as B1:B3, and press Enter, and Excel selects it.
  • Formula bar: it displays the value or formula stored in the active cell, and you can enter or edit it there. The cell itself shows the formula's result.

Press Ctrl+` (grave accent) to switch the whole sheet between showing results and showing formulas.

Entering data

Click a cell and type: a cell can contain numbers, text or a formula. Enter or Tab completes the entry and moves to the next cell; Esc cancels it. Alt+Enter starts a new line inside the same cell.

When a cell shows #####

Excel can fill a cell with hash signs, #####, when the column is not wide enough to show all of the cell's contents. The value is still there: drag the right edge of the column heading to widen the column and it appears. A formula that returns a negative date or time can also show #####.

Formulas: always start with =

A formula is a sequence of values, cell references, names, functions or operators that together produce a new value, and it always begins with an equal sign (=). The = tells Excel that what follows is a formula. Type =A1+B1 and the cell shows the sum, while the formula bar shows =A1+B1.

Excel's operators:

TypeOperators
Arithmetic+ add, – subtract, * multiply, / divide, % percent (=20% is 0.2), ^ power (=2^3 is 8)
Comparison=, >, <, >=, <=, <> (not equal). The result is TRUE or FALSE.
Text& joins text: ="North"&"wind" gives Northwind.
Reference: (range), , (union), a space (intersection)

Operator precedence

When a formula mixes operators, Excel works in this order: reference operators (: space ,), then negation (as in –1), then %, then ^, then * and /, then + and –, then &, and comparisons last. Operators on the same level, such as and /, are worked left to right. Parentheses override the order. Microsoft's own pair: =5+23 gives 11 (2 × 3 = 6, then 5 + 6 = 11), but =(5+2)*3 gives 21 (5 + 2 = 7, then 7 × 3 = 21).

Example 2: Excel's order of operations

Question: A cell contains =10+4*3^2/6. What does it show? (a) 16 (b) 21 (c) 294 (d) 34

  1. Power first: 3^2 = 9. The formula is now 10 + 4 × 9 / 6.
  2. Multiplication and division, left to right: 4 × 9 = 36, then 36 / 6 = 6.
  3. Addition last: 10 + 6 = 16.
  4. The others are wrong orders: adding first gives 14 × 9 / 6 = 21; plain left to right gives 42² / 6 = 1,764 / 6 = 294; multiplying before the power gives 12² / 6 + 10 = 24 + 10 = 34.

Answer: (a) 16.

Functions

A function is a prewritten formula: it takes values (its arguments, in brackets), does an operation and returns a result. =SUM(A2:A10) adds the values in A2 to A10.

FunctionWhat it returns
SUMAdds the values. Text in the range is ignored.
AVERAGEThe arithmetic mean: add the numbers and divide by how many there are. Text, TRUE/FALSE and empty cells in a range are skipped, but cells holding zero are included.
COUNTHow many cells contain numbers (dates count too).
COUNTAHow many cells are not empty, whatever they hold.
MAX / MINThe largest / smallest value.
MEDIANThe middle number. With an even count, the average of the two middle numbers.
IFOne value if a test is TRUE, another if it is FALSE: =IF(test, value_if_true, value_if_false).
LENThe number of characters in a text string.

For 2, 3, 3, 5, 7 and 10 (Microsoft's example), the average is 30 ÷ 6 = 5, and the median is 4: six numbers, so take the two middle ones, 3 and 5, and (3 + 5) ÷ 2 = 4.

IF in action: =IF(B2>=33,"Pass","Fail"). If B2 holds 33, the test 33 >= 33 is TRUE, so the cell shows Pass; if B2 holds 32, it shows Fail.

AutoSum (Home tab), or Alt+=, inserts a SUM formula for the numbers above or to the left.

Example 3: Text, blanks and zeros

Question: Cells A1 to A6 hold 12, 8, the word Absent, nothing (A4 is empty), 20 and 0. Which formula returns 10? (a) =COUNT(A1:A6) (b) =AVERAGE(A1:A6) (c) =MAX(A1:A6) (d) =COUNTA(A1:A6)

  1. The numbers are 12, 8, 20 and 0. The text and the empty cell are skipped.
  2. COUNT counts the numbers: 4. MAX is 20.
  3. COUNTA counts every cell that is not empty: 12, 8, Absent, 20 and 0, so 5.
  4. AVERAGE: (12 + 8 + 20 + 0) ÷ 4 = 40 ÷ 4 = 10. The zero counts; dividing by 3 instead (13.33) is the usual slip.

Answer: (b) =AVERAGE(A1:A6).

Relative, absolute and mixed references

This is what happens when a formula is copied or filled to another cell:

  • Relative (A1): the default. The reference is stored as a position relative to the formula's cell, so it adjusts. Copy =B4C4 from D4 to D5 and it becomes =B5C5.
  • Absolute (AA1): a dollar sign before the column and the row locks both. Copy =BB4*CC4 from D4 to D5 and it stays exactly the same.
  • Mixed (A1orAA1 or A1): one part locked. A1locksthecolumn;AA1 locks the column; A1 locks the row.

Microsoft's table for a formula copied two cells down and two to the right:

ReferenceAfter copying
AA1AA1 (absolute)
A$1C$1 (mixed: column moves, row locked)
$A1$A3 (mixed: column locked, row moves)
A1C3 (relative)

While editing a formula, select a reference in the formula bar and press F4 to switch between these types.

Example 4: Copying a tax formula

Question: B1 holds the GST rate 0.18, and A2 to A5 hold prices; A5 is 2,500. C2 contains =A2BB1, and it is copied down to C5. Which formula is in C5? (a) =A2BB1 (b) =A5BB4 (c) =A5B4 (d) =A5*BB1

  1. C2 to C5 is three rows down, in the same column.
  2. A2 is relative, so it moves three rows: A5. That rules out (a), which still points at A2.
  3. BB1 is absolute, so it stays BB1. That rules out (b) and (c).
  4. C5 shows 2,500 × 0.18 = 450, the tax on the price in A5.
  5. Option (c) is what you get without the dollars: =A2B1 copied three rows down becomes =A5B4, which points at B4 instead of the rate in B1. That is why the rate cell must be locked.

*Answer: (d) =A5BB1, which shows 450.**

Example 5: A mixed-reference times table

Question: B1, C1 and D1 hold 5, 6 and 7; A2, A3 and A4 hold 2, 3 and 4. B2 contains =A2∗BA2*B1 (2 × 5 = 10). B2 is copied to D4. Which formula is in D4? (a) =A2∗DA2*D1 (b) =A4∗DA4*D1 (c) =C4∗DC4*D3 (d) =A4∗BA4*B1

  1. B2 to D4 is two columns right and two rows down.
  2. $A2: the column is locked, so A stays; the row moves 2 → 4. It becomes $A4.
  3. B1:therowislocked,so1stays;thecolumnmovesB→D.ItbecomesD1: the row is locked, so 1 stays; the column moves B → D. It becomes D1.
  4. D4 shows A4 × D1 = 4 × 7 = 28, which is the right cell of the table.

*Answer: (b) =$A4D$1.**

The principle: the $ freezes only the letter or number it stands in front of.

Auto Fill and the fill handle

The fill handle is the small square at the lower-right corner of the selection. Drag it down, up or across, and Excel's Auto Fill feature (the quiz spells it AutoFill) continues the pattern it sees:

  • Type 1 and 2 in two cells, select both and drag: 1, 2, 3, 4, 5 …
  • Type 2 and 4: 2, 4, 6, 8 …
  • Type 2 in one cell only: 2, 2, 2, 2 … (a copy, not a series).
  • A date continues as later dates, and a day or month name continues as a series: Monday, then Tuesday, Wednesday …; January, then February, March …

The Auto Fill Options button that appears lets you change the result: Copy Cells, Fill Series, Fill Formatting Only, Fill Without Formatting, or for dates Fill Days, Fill Weekdays, Fill Months and Fill Years. A formula dragged with the fill handle is copied, so its relative references adjust. Ctrl+D fills down: it copies the top cell of a selected range into the cells below.

Example 6: Reading the pattern

Question: A1 holds 5 and A2 holds 10. Both cells are selected and the fill handle is dragged down to A6. What is in A6? (a) 10 (b) 5 (c) 30 (d) 60

  1. Two starting cells set a step: 10 − 5 = 5.
  2. The series runs 5, 10, 15, 20, 25, 30 in A1 to A6.
  3. Option (b) is what you get by dragging A1 alone: a single number is copied.

Answer: (c) 30.

Sorting, filtering and Freeze Panes

  • Sort rearranges the rows: text A to Z or Z to A, numbers smallest to largest or largest to smallest, dates oldest to newest or the reverse, by one or more columns. It is on the Data tab, in the Sort & Filter group.
  • Filter displays only the rows that meet your conditions and hides the rest; nothing is deleted. Data > Filter puts an arrow in each column heading; clear the filter to show all the data again.
  • Freeze Panes (View tab) keeps part of the sheet visible while you scroll. It freezes the rows above and the columns to the left of the selected cell. To keep the heading row 1 on screen in a long list, select A2 and choose View > Freeze Panes > Freeze Panes; select B2 to freeze row 1 and column A together. Unfreeze Panes undoes it.

Charts: which type for which data

ChartUse it for
ColumnComparing items, or showing change over time. Categories run along the horizontal axis.
BarComparing individual items. Categories run down the vertical axis, which suits long labels.
LineTrends over time at equal intervals: months, quarters, years.
PieParts of a whole: one data series, each slice its percentage of the total. Best when no value is negative.
AreaChange over time, drawing attention to the total. Microsoft adds that, by showing the sum, it also shows parts of a whole, but over time; for one set of shares, pie is the chart to choose, because it shows a single data series with each slice as a percentage of the whole.
XY (scatter)Pairs of numbers, such as scientific or statistical data, with a value axis both ways.

F11 puts a chart of the selected data on a separate chart sheet; Alt+F1 makes an embedded chart on the current worksheet.

Example 7: Matching data to charts

Question: Data: P, a city's rainfall for each month of a year; Q, how a family's monthly spending splits between rent, food, travel and savings; R, the total marks of five students; S, hours studied and marks scored by each of 40 students. Charts: line, pie, column, scatter. Which matching is right? (a) P-line, Q-pie, R-column, S-scatter (b) P-pie, Q-line, R-scatter, S-column (c) P-column, Q-scatter, R-pie, S-line (d) P-scatter, Q-pie, R-line, S-column

  1. Monthly rainfall over a year is a trend at equal intervals: line. Only (a) has P-line.
  2. Check the rest of (a): Q is one total split into shares (pie); R compares separate items (column); S is pairs of numbers (scatter).

Answer: (a).

File formats

ExtensionWhat it is
.xlsxExcel Workbook: the default XML-based format (Microsoft's table names Excel 2007 and 2010). It cannot store VBA macros.
.xlsmMacro-enabled workbook: stores VBA macro code.
.xlsExcel 97-2003 Workbook, a binary format. Excel opens it in Compatibility Mode.
.csvComma-delimited text. Saves only the active sheet.

Shortcuts (Windows)

KeysWhat they do
F2Edit the active cell
F4Switch a selected reference between relative, absolute and mixed
Alt+=Insert a SUM formula (AutoSum)
Ctrl+;Enter the current date
Ctrl+Shift+:Enter the current time
Ctrl+`Show formulas / show results
Ctrl+DFill down
F11Chart on a separate chart sheet
Shift+F11Insert a new worksheet
Ctrl+Page Down / Page UpNext / previous sheet
Ctrl+Arrow keyJump to the edge of the data

Example 8: One wrong pairing

Question: Which pairing of key and action is WRONG? (a) F2: edit the active cell (b) Alt+=: insert a SUM formula (c) F11: insert a new worksheet (d) Ctrl+;: enter the current date

  1. (a), (b) and (d) match Microsoft's list.
  2. F11 creates a chart on its own chart sheet. Inserting a new worksheet is Shift+F11.

Answer: (c).

Look-alikes: telling them apart

TheseHow to tell them apart
Workbook vs worksheetWorkbook: the file. Worksheet: one sheet inside it.
A1:A10 vs A1,A10Colon: every cell from A1 to A10 (ten). Comma: just the two.
Name Box vs formula barName Box: which cell is selected. Formula bar: what the cell holds.
COUNT vs COUNTA vs SUMCOUNT: how many numbers. COUNTA: how many non-empty cells. SUM: the total of the numbers.
AVERAGE vs MEDIANAVERAGE: total ÷ count. MEDIAN: the middle value.
A1 vs AA1 vs A1,AA1, A1Relative: moves. Absolute: fixed. Mixed: one part fixed.
Auto Fill vs AutoFilter vs AutoSumAuto Fill continues a series; AutoFilter hides rows that don't match; AutoSum inserts SUM.
Sort vs filterSort changes the order of rows; filter hides rows.
##### vs #VALUE!#####: the column is too narrow (or a date is negative). #VALUE!: an error, for example from a formula like =A1+B1 when a cell holds text.

In the exam

Computer Knowledge is a named module in SSC CGL Tier-II and SSC CHSL, and part of General Awareness in RRB NTPC. Excel questions come in a few shapes:

  • "What is X called?" A cell, a range, a workbook, the fill handle, Freeze Panes. How to spot it: find the stem word only one option fits: row meets column (cell), group of cells (range), whole file (workbook), continues a series (Auto Fill), keeps headings visible (Freeze Panes), column too narrow (#####).
  • "Which function …?" How to spot it: adds is SUM, mean is AVERAGE, how many numbers is COUNT, non-empty is COUNTA, largest/smallest is MAX/MIN, middle is MEDIAN.
  • "What happens when the formula is copied?" How to spot it: move every part without a $ by the same number of rows and columns as the copy; leave every part with a $ alone.

Common mistakes

  • Leaving out the =. Without it, Excel does not treat the entry as a formula.
  • Working a formula purely left to right. Power comes before * and /, which come before + and –.
  • Thinking AVERAGE skips zeros. It skips text and empty cells, not zeros.
  • Reading COUNT as "count everything". COUNT counts only numbers; COUNTA counts every non-empty cell.
  • Putting $ on the wrong part. A1locksthecolumn;AA1 locks the column; A1 locks the row.
  • Confusing Auto Fill with AutoFilter. One extends a series; the other hides rows.

At a glance

  • Workbook = file; worksheet = one sheet; cell = where a row meets a column; range = two or more cells, e.g. A1:A10 (ten cells).
  • Limits: 1,048,576 rows × 16,384 columns (A to XFD) in Excel for Microsoft 365; 65,536 × 256 in .xls (Excel 97-2003).
  • Name Box identifies the selected cell; formula bar shows what it holds.
  • Formula starts with =. Order: reference, negation, %, ^, * /, + –, &, comparisons; brackets first.
  • SUM total, AVERAGE mean, COUNT numbers, COUNTA non-empty, MAX/MIN, MEDIAN middle, IF test.
  • A1 relative, AA1 absolute, A1/AA1 / A1 mixed; F4 switches.
  • Fill handle continues series; Sort reorders; Filter hides; Freeze Panes (View tab) keeps headings visible.
  • Pie = parts of a whole; line = trend over time; column/bar = compare items; scatter = number pairs.
  • .xlsx default, .xlsm macros, .xls Excel 97-2003. ##### = column too narrow.

Next

Next in the Basic Computer series come the MS PowerPoint lesson, the last of the three Office lessons, and the Networking lesson, on how computers connect and share data. Every topic in the series is on the Basic Computer page.

Ready to test this lesson? Take the MS Excel quiz

How this was made: Drafted with AI assistance; every answer re-solved by a separate check that had not seen the key; every fact checked against the source it cites.