Data Analytics FULL Course 2026 with GenAI | Part 06

In Data Analytics FULL Course 2026 – Part 06, you learn one of the most important logical concepts in Excel β€” Conditions and Conjunctions.

These functions help you apply logic to data, automate decisions, clean errors, and build intelligent reports. Every data analyst uses these functions daily while working on dashboards, MIS reports, and real-world business problems.


What Are Conditions and Conjunctions in Excel?

In Excel:

  • Conditions check whether something is true or false
  • Conjunctions combine multiple conditions together

In this lecture, you learn 6 essential functions:

πŸ”Ή Conditional Functions

  1. IF
  2. IFS
  3. IFERROR

πŸ”Ή Conjunction (Logical) Functions

  1. AND
  2. OR
  3. NOT

If you understand these six functions well, you can solve 80% of real-world Excel logic problems.


IF Function – The Foundation of Excel Logic

What Does IF Do?

The IF function checks a condition and returns different results based on whether the condition is TRUE or FALSE.

Syntax:

=IF(condition, value_if_true, value_if_false)

Example:

Check exam result:

  • Pass if score β‰₯ 40
  • Fail if score < 40
=IF(D2>=40,"Pass","Fail")

πŸ“Œ Use cases of IF:

  • Pass/Fail logic
  • Eligibility checks
  • Simple decision making

IFS Function – Multiple Conditions in One Formula

When you have more than one condition, using multiple IFs becomes complex.
That’s where IFS comes in.

Syntax:

=IFS(condition1, result1, condition2, result2, ...)

Example: Grade Calculation

  • β‰₯ 80 β†’ A
  • β‰₯ 60 β†’ B
  • β‰₯ 40 β†’ C
  • < 40 β†’ Fail
=IFS(
D2>=80,"A",
D2>=60,"B",
D2>=40,"C",
D2<40,"Fail"
)

πŸ“Œ Important Rule:
IFS stops at the first TRUE condition, so order matters.


AND Function – All Conditions Must Be TRUE

The AND function returns TRUE only if all conditions are satisfied.

Syntax:

=AND(condition1, condition2, ...)

Example: Bonus Eligibility

Employee gets bonus if:

  • Department = Sales
  • Monthly Sales β‰₯ Target
  • Experience β‰₯ 2 years
=IF(
AND(C2="Sales",E2>=F2,D2>=2),
"Yes","No"
)

πŸ“Œ Use AND when:
Every condition must be true.


OR Function – Any One Condition Must Be TRUE

The OR function returns TRUE if at least one condition is satisfied.

Syntax:

=OR(condition1, condition2, ...)

Example: Training Requirement

Training needed if:

  • Exam score < 50 OR
  • Experience < 1 year
=IF(
OR(E2<50,D2<1),
"Yes","No"
)

πŸ“Œ Use OR when:
Only one condition needs to be true.


NOT Function – Reverse the Result

The NOT function reverses a logical result.

Example:

Check non-sales employees:

=IF(NOT(C2="Sales"),"True","False")

πŸ“Œ Note:
NOT is rarely used alone but helps in special logic cases.


IFERROR Function – Error Handling in Excel

In real datasets, formulas often produce errors like:

  • #DIV/0!
  • #N/A
  • #VALUE!

To handle this cleanly, we use IFERROR.

Syntax:

=IFERROR(value, value_if_error)

Example: Sales Ratio

=IFERROR(F2/E2,0)

If division causes an error, Excel shows 0 instead of error.

πŸ“Œ Common uses of IFERROR:

  • Dashboards
  • VLOOKUP / XLOOKUP
  • Ratio calculations
  • Clean reports

When to Use Which Function?

FunctionWhen to Use
IFSingle condition
IFSMultiple conditions
ANDAll conditions must be true
ORAny one condition must be true
NOTReverse logic
IFERRORHandle formula errors

Why These Functions Matter in Data Analytics

These logical functions help you:

  • Automate decisions
  • Build smart dashboards
  • Clean messy data
  • Replace manual checks
  • Apply SQL-like logic in Excel

They are heavily used in:

  • HR analytics
  • Sales analysis
  • Finance reports
  • Performance dashboards

What’s Coming Next?

In the next lecture, you’ll learn:

  • MATCH & INDEX
  • REGEXEXTRACT
  • REGEXMATCH
  • REGEXREPLACE
  • REGEXTEST

These functions will take your Excel skills to a data-cleaning and lookup expert level.


Download Dataset