Workbook
The complete Excel file. A workbook may contain one or many worksheets.
A complete interactive learning book covering spreadsheet foundations, data entry, formatting, formulas, VLOOKUP, XLOOKUP, SUMIF, COUNTIF, charts, PivotTables, collaboration, printing and practical projects.
A spreadsheet is an electronic grid made of rows and columns. It is used to enter text, numbers, dates and formulas, then organize, calculate, compare, summarize and present information. In Microsoft Excel, the file is called a workbook and each page inside it is called a worksheet.
The complete Excel file. A workbook may contain one or many worksheets.
A grid of rows and columns where data is entered and calculations are performed.
The intersection of a column and a row. A cell is identified by a reference such as B4.
A group of cells such as A2:D10. Ranges are commonly used in formulas and charts.
Displays the workbook name and Microsoft Excel.
Provides quick commands such as Save, Undo and Redo.
Contains tabs and groups of commands for creating, formatting and analysing data.
Shows the reference or name of the active cell. You can type a reference such as A100 to move there.
Displays and allows editing of the active cell's content or formula.
The grid containing column letters, row numbers and cells.
Used to move between worksheets, add sheets, rename them and organize a workbook.
Shows workbook status, quick calculations, view controls and zoom.
| Task | Example formula | Meaning |
|---|---|---|
| File | Save, Save As, Open, Print, Share | Workbook and account operations. |
| Home | Clipboard, Font, Alignment, Number, Styles, Cells | Common editing and formatting. |
| Insert | Tables, Pictures, Charts, Sparklines, Links | Adds objects and visual elements. |
| Page Layout | Margins, Orientation, Size, Print Area | Controls page and print layout. |
| Formulas | Function Library, Names, Auditing, Calculation | Creates and checks formulas. |
| Data | Sort, Filter, Validation, Queries, Data Tools | Imports, cleans and organises data. |
| Review | Spelling, Comments, Protection | Checks and protects workbooks. |
| View | Workbook views, Zoom, Freeze Panes, Window | Controls the worksheet display. |
A cell address combines the column letter and row number. For example, D7 means column D and row 7. A range uses two cell addresses separated by a colon, such as B2:E12.
A1One cellA1:A10One-column rangeA1:D1One-row rangeB5:E10Rectangular contiguous rangeB5:E10,G1:G7Non-contiguous unionSheet2!C4Cell on another worksheet=B2*C2.A cell may store 0.25 and display 25%. The stored value remains 0.25. Good formatting improves readability without changing the calculation.
Font family, size, bold, italic, underline, colour and fill.
Left, centre, right, top, middle, bottom, orientation, indent and Wrap Text.
General, Number, Currency, Accounting, Date, Time, Percentage, Fraction, Scientific and Custom.
Use borders to separate headings, totals and important sections; avoid excessive decoration.
Excel Tables automatically include filter buttons, expand when new records are added, copy formulas down the column and support structured references such as =SUM(Sales[Amount]).
Data Validation controls what users may enter. It can restrict a cell to whole numbers, decimals, dates, times, text length or values from a list.
Pending,Approved,Rejected or select a source range.Conditional Formatting changes the appearance of cells when a rule is true.
=B2<50Custom rule to highlight a mark below 50.=C2<D2Highlights stock on hand when it is lower than the reorder level.Compare categories, facilities, products or periods.
Show change over time, such as monthly patient attendance.
Show a small number of parts of a whole. Avoid when categories are many.
Show the relationship between two numerical variables.
Combine series with different scales, such as quantity and percentage.
Show a small trend inside a cell.
Excel can import text files, CSV files, database results and other workbook data. Modern versions also provide Get & Transform tools through Power Query.
Modern Excel collaboration normally uses OneDrive or SharePoint co-authoring. Users can work in the same workbook, view other editors and use comments. Keep a clear ownership process and avoid simultaneous structural changes to complex workbooks.
Excel recognises a formula when the entry starts with =. A formula may contain constants, cell references, ranges, operators and functions.
=(B4+25)/SUM(D5:F5)Adds 25 to B4, totals D5:F5 and divides the first result by the total.| Task | Example formula | Meaning |
|---|---|---|
| Addition | =A2+B2 | Adds values. |
| Subtraction | =A2-B2 | Subtracts the second value. |
| Multiplication | =A2*B2 | Multiplies values. |
| Division | =A2/B2 | Divides the first value by the second. |
| Percentage | =A2*10% | Calculates a percentage of a value. |
| Exponent | =A2^2 | Raises a value to a power. |
=, >, <, >=, <= and <> produce TRUE or FALSE and are commonly used inside IF, COUNTIF, SUMIF and conditional formatting.
Excel follows mathematical precedence. Multiplication and division are completed before addition and subtraction. Use parentheses to make the intended order clear.
=4+3*2Returns 10 because multiplication is completed first.
=(4+3)*2Returns 14 because the parentheses are completed first.
A2 changes when the formula is copied. In =B2*C2, copying the formula down one row changes it to =B3*C3.
$A$2 does not change when copied. Use it for a fixed tax rate, exchange rate, target or lookup table.
$A2 locks the column but allows the row to change.A$2 locks the row but allows the column to change.=C2*$F$1Multiplies C2 by a fixed rate stored in F1.=SUM(B2:B10)
Adds numbers in a range.
Use: Total sales, quantities, marks or expenses.=AVERAGE(C2:C10)
Returns the arithmetic mean.
Use: Average mark or monthly consumption.=MAX(C2:C10)
Returns the largest value.
Use: Highest mark or maximum stock.=MIN(C2:C10)
Returns the smallest value.
Use: Lowest mark or minimum price.=COUNT(C2:C100)
Counts cells containing numbers.
Use: Count numeric results.=COUNTA(A2:A100)
Counts nonblank cells.
Use: Count names or IDs.=COUNTBLANK(D2:D100)
Counts blank cells.
Use: Find missing values.=IF(C2>=50,"Pass","Fail")
Returns one result when a condition is true and another when false.
Use: Classify marks or stock status.=IFS(C2>=80,"A",C2>=70,"B",C2>=60,"C",TRUE,"F")
Tests multiple conditions in order.
Use: Assign grades without deeply nested IFs.=AND(B2>=50,C2>=50)
Returns TRUE when all conditions are true.
Use: Require a pass in two components.=OR(B2="Yes",C2="Yes")
Returns TRUE when at least one condition is true.
Use: Check alternative eligibility conditions.=NOT(B2="Closed")
Reverses TRUE and FALSE.
Use: Test that a record is not closed.=SUMIF(A2:A100,"Pharmacy",C2:C100)
Adds values that meet one criterion.
Use: Total amount for one department.=SUMIFS(D2:D100,A2:A100,"Mwanza",B2:B100,">=2026-01-01")
Adds values that meet multiple criteria.
Use: Total for a region and date condition.=COUNTIF(C2:C100,">=50")
Counts cells meeting one criterion.
Use: Count students who passed.=COUNTIFS(B2:B100,"Female",C2:C100,">=50")
Counts records meeting multiple criteria.
Use: Count female students who passed.=AVERAGEIF(A2:A100,"Ward A",C2:C100)
Averages values meeting one criterion.
Use: Average waiting time for one ward.=AVERAGEIFS(D2:D100,A2:A100,"Mwanza",C2:C100,"Completed")
Averages values meeting multiple criteria.
Use: Average amount for completed Mwanza records.=VLOOKUP(E2,$A$2:$C$100,3,FALSE)
Looks down the first column and returns a value from another column.
Use: Find a price, name or category by code.=HLOOKUP(B1,$A$1:$M$4,4,FALSE)
Looks across the first row and returns from another row.
Use: Retrieve a monthly value arranged horizontally.=XLOOKUP(E2,A2:A100,C2:C100,"Not found")
Looks in one range and returns the matching value from another range.
Use: Modern replacement for many VLOOKUP tasks.=INDEX(C2:C100,5)
Returns a value from a specified position.
Use: Retrieve the fifth value from a range.=MATCH(E2,A2:A100,0)
Returns the position of a matching value.
Use: Find the row position of an ID.=INDEX(C2:C100,MATCH(E2,A2:A100,0))
Combines flexible lookup and return ranges.
Use: Lookup to the left or right in older Excel.=IFERROR(VLOOKUP(E2,$A$2:$C$100,3,FALSE),"Not found")
Returns a chosen value when a formula produces an error.
Use: Show a friendly lookup result.=LEFT(A2,3)
Returns characters from the left.
Use: Extract a code prefix.=RIGHT(A2,4)
Returns characters from the right.
Use: Extract the last four digits.=MID(A2,5,3)
Returns characters from the middle.
Use: Extract a section of a code.=LEN(A2)
Counts characters.
Use: Validate ID or phone length.=TRIM(A2)
Removes extra spaces.
Use: Clean imported names.=CLEAN(A2)
Removes non-printing characters.
Use: Clean text copied from external systems.=CONCAT(A2," ",B2)
Joins text values.
Use: Combine first and last names.=TEXTJOIN(", ",TRUE,A2:C2)
Joins text with a delimiter and can ignore blanks.
Use: Create a combined address or list.=UPPER(A2)
Converts text to uppercase.
Use: Standardise codes.=LOWER(A2)
Converts text to lowercase.
Use: Standardise email addresses.=PROPER(A2)
Capitalises the first letter of each word.
Use: Format names and places.=ROUND(C2,2)
Rounds to a specified number of digits.
Use: Display currency or measurement values.=ROUNDUP(C2,0)
Rounds away from zero.
Use: Calculate whole packs needed.=ROUNDDOWN(C2,0)
Rounds toward zero.
Use: Remove decimal remainder.=ABS(B2-C2)
Returns an absolute value.
Use: Measure difference without a negative sign.=TODAY()
Returns the current date.
Use: Calculate age of a record or due date status.=NOW()
Returns the current date and time.
Use: Timestamp calculations.=DATE(2026,7,13)
Creates a date from year, month and day.
Use: Build a valid date from components.=YEAR(A2)
Returns the year from a date.
Use: Group records by year.=MONTH(A2)
Returns the month number.
Use: Analyse monthly activity.=DAY(A2)
Returns the day of the month.
Use: Extract date components.=DATEDIF(A2,TODAY(),"Y")
Returns the difference between dates in selected units.
Use: Calculate age in completed years.=NETWORKDAYS(A2,B2)
Counts working days between dates.
Use: Measure turnaround time excluding weekends.=PMT(B2/12,C2,-D2)
Calculates a periodic loan payment.
Use: Monthly loan payment.=RANK.EQ(C2,$C$2:$C$30,0)
Ranks a value in a list.
Use: Rank student scores.=SUBTOTAL(9,C2:C100)
Calculates a subtotal that can respect filters.
Use: Total visible filtered records.=UNIQUE(A2:A100)
Returns distinct values.
Use: Create a unique category list.=FILTER(A2:D100,D2:D100="Pending","No records")
Returns rows that meet a condition.
Use: Create a live filtered report.=SORT(A2:D100,4,-1)
Returns a sorted copy of a range.
Use: Create a descending report by the fourth column.| Code | Item | Unit price |
|---|---|---|
| P001 | Amoxicillin | 850 |
| P002 | Paracetamol | 300 |
| P003 | ORS | 500 |
=VLOOKUP(E2,$A$2:$C$4,3,FALSE)Searches the first column for the code in E2 and returns the value from column 3.=XLOOKUP(E2,A2:A4,C2:C4,"Not found")Searches codes in A2:A4 and returns the matching price from C2:C4.XLOOKUP separates the lookup range from the return range, can return values from either side and provides a built-in not-found result.
=INDEX(C2:C4,MATCH(E2,A2:A4,0))MATCH finds the row position, then INDEX returns the value from the price range.#N/A.| Task | Example formula | Meaning |
|---|---|---|
| ####### | Column is too narrow | Widen the column or use a shorter number format. |
| #VALUE! | Wrong data type or argument | Check for text inside numerical calculations. |
| #DIV/0! | Division by zero or blank denominator | Check the denominator or use IF to prevent division. |
| #NAME? | Excel does not recognise a name or function | Check spelling, quotation marks and named ranges. |
| #N/A | No matching value is available | Check lookup values, spaces and data types. |
| #REF! | Invalid cell reference | A referenced cell or range may have been deleted. |
| #NUM! | Invalid numerical result | Check function arguments and mathematical limits. |
| #NULL! | Ranges do not intersect | Check range operators and spacing. |
| #SPILL! | Dynamic-array output area is blocked | Clear cells preventing the array from expanding. |
=IFERROR(A2/B2,0)Returns zero when the division produces an error. Correct the underlying data rather than hiding important errors.A PivotTable summarises records without changing the source data. It can total, count or average values by category, date, region or another field.
Create columns for Student ID, Name, Subject 1–5, Total, Average, Grade, Result and Rank.
| Task | Example formula | Meaning |
|---|---|---|
| Total | =SUM(C2:G2) | Adds five subject marks. |
| Average | =AVERAGE(C2:G2) | Calculates the mean mark. |
| Result | =IF(I2>=50,"Pass","Fail") | Classifies the student. |
| Grade | =IFS(I2>=80,"A",I2>=70,"B",I2>=60,"C",I2>=50,"D",TRUE,"F") | Assigns a grade. |
| Rank | =RANK.EQ(I2,$I$2:$I$30,0) | Ranks average marks. |
Create Item Code, Item Name, Opening Stock, Received, Issued, Losses, Closing Stock, Reorder Level and Status.
| Task | Example formula | Meaning |
|---|---|---|
| Closing stock | =C2+D2-E2-F2 | Calculates stock on hand. |
| Status | =IF(G2<=H2,"REORDER","OK") | Flags items at or below reorder level. |
| Lookup name | =XLOOKUP(A2,Items!A:A,Items!B:B,"Unknown") | Returns item name from a master list. |
| Total issued by item | =SUMIF(Issues!B:B,A2,Issues!D:D) | Sums issues for one item code. |
| Task | Example formula | Meaning |
|---|---|---|
| Revenue | =Quantity*SellingPrice | Quantity multiplied by selling price. |
| Cost | =Quantity*UnitCost | Quantity multiplied by unit cost. |
| Profit | =Revenue-Cost | Revenue less cost. |
| Profit margin | =IFERROR(Profit/Revenue,0) | Profit as a proportion of revenue. |
Use Data Validation for Present, Absent and Late. Use COUNTIF to count each status and Conditional Formatting to highlight absence.
Devine Vision Tech provides educational notes, digital resources, file sharing and support for students and professionals in Tanzania.
Loading shared Excel learning files...
Google Drive permissions or browser privacy settings may prevent the embedded folder from loading. Use the Open button to access the original folder.