MODULE 3
Advanced Formulas and Functions
Module Introduction
Welcome to Module Three of your Certified Microsoft Excel Expert Level 2 course! In this module, we will learn about advanced formulas and functions. This is where Excel becomes really powerful.
Think of formulas like recipes. You put ingredients (numbers) together in a certain way to get a result. Functions are like pre‑made recipes that Excel gives you. You just add your ingredients and Excel does the rest.
💡 What you will learn: Logical functions (IF, AND, OR), lookup functions (XLOOKUP, VLOOKUP), date and time functions, financial functions (PMT), statistical functions (SUMIFS, COUNTIFS), and dynamic array formulas.
Learning Objectives
By the end of this module, you will be able to:
- Use logical functions like IF, AND, and OR to make decisions.
- Use lookup functions like XLOOKUP and VLOOKUP to find data.
- Use date and time functions like TODAY and WEEKDAY.
- Use financial functions like PMT to calculate loan payments.
- Use statistical functions like SUMIFS and COUNTIFS.
- Use dynamic array formulas to work with multiple results.
Warm‑up Story
Chidi's Big Formula Adventure
Chidi works in a bank in Abuja. He has to calculate loan payments for customers every day. He was doing it manually, and it took a long time. He thought, "There must be an easier way."
He learned about the PMT function in Excel. Now, he just enters the loan amount, interest rate, and number of payments, and Excel calculates everything for him. He also learned about XLOOKUP to find customer details quickly.
Chidi became the fastest worker in his office. His boss was so impressed that he gave Chidi a promotion. Chidi learned that formulas and functions are like superpowers in Excel.
Main Lessons
Lesson 1: What is a Formula?
Definition: A formula is an equation that performs calculations on values in your workbook.
Why it is important: Formulas are the heart of Excel. They let you do math, make decisions, and analyse data.
Simple explanation: A formula is like a math problem. You type =, then the numbers and symbols. Excel solves it.
- Real‑life example: A teacher uses a formula to calculate total marks.
- School example: A student uses a formula to add up scores.
- Home example: A parent uses a formula to calculate monthly expenses.
- Nigerian example: A shop owner uses a formula to calculate total sales.
How to write a formula:
- Click on a cell.
- Type = (equals sign).
- Type the numbers and symbols (e.g., =5+3).
- Press Enter.
📌 Mini summary: A formula is an equation that does calculations. You start with = and then write your math.
Lesson 2: Logical Functions – IF
Definition: The IF function checks a condition and returns one value if true and another if false.
Why it is important: It lets you make decisions based on your data.
Simple explanation: It is like a traffic light – if the light is green, you go; if it is red, you stop.
- Real‑life example: A manager uses IF to check if sales are above target.
- School example: A student uses IF to check if they passed a test.
- Home example: A parent uses IF to check if expenses are under budget.
- Nigerian example: A shop owner uses IF to check if stock is low.
How to use IF:
=IF(condition, value_if_true, value_if_false)
Example: =IF(A1>50, "Pass", "Fail")
📌 Mini summary: The IF function makes decisions. It checks a condition and gives one answer for true and another for false.
Lesson 3: Logical Functions – AND and OR
Definition: AND checks if all conditions are true. OR checks if any condition is true.
Why it is important: They let you check multiple conditions at once.
Simple explanation: AND is like needing both your hands to clap. OR is like being able to use either hand to wave.
- Real‑life example: A manager uses AND to check if both sales and profit are high.
- School example: A student uses OR to check if they passed math or science.
- Home example: A parent uses AND to check if it is both weekend and sunny.
- Nigerian example: A shop owner uses OR to check if an item is on sale or discounted.
=AND(condition1, condition2, ...)
=OR(condition1, condition2, ...)
📌 Mini summary: AND checks if all conditions are true. OR checks if any condition is true.
Lesson 4: Lookup Functions – XLOOKUP
Definition: XLOOKUP finds a value in a range and returns a corresponding value.
Why it is important: It helps you find data quickly without searching manually.
Simple explanation: It is like a librarian who can find any book you ask for.
- Real‑life example: A manager uses XLOOKUP to find a customer's phone number.
- School example: A student uses XLOOKUP to find a student's grade.
- Home example: A parent uses XLOOKUP to find a contact's address.
- Nigerian example: A shop owner uses XLOOKUP to find a product's price.
How to use XLOOKUP:
=XLOOKUP(lookup_value, lookup_array, return_array)
Example: =XLOOKUP("Bola", A2:A10, B2:B10)
📌 Mini summary: XLOOKUP finds data in a table and returns a value from the same row.
Lesson 5: Lookup Functions – VLOOKUP
Definition: VLOOKUP finds a value in the first column of a table and returns a value from another column.
Why it is important: It is a classic lookup function that many people use.
Simple explanation: It is like looking up a word in a dictionary.
- Real‑life example: A manager uses VLOOKUP to find an employee's salary.
- School example: A student uses VLOOKUP to find a teacher's contact.
- Home example: A parent uses VLOOKUP to find a product's price.
- Nigerian example: A shop owner uses VLOOKUP to find a supplier's phone number.
How to use VLOOKUP:
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
Example: =VLOOKUP("Bola", A2:B10, 2, FALSE)
📌 Mini summary: VLOOKUP finds data in a table by searching the first column and returning a value from another column.
Lesson 6: Date and Time Functions
Definition: Date and time functions work with dates and times.
Why it is important: They help you track deadlines, schedules, and time.
- TODAY: Returns today's date. =TODAY()
- NOW: Returns the current date and time. =NOW()
- WEEKDAY: Returns the day of the week. =WEEKDAY(A1)
- WORKDAY: Returns a date after a certain number of workdays. =WORKDAY(A1, 5)
📌 Mini summary: Date and time functions help you work with dates and times in Excel.
Lesson 7: Financial Functions – PMT
Definition: PMT calculates the payment for a loan based on constant payments and a constant interest rate.
Why it is important: It helps you calculate loan payments quickly.
Simple explanation: It is like a calculator for loan payments.
- Real‑life example: A bank uses PMT to calculate mortgage payments.
- School example: A student uses PMT to calculate a loan for school fees.
- Home example: A parent uses PMT to calculate a car loan payment.
- Nigerian example: A shop owner uses PMT to calculate a business loan.
How to use PMT:
=PMT(rate, nper, pv)
📌 Mini summary: PMT calculates loan payments. It needs the interest rate, number of payments, and loan amount.
Lesson 8: Statistical Functions – SUMIFS
Definition: SUMIFS adds cells that meet multiple conditions.
Why it is important: It lets you add data that meets specific criteria.
Simple explanation: It is like adding only the numbers that you want.
- Real‑life example: A manager uses SUMIFS to add sales for a specific product.
- School example: A student uses SUMIFS to add marks for a specific subject.
- Home example: A parent uses SUMIFS to add expenses for a specific category.
- Nigerian example: A shop owner uses SUMIFS to add sales for a specific region.
How to use SUMIFS:
=SUMIFS(sum_range, criteria_range1, criteria1, ...)
📌 Mini summary: SUMIFS adds numbers that meet multiple conditions. It is a powerful way to sum specific data.
Lesson 9: Statistical Functions – COUNTIFS
Definition: COUNTIFS counts cells that meet multiple conditions.
Why it is important: It lets you count data that meets specific criteria.
Simple explanation: It is like counting only the items you want.
- Real‑life example: A manager uses COUNTIFS to count sales for a specific product.
- School example: A student uses COUNTIFS to count scores above 80.
- Home example: A parent uses COUNTIFS to count expenses over ₦5,000.
- Nigerian example: A shop owner uses COUNTIFS to count products in stock.
How to use COUNTIFS:
=COUNTIFS(criteria_range1, criteria1, ...)
📌 Mini summary: COUNTIFS counts cells that meet multiple conditions. It is great for counting specific data.
Lesson 10: Dynamic Array Formulas
Definition: Dynamic array formulas return multiple results that "spill" into adjacent cells.
Why it is important: They make it easy to work with multiple results at once.
Simple explanation: It is like magic – one formula gives you many answers.
- Real‑life example: A manager uses SORT to automatically sort a list.
- School example: A student uses UNIQUE to get a list of unique values.
- Home example: A parent uses FILTER to see only specific data.
- Nigerian example: A shop owner uses SORT to sort products by price.
Common dynamic array functions:
- SORT: Sorts a range. =SORT(A2:A10)
- UNIQUE: Returns unique values. =UNIQUE(A2:A10)
- FILTER: Filters a range. =FILTER(A2:B10, B2:B10>50)
📌 Mini summary: Dynamic array formulas return multiple results. They are powerful and easy to use.
Lesson 11: Nested Functions
Definition: A nested function is a function inside another function.
Why it is important: It lets you combine functions to do more complex tasks.
Simple explanation: It is like a matryoshka doll – one function inside another.
- Real‑life example: A manager uses IF with AND to check multiple conditions.
- School example: A student uses IF with VLOOKUP to look up and check.
- Home example: A parent uses IF with SUMIFS to sum conditionally.
- Nigerian example: A shop owner uses IF with XLOOKUP to find and check.
Example: =IF(AND(A1>50, B1<10), "OK", "Check")
📌 Mini summary: Nested functions are functions inside functions. They help you do complex tasks.
Lesson 12: Formula Auditing – Trace Precedents
Definition: Trace Precedents shows which cells affect the current cell.
Why it is important: It helps you understand and debug formulas.
Simple explanation: It is like following a trail of clues.
- Real‑life example: A manager traces precedents to find errors.
- School example: A student traces precedents to understand a formula.
- Home example: A parent traces precedents to check a budget.
- Nigerian example: A shop owner traces precedents to fix a sales formula.
How to trace precedents:
- Click the cell with the formula.
- Go to the Formulas tab.
- Click Trace Precedents.
- Arrows appear showing which cells affect the formula.
📌 Mini summary: Trace Precedents shows which cells are used in a formula. It helps you understand and fix errors.
Key Vocabulary
Formula: An equation that performs calculations.
Function: A pre‑made formula in Excel.
Logical Function: A function that makes decisions (IF, AND, OR).
Lookup Function: A function that finds data (XLOOKUP, VLOOKUP).
Financial Function: A function for financial calculations (PMT).
Statistical Function: A function that analyses data (SUMIFS, COUNTIFS).
Dynamic Array: A formula that returns multiple results.
Nested Function: A function inside another function.
Trace Precedents: A tool that shows which cells affect a formula.
Evaluate Formula: A tool that steps through a formula.
Important Concepts
- Formulas are equations that do calculations.
- Functions are pre‑made formulas that save time.
- Logical functions help you make decisions.
- Lookup functions help you find data.
- Financial functions help with money calculations.
- Statistical functions help you analyse data.
Step-by-Step Explanations
How to Use IF to Check a Condition
- Click on a cell.
- Type =IF(.
- Type the condition (e.g., A1>50).
- Type , then the value if true.
- Type , then the value if false.
- Type ) and press Enter.
How to Use XLOOKUP
- Click on a cell.
- Type =XLOOKUP(.
- Type the value to find.
- Type , then the range to search.
- Type , then the range to return.
- Type ) and press Enter.
Real-Life Examples
- In a business: A manager uses IF to check if sales are above target.
- In a school: A teacher uses VLOOKUP to find student grades.
- At home: A parent uses PMT to calculate a loan payment.
- In Nigeria: A shop owner uses SUMIFS to calculate total sales by region.
Nigerian Examples
- A bank in Lagos uses PMT to calculate loan payments.
- A school in Abuja uses VLOOKUP to find student records.
- A shop in Kano uses SUMIFS to calculate sales by product.
- A business in Enugu uses XLOOKUP to find supplier details.
Fun Examples Children Can Relate To
- Using IF to check if you have enough pocket money.
- Using VLOOKUP to find a friend's phone number.
- Using SUMIFS to add up all the money you earned from chores.
- Using COUNTIFS to count how many times you played your favourite game.
Everyday Examples
- Using IF to check if your expenses are under budget.
- Using VLOOKUP to find a contact's address.
- Using PMT to calculate a car loan payment.
- Using SUMIFS to add up all your shopping expenses.
Teacher Notes
- Emphasise the importance of understanding each function.
- Show students how to use the Insert Function dialog.
- Teach students to use the Formula Auditing tools.
- Encourage students to practise with real data.
Parent Tips
- Help your child practise using formulas with simple data.
- Show them how to use VLOOKUP to find information.
- Encourage them to use PMT to calculate savings.
- Teach them to use SUMIFS to add up their expenses.
Interesting Facts
- Excel has over 475 functions.
- VLOOKUP was introduced in 1985.
- XLOOKUP is newer and more powerful than VLOOKUP.
- Dynamic arrays were introduced in Excel 365.
Did You Know?
Did you know? You can use IF with AND and OR to check multiple conditions.
Did you know? XLOOKUP can search from the bottom to the top.
Did you know? You can use named ranges in formulas to make them easier to understand.
Remember This
- Formulas start with =.
- Functions are pre‑made formulas.
- IF helps you make decisions.
- XLOOKUP and VLOOKUP help you find data.
- PMT calculates loan payments.
- SUMIFS and COUNTIFS add and count with conditions.
Common Mistakes
- Forgetting the =: Formulas must start with =.
- Using the wrong range: Make sure your ranges are correct.
- Mixing up IF, AND, and OR: Use them correctly.
- Not using absolute references: Use $ to lock cells.
- Using VLOOKUP incorrectly: Make sure the lookup value is in the first column.
Best Practices
- Always start formulas with =.
- Use named ranges to make formulas easier to read.
- Use absolute references ($) when needed.
- Test your formulas with sample data.
- Use the Formula Auditing tools to check your work.
Comparison: VLOOKUP vs XLOOKUP
| Feature | VLOOKUP | XLOOKUP |
| Search direction | Only left to right | Any direction |
| Default match | Approximate | Exact |
| Flexibility | Less | More |
| Best for | Older workbooks | Newer workbooks |
Comparison: SUMIFS vs COUNTIFS
| Feature | SUMIFS | COUNTIFS |
| What it does | Adds numbers | Counts cells |
| Requires sum range | Yes | No |
| Conditions | Multiple | Multiple |
| Best for | Adding specific data | Counting specific data |
End-of-Module Summary
Congratulations! You have completed Module Three. You now know:
- How to use logical functions like IF, AND, and OR.
- How to use lookup functions like XLOOKUP and VLOOKUP.
- How to use date and time functions.
- How to use financial functions like PMT.
- How to use statistical functions like SUMIFS and COUNTIFS.
- How to use dynamic array formulas and nested functions.
You are now ready to move on to Module Four, where you will learn about formula auditing and troubleshooting.
Frequently Asked Questions
- What is a formula? An equation that does calculations.
- What is a function? A pre‑made formula.
- What does IF do? It checks a condition and returns a value.
- What is the difference between XLOOKUP and VLOOKUP? XLOOKUP is newer and more flexible.
- What does PMT do? It calculates loan payments.
- What does SUMIFS do? It adds numbers that meet conditions.
- What does COUNTIFS do? It counts cells that meet conditions.
- What is a dynamic array formula? It returns multiple results.
- What is a nested function? A function inside another function.
- What is Trace Precedents? It shows which cells affect a formula.
Review Questions
- What is a formula?
- What does IF do?
- What is the difference between AND and OR?
- What does XLOOKUP do?
- What does VLOOKUP do?
- What does PMT do?
- What does SUMIFS do?
- What does COUNTIFS do?
- What is a dynamic array formula?
- What is a nested function?
- What is Trace Precedents?
- Why are lookup functions useful?
- How can financial functions help you?
- How can statistical functions help you?
- What is the best practice for writing formulas?
Fill-in-the-Blank Exercises
- A __________ is an equation that does calculations.
- The __________ function checks a condition and returns a value.
- __________ checks if all conditions are true.
- __________ finds a value in a range and returns a corresponding value.
- __________ calculates loan payments.
- __________ adds numbers that meet conditions.
- __________ counts cells that meet conditions.
- A __________ array formula returns multiple results.
- A __________ function is a function inside another function.
- __________ Precedents shows which cells affect a formula.
True or False
- Formulas start with =. (True)
- IF cannot check multiple conditions. (False)
- AND checks if all conditions are true. (True)
- VLOOKUP is newer than XLOOKUP. (False)
- PMT calculates loan payments. (True)
- SUMIFS counts cells. (False)
- COUNTIFS adds numbers. (False)
- Dynamic array formulas return multiple results. (True)
- A nested function is a function inside a function. (True)
- Trace Precedents shows which cells affect a formula. (True)
Multiple Choice Questions
- What is a formula?
a) An equation b) A chart c) A table d) A macro
Answer: a
- What does IF do?
a) Checks a condition b) Adds numbers c) Counts cells d) Finds data
Answer: a
- What is the difference between AND and OR?
a) AND checks all; OR checks any b) AND checks any; OR checks all c) They are the same d) None
Answer: a
- What does XLOOKUP do?
a) Finds data b) Adds numbers c) Counts cells d) Makes decisions
Answer: a
- What does PMT do?
a) Calculates loan payments b) Adds numbers c) Counts cells d) Finds data
Answer: a
- What does SUMIFS do?
a) Adds numbers with conditions b) Counts cells with conditions c) Finds data d) Makes decisions
Answer: a
- What does COUNTIFS do?
a) Counts cells with conditions b) Adds numbers with conditions c) Finds data d) Makes decisions
Answer: a
- What is a dynamic array formula?
a) Returns multiple results b) Returns one result c) Adds numbers d) Counts cells
Answer: a
- What is a nested function?
a) A function inside a function b) A function that adds numbers c) A function that counts cells d) A function that finds data
Answer: a
- What is Trace Precedents?
a) Shows which cells affect a formula b) Adds numbers c) Counts cells d) Finds data
Answer: a
- Why are lookup functions useful?
a) They find data quickly b) They add numbers c) They count cells d) They make decisions
Answer: a
- How can financial functions help you?
a) They calculate money b) They add numbers c) They count cells d) They find data
Answer: a
- How can statistical functions help you?
a) They analyse data b) They find data c) They make decisions d) They calculate money
Answer: a
- What is the best practice for writing formulas?
a) Start with = b) Use many functions c) Avoid testing d) Ignore errors
Answer: a
- What is the difference between VLOOKUP and XLOOKUP?
a) XLOOKUP is newer b) VLOOKUP is newer c) They are the same d) None
Answer: a
Matching Exercises
Match the term on the left with its description on the right.
| Term | Description |
| 1. Formula | A. Checks a condition |
| 2. IF | B. An equation that does calculations |
| 3. XLOOKUP | C. Finds data in a range |
| 4. PMT | D. Calculates loan payments |
| 5. SUMIFS | E. Adds numbers with conditions |
Answers: 1-B, 2-A, 3-C, 4-D, 5-E
Short Answer Questions
- What is the difference between a formula and a function?
- How does IF work?
- What is the difference between XLOOKUP and VLOOKUP?
- What does PMT do and what are its arguments?
- What is the purpose of SUMIFS and COUNTIFS?
Scenario-Based Exercises
- Scenario: You have a list of sales. You want to check if each sale is above ₦50,000. What function would you use?
- Scenario: You need to find a product's price from a list. What function would you use?
- Scenario: You want to calculate a loan payment. What function would you use?
Group Activity
In groups of 3-4, create a workbook with sales data for 10 products. Use IF to check if sales are above target. Use VLOOKUP to find product details. Use SUMIFS to calculate total sales by region.
Individual Activity
Create a workbook with data about your favourite things. Use IF to make decisions. Use XLOOKUP to find information. Use SUMIFS to add up numbers.
Classroom Discussion Questions
- Why are formulas important in Excel?
- How can lookup functions help you in your daily life?
- What is your favourite function and why?
- How can financial functions help you plan for the future?
- What is the most challenging part of using formulas?
Mini Project
Project: "My Dream Business." Create a workbook with sales data for your business. Use IF to check sales targets. Use VLOOKUP to find product details. Use PMT to calculate a loan for your business.
Practical Assignment
Open Excel. Create a workbook with sales data for 10 products. Use IF, VLOOKUP, SUMIFS, and COUNTIFS. Save the workbook and submit it.
Challenge Exercise
Create a workbook with data from your school or community. Use nested functions, dynamic arrays, and formula auditing. Present your findings to the class.
Quiz Answers
Fill-in-the-Blank Answers:
- formula
- IF
- AND
- XLOOKUP
- PMT
- SUMIFS
- COUNTIFS
- dynamic
- nested
- Trace
True or False Answers: 1-T, 2-F, 3-T, 4-F, 5-T, 6-F, 7-F, 8-T, 9-T, 10-T
Key Takeaways
- Formulas are equations that do calculations.
- Functions are pre‑made formulas.
- IF helps you make decisions.
- Lookup functions help you find data.
- Financial functions help with money.
- Statistical functions help analyse data.
Preparation for the Next Module
In Module Four, you will learn about Formula Auditing and Troubleshooting. You will learn how to find and fix errors in your formulas. Keep practising what you learned in this module, and you will be ready for the next step.