Excel Practice Exercises

Select an exercise to build your skills from beginner to pro.

SUM & AVERAGE (Beginner)

Goal: Calculate total and average expenses from a list.

Steps:

  1. Use =SUM(B2:B6) to get the total expenses.
  2. Use =AVERAGE(B2:B6) to get the average expense.
  3. Select the amounts, then go to Home > Conditional Formatting > Highlight Cell Rules > Greater Than... to highlight values over 150.

Sample Data:

ItemAmount
Rent1200
Food300
Travel150
Supplies80
Utilities200
Download CSV
Tip: SUM adds all numbers in a range, while AVERAGE calculates the mean.

Solution

The formulas will produce the following results. Conditional formatting will highlight the amounts for Rent, Food, and Utilities.

ItemAmount
Rent1200
Food300
Travel150
Supplies80
Utilities200
Total1930
Average386

IF Function (Beginner)

Goal: Categorize sales as 'High' or 'Low' based on a value.

Steps:

  1. In cell C2, type =IF(B2>500, "High", "Low").
  2. Drag the fill handle down to apply the formula to all rows.

Sample Data:

ProductSalesCategory
Laptop800
Monitor900
Printer400
Speaker700
Download CSV
Tip: The IF function checks a condition. Syntax: IF(condition, value_if_true, value_if_false).

Solution

The formula will automatically fill the 'Category' column based on the sales value.

ProductSalesCategory
Laptop800High
Monitor900High
Printer400Low
Speaker700High

AND/OR Functions (Beginner)

Goal: Flag products as 'Priority' if Sales > $400 AND Region is 'North'.

Steps:

  1. In cell D2, use =IF(AND(B2>400, C2="North"), "Priority", "Standard").
  2. Drag the formula down to evaluate all products.

Sample Data:

ProductSalesRegionFlag
Book A450North
Book B300South
Book C500North
Download CSV
Tip: AND requires all conditions to be true. OR requires at least one to be true.

Solution

The 'Flag' column will be populated based on both the sales and region criteria.

ProductSalesRegionFlag
Book A450NorthPriority
Book B300SouthStandard
Book C500NorthPriority

Text Functions (Beginner)

Goal: Create inventory codes by combining product and category.

Steps:

  1. In cell C2, use =UPPER(LEFT(A2,3)&"-"&B2).

Sample Data:

ProductCategoryCode
LaptopElectronics
MouseAccessories
KeyboardAccessories
Download CSV
Tip: LEFT() extracts text from the start. & joins text strings. UPPER() converts to uppercase.

Solution

The formula generates a standardized code for each item.

ProductCategoryCode
LaptopElectronicsLAP-ELECTRONICS
MouseAccessoriesMOU-ACCESSORIES
KeyboardAccessoriesKEY-ACCESSORIES

Date Functions (Beginner)

Goal: Calculate invoice due dates that are 30 days from the issue date.

Steps:

  1. In cell C2, use the formula =B2+30.
  2. Ensure the column is formatted as a Date.

Sample Data:

InvoiceIssue DateDue Date
INV0012025-01-01
INV0022025-01-15
Download CSV
Tip: Excel stores dates as serial numbers, allowing you to perform simple math on them.

Solution

The due dates are calculated by simply adding 30 days.

InvoiceIssue DateDue Date
INV0012025-01-012025-01-31
INV0022025-01-152025-02-14

VLOOKUP (Intermediate)

Goal: Look up an employee's salary from a master table using their ID.

Steps:

  1. On your payroll sheet, use the formula =VLOOKUP(A2, Employees!A:C, 3, FALSE) in the salary column.

Sample Data (on 'Employees' sheet):

IDNameSalary
101Alice50000
102Bob45000
103Carol60000
Download CSV
Tip: VLOOKUP is essential for combining data. The 'V' stands for vertical. FALSE ensures an exact match.

Solution

Your payroll sheet will now pull the correct salaries from the master list.

IDNameSalary
103Carol60000
101Alice50000

INDEX & MATCH (Intermediate)

Goal: Look up a product's price, even if the lookup column isn't the first one.

Steps:

  1. Use =INDEX(C:C, MATCH(E2, B:B, 0)), where E2 contains the product name you're searching for.

Sample Data:

CategoryProduct NamePrice
ElectronicsLaptop1200
AccessoriesMouse25
Download CSV
Tip: INDEX & MATCH is more flexible and faster than VLOOKUP.

Solution

This combination correctly finds the price even though the lookup column isn't the first one.

Product to FindPrice
Mouse25

SUMIFS & COUNTIFS (Intermediate)

Goal: Calculate total sales and transaction count for a specific product and region.

Steps:

  1. To sum sales: =SUMIFS(C:C, A:A, "North", B:B, "Book").
  2. To count sales: =COUNTIFS(A:A, "North", B:B, "Book").

