Working...
1. Microsoft Excel – Working with Excel’s Conditional Functions
Conditional functions perform calculations or return values based on conditions.
Common conditional functions:
- IF()
- COUNTIF(), COUNTIFS()
- SUMIF(), SUMIFS()
- IFERROR()
- AND(), OR(), NOT()
These are widely used in reporting, validation, dashboards, and analysis.
2. Working with Excel Name Ranges
A Named Range assigns a meaningful name to a cell or range.
Example:
Instead of:
Copy code
Excel
=SUM(A1:A10)
Use:
Copy code
Excel
=SUM(Sales)
How to create a Named Range:
- Select the cells
- Go to Formulas → Define Name
- Enter the name (no spaces)
- Click OK
3. Advantages and Disadvantages of Excel Name Ranges
✅ Advantages
Improves readability of formulas
Easier maintenance
Reduces formula errors
Useful in complex models
Works well with conditional functions
❌ Disadvantages
Difficult to manage in very large workbooks
Hidden names can cause confusion
Not always intuitive for beginners
Broken references if ranges are deleted incorrectly
4. Editing an Excel Name Range
To edit a Named Range:
Go to Formulas → Name Manager
Select the name
Click Edit
Change range or name
Click OK
5. Using Excel’s IF() Function
The IF function returns one value if a condition is TRUE, another if FALSE.
Syntax:
Copy code
Excel
=IF(logical_test, value_if_true, value_if_false)
Example:
Copy code
Excel
=IF(A1>=50,"Pass","Fail")
6. Excel’s IF() Function with a Name Range
Assume:
Named Range: Score → A1
Copy code
Excel
=IF(Score>=60,"Qualified","Not Qualified")
This makes formulas easier to understand and reuse.
7. Nesting Functions with Excel
Nesting means using one function inside another.
Example:
Copy code
Excel
=IF(A1>=50, IF(A1>=75,"Distinction","Pass"),"Fail")
8. Nesting Excel’s AND() Function within the IF() Function
Use AND() when multiple conditions must be TRUE.
Syntax:
Copy code
Excel
=IF(AND(condition1, condition2), value_if_true, value_if_false)
Example:
Copy code
Excel
=IF(AND(A1>=50, B1="Yes"), "Eligible", "Not Eligible")
9. Using Excel’s COUNTIF() Function
Counts cells that meet one condition.
Syntax:
Copy code
Excel
=COUNTIF(range, criteria)
Example:
Copy code
Excel
=COUNTIF(A1:A20, ">=60")
Counts students scoring 60 or above.
10. Using Excel’s SUMIF() Function
Adds values that meet a specific condition.
Syntax:
Copy code
Excel
=SUMIF(range, criteria, [sum_range])
Example:
Copy code
Excel
=SUMIF(A1:A10,"Electronics",B1:B10)
Sums sales where category is Electronics.
11. Using Excel’s IFERROR() Function
Handles errors gracefully.
Syntax:
Copy code
Excel
=IFERROR(value, value_if_error)
Example:
Copy code
Excel
=IFERROR(A1/B1, 0)
Prevents #DIV/0! errors.
🔑 Practical Business Use Case
Copy code
Excel
=IFERROR(
IF(AND(Sales>=Target, Region="East"),"Bonus","No Bonus"),
"No Data")
This combines:
Named Ranges
IF()
AND()
IFERROR()




































