TGViewer
Data Analytics Data Analytics @sqlspecialist ยท 111K subscribers
Post #3033 3.17K
๐Ÿš€ Data Analyst Roadmap โ€” Part 4

๐Ÿ“Š Excel โ€” Level 3: Conditional Functions

Now that you understand basic Excel formulas, the next step is learning how to make Excel make decisions based on conditions.

This is a very important skill for Data Analysts because real-world questions are rarely just:



"What is the total?"



Instead, you'll get questions like:



"What are the total sales for the IT department?"

"How many employees earn more than โ‚น80,000?"

"What is the average sales for the North region?"

"Which employees achieved their target?"



To answer these questions, you need conditional functions.

1๏ธโƒฃ IF()

IF() is one of the most important Excel functions.

It allows Excel to make a decision.

Syntax

=IF(condition, value_if_true, value_if_false)

Think of it as:



If something is true โ†’ do this; otherwise โ†’ do that.



Example

Suppose sales are in B2.

You want to classify employees:

Sales โ‰ฅ 50,000 โ†’ High

Sales < 50,000 โ†’ Low

=IF(B2>=50000,"High","Low")

If B2 is:

75,000

Result: High

If B2 is:

35,000

Result: Low

2๏ธโƒฃ IF() in Real-World Data Analysis

Suppose you have:

Employee | Sales

John | 75,000

Sarah | 45,000

Mike | 90,000

David | 30,000

You can create a performance column:

=IF(B2>=50000,"Target Achieved","Target Not Achieved")

Result:

Employee | Sales | Status

John | 75,000 | Target Achieved

Sarah | 45,000 | Target Not Achieved

Mike | 90,000 | Target Achieved

David | 30,000 | Target Not Achieved

This is called data categorization.

3๏ธโƒฃ Multiple Conditions with Nested IF()

Sometimes you need more than two categories.

For example:

โ‰ฅ 80,000 โ†’ Excellent

โ‰ฅ 60,000 โ†’ Good

โ‰ฅ 40,000 โ†’ Average

< 40,000 โ†’ Poor

You can use:

=IF(B2>=80000,"Excellent",IF(B2>=60000,"Good",IF(B2>=40000,"Average","Poor")))

Excel checks the conditions from left to right.

Important: The order matters. You should generally check the highest threshold first.

4๏ธโƒฃ IFS()

IFS() is a cleaner alternative when you have multiple conditions.

=IFS(
B2>=80000,"Excellent",
B2>=60000,"Good",
B2>=40000,"Average",
TRUE,"Poor"
)


The first condition that evaluates to TRUE determines the result.

IF vs IFS

Use:

IF() โ†’ simple decisions

IFS() โ†’ multiple conditions

5๏ธโƒฃ AND()

AND() checks whether all conditions are true.

Example

You want to identify employees who:

Belong to IT AND earn more than โ‚น80,000

=AND(B2="IT",C2>80000)

Both conditions must be true.

6๏ธโƒฃ Combining IF() + AND()

This is more useful in real analysis.

=IF(AND(B2="IT",C2>80000),"Eligible","Not Eligible")

Meaning:



If the employee is from IT AND salary is greater than โ‚น80,000, return "Eligible".

Otherwise: "Not Eligible"



7๏ธโƒฃ OR()

OR() checks whether at least one condition is true.

Example:

You want to identify employees who belong to either:

IT OR Finance

=OR(B2="IT",B2="Finance")

If either condition is true, the result is TRUE.

8๏ธโƒฃ Combining IF() + OR()

=IF(
OR(B2="IT",B2="Finance"),
"Technical Department",
"Other"
)
More from @sqlspecialist
  1. Oct 7, 2026๐Ÿ“Š Kandinsky 6.0 Video: AI-Powered Content Creation for Analysts The new Kandinsky 6.0 Vidโ€ฆ
  2. Oct 7, 2026Alternatively, depending on the Excel version and requirement, I could use functions suchโ€ฆ
  3. Oct 7, 2026๐Ÿ“Š Data Analyst Interview Series โ€” Part 5 Guys, let's continue our Data Analyst Interviewโ€ฆ
  4. Oct 7, 2026๐Ÿš€๐—ฃ๐—ฎ๐˜† ๐—”๐—ณ๐˜๐—ฒ๐—ฟ ๐—ฃ๐—น๐—ฎ๐—ฐ๐—ฒ๐—บ๐—ฒ๐—ป๐˜ ๐—ง๐—ฟ๐—ฎ๐—ถ๐—ป๐—ถ๐—ป๐—ด | ๐—•๐—ฒ๐—ฐ๐—ผ๐—บ๐—ฒ ๐—ฎ ๐—™๐˜‚๐—น๐—น๐˜€๐˜๐—ฎ๐—ฐโ€ฆ
  5. Oct 7, 2026๐Ÿ”Ÿ What is the difference between UNION and JOIN? Sample Answer: "JOIN combines columns frโ€ฆ
  6. Oct 7, 2026๐Ÿ“Š Data Analyst Interview Series โ€” Part 4 Guys, let's continue our Data Analyst Interviewโ€ฆ
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’