Sample Data:

RegionProductSales
NorthBook150
SouthBook250
NorthBook300
Download CSV
Tip: The 'S' in SUMIFS and COUNTIFS lets you add multiple criteria.

Solution

The formulas provide a quick summary based on your specific conditions.

MetricResult
Total Sales (North, Book)$450
Transaction Count (North, Book)2

Data Validation (Intermediate)

Goal: Restrict data entry to a dropdown list to prevent errors.

Steps:

  1. Create your list of valid entries (e.g., 'IT', 'Sales', 'HR').
  2. Select the cell(s) where you want the dropdown.
  3. Go to Data > Data Validation, select List, and select your list as the Source.

Source Data for List:

Department List
IT
Sales
HR
Download CSV
Tip: Data Validation is crucial for creating templates that ensure data integrity.

Solution

The result is interactive. The selected cells in your main table will now have a dropdown arrow, allowing users to only pick from your predefined list. This prevents typos and keeps data consistent.

PivotTables & Slicers (Pro)

Goal: Summarize sales data and create interactive filters.

Steps:

  1. Select your data and go to Insert > PivotTable.
  2. Drag fields to the Rows, Columns, and Values areas to build your report.
  3. With the PivotTable selected, go to PivotTable Analyze > Insert Slicer.

Sample Data:

RegionProductSales
NorthBook150
SouthBook250
NorthPen80
Download CSV
Tip: PivotTables are the most powerful reporting tool in Excel. Slicers make them interactive.

Solution

The PivotTable provides an instant summary of your data. Slicers add interactive buttons to filter it.

Sum of SalesProductGrand Total
RegionBookPen
North15080230
South250250
Grand Total40080480

SUMPRODUCT (Pro)

Goal: Calculate total revenue in one step without a helper column.

Steps:

  1. Use the formula =SUMPRODUCT(B2:B4, C2:C4).

Sample Data:

ProductQuantityPrice
Laptop101200
Mouse5025
Keyboard3075
Download CSV
Tip: SUMPRODUCT is efficient for weighted averages and other calculations that normally require extra columns.

Solution

The formula calculates (10*1200) + (50*25) + (30*75) in one step.

MetricResult
Total Revenue$15,500

Cell Locking & Protection (Pro)

Goal: Create a template where users can only edit specific input cells.

Steps:

  1. Select the input cells (e.g., B2:B3). Right-click > Format Cells.
  2. Go to the Protection tab and uncheck the 'Locked' box.
  3. Go to the Review tab and click Protect Sheet.

Starting Template:

ItemValue
Quantity (Input)
Price (Input)
Total (Formula)=B2*B3
Download CSV
Tip: This is essential for building robust models that prevent accidental formula deletion.

Solution

The result is an interactive sheet. Users will be able to type in the 'Value' cells for Quantity and Price, but if they try to click on or edit the 'Total' formula cell, they will be blocked by an error message, protecting your formula from being changed.

XLOOKUP Function (Pro)

Goal: Use the modern XLOOKUP to find an employee's department.

Steps:

  1. In cell F2, use the formula: =XLOOKUP(E2, A2:A5, C2:C5, "Not Found")

Sample Data:

Emp IDNameDepartmentLookup IDResult
101AliceSales103
102BobIT105
103CarolHR
104DaveSales
Download CSV
Tip: XLOOKUP replaces VLOOKUP. It's more powerful, flexible, and easier to use.

Solution

The formula correctly finds the department for existing IDs and returns a custom message for non-existing ones.

Lookup IDResult
103HR
105Not Found

Intro to Power Query (Pro)

Goal: Combine two tables into one master table without formulas.

Steps:

  1. Format your data as Excel Tables (Ctrl+T).
  2. Load each table into Power Query via Data > From Table/Range.
  3. Use the Merge Queries feature to join the tables on a common column.
  4. Click Close & Load to output the new merged table.

Sample Data:

Table 1: Sales

ProductIDUnits
P110
P25

Table 2: Products

ProductIDName
P1Laptop
P2Mouse
Download Sales CSV Download Products CSV
Tip: Power Query automates data cleaning. Once set up, just click 'Refresh' to update when source data changes.

Solution

The final output is a single, clean table combining the information from both source tables.

ProductIDUnitsName
P110Laptop
P25Mouse

PMT Function for Loans (Pro)

Goal: Calculate the fixed monthly payment for a loan.

Steps:

  1. In cell D2, use the formula: =PMT(B2/12, C2*12, -A2)

Sample Data:

Loan AmountAnnual RateYearsMonthly Payment
20000008%20
Download CSV
Tip: The PMT function is essential for financial analysis, helping you model payments for cars, homes, or business loans.

Solution

The formula calculates the fixed monthly payment required to pay off the loan.

Loan AmountAnnual RateYearsMonthly Payment
2,000,0008%20₹16,728.84