Data Analytics
110K subscribers
246 photos
1 video
2 files
970 links
Perfect channel to learn Data Analytics

Learn SQL, Python, Alteryx, Tableau, Power BI and many more

For Promotions: @coderfun @love_data
Download Telegram
๐Ÿš€ Power BI Interview Challenge #2 ๐Ÿ”ฅ

๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ:
You have 2 minutes to solve this Power BI problem.

You have a Sales table with the columns: Order Date & Sales

Create a DAX measure to calculate Month-to-Date (MTD) Sales.

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช
MTD Sales =
TOTALMTD(
SUM(Sales[Sales]),
Sales[Order Date]
)

๐Ÿ’ก Explanation:
โ€ข TOTALMTD() calculates cumulative sales from the beginning of the current month up to the selected date.
โ€ข SUM(Sales) returns the total sales amount.
โ€ข Sales[Order Date] is the date column used for the MTD calculation.
โ€ข The measure automatically resets at the beginning of each new month.

๐ŸŽฏ Expected Output Example
Date | Sales | MTD Sales
Jul 1 | 2,000 | 2,000
Jul 2 | 3,500 | 5,500
Jul 3 | 1,500 | 7,000
Jul 4 | 4,000 | 11,000

๐Ÿš€ Bonus (Using a Calendar Table)
MTD Sales =
TOTALMTD(
[Total Sales],
'Calendar'[Date]
)

Using a dedicated Calendar table improves model performance and ensures accurate time intelligence calculations.

๐Ÿš€ Tip for Power BI Job Seekers:
Always create a proper Date Table and mark it as a Date Table in Power BI before using Time Intelligence functions. Many interview questions are designed to test this best practice.

Power BI Resources: https://whatsapp.com/channel/0029Vai1xKf1dAvuk6s1v22c

โค๏ธ React with โค๏ธ for more Power BI interview challenges!
โค9
๐Ÿš€ Power BI Interview Challenge #3 ๐Ÿ”ฅ

๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ:
You have 2 minutes to solve this Power BI problem.

You have a Sales table with the following columns:

โ€ข Order Date
โ€ข Sales

Create a DAX measure to calculate Year-over-Year (YoY) Sales Growth %.

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช

YoY Growth % =
VAR CurrentYearSales = [Total Sales]
VAR PreviousYearSales =
CALCULATE(
[Total Sales],
SAMEPERIODLASTYEAR('Calendar'[Date])
)
RETURN
DIVIDE(
CurrentYearSales - PreviousYearSales,
PreviousYearSales,
0
)


๐Ÿ’ก Explanation:

This measure calculates the percentage growth in sales compared to the same period in the previous year.

โ€ข CurrentYearSales stores the current period's sales.
โ€ข SAMEPERIODLASTYEAR() retrieves sales for the same period last year.
โ€ข DIVIDE() safely calculates the percentage growth and avoids divide-by-zero errors.

This challenge tests your understanding of:
โœ… Variables (VAR)
โœ… CALCULATE()
โœ… SAMEPERIODLASTYEAR()
โœ… DIVIDE()
โœ… Time Intelligence

๐ŸŽฏ Expected Output Example

For Year 2025: Sales = 120,000, Previous Year Sales = 100,000, YoY Growth % = 20%
For Year 2026: Sales = 150,000, Previous Year Sales = 120,000, YoY Growth % = 25%

๐Ÿš€ Bonus (YoY Sales Difference)

YoY Sales Difference =
[Total Sales] -
CALCULATE(
[Total Sales],
SAMEPERIODLASTYEAR('Calendar'[Date])
)


This measure returns the absolute increase or decrease in sales compared to the previous year.

๐Ÿš€ Tip for Power BI Job Seekers:

CALCULATE() is the most important DAX function. Learn how it modifies the filter context because it's used in almost every advanced Power BI interview question.

Power BI Resources: https://whatsapp.com/channel/0029Vai1xKf1dAvuk6s1v22c

โค๏ธ React with โค๏ธ for more Power BI interview challenges!
โค13
๐Ÿš€ Power BI Interview Challenge #4 ๐Ÿ”ฅ

๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ:
You have 2 minutes to solve this Power BI problem.

You have a Sales table with the following columns:
Product
Sales

Create a DAX measure to calculate the percentage contribution of each product to total sales.

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช

Sales Contribution % =
DIVIDE(
[Total Sales],
CALCULATE(
[Total Sales],
ALL(Sales[Product])
),
0
)

๐Ÿ’ก Explanation:
This measure calculates how much each product contributes to the total sales.
โ€ข [Total Sales] returns the sales for the current product.
โ€ข ALL(Sales) removes the product filter while keeping other filters intact.
โ€ข CALCULATE() recalculates the total sales after removing the product filter.
โ€ข DIVIDE() safely performs the division and avoids divide-by-zero errors.

This challenge tests your understanding of:
โœ… CALCULATE()
โœ… ALL()
โœ… DIVIDE()
โœ… Filter Context
โœ… Percentage Calculations

๐ŸŽฏ Expected Output Example
Product | Sales | Sales Contribution %
Laptop | 50,000 | 50%
Mouse | 20,000 | 20%
Keyboard | 15,000 | 15%
Monitor | 15,000 | 15%

๐Ÿš€ Bonus (Dynamic Percentage by Selected Filters)

Sales Contribution % =
DIVIDE(
[Total Sales],
CALCULATE(
[Total Sales],
ALLSELECTED(Sales[Product])
),
0
)

Using ALLSELECTED() respects slicers and page filters while removing only the product filter, making the measure more interactive.

๐Ÿš€ Tip for Power BI Job Seekers:
Understanding the difference between these functions is crucial for interviews:
โ€ข ALL() โ†’ Removes all filters from the specified column or table.
โ€ข ALLSELECTED() โ†’ Respects user selections made through slicers and filters.
โ€ข REMOVEFILTERS() โ†’ Modern alternative to remove filters in many scenarios.

These are among the most frequently asked DAX concepts in Power BI interviews.

Power BI Resources: https://whatsapp.com/channel/0029Vai1xKf1dAvuk6s1v22c

โค๏ธ React with โค๏ธ for more Power BI interview challenges!
โค14
๐Ÿ“ˆ ๐——๐—ฎ๐˜๐—ฎ ๐—”๐—ป๐—ฎ๐—น๐˜†๐˜๐—ถ๐—ฐ๐˜€ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐Ÿ˜

Data Analytics is one of the most in-demand skills in todayโ€™s job market ๐Ÿ’ป

โœ… Beginner Friendly
โœ… Industry-Relevant Curriculum
โœ… Certification Included
โœ… 100% Online

๐—˜๐—ป๐—ฟ๐—ผ๐—น๐—น ๐—™๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜๐Ÿ‘‡:- 

https://pdlink.in/4wh2ugB

๐ŸŽฏ Donโ€™t miss this opportunity to build high-demand skills!
๐Ÿ‘1
๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ:

You have 2 minutes to solve this Power BI problem.

You have a Sales table with the following columns:

Product

Sales

Create a DAX measure to rank products based on total sales, with the highest-selling product ranked as 1.

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช

Product Rank =
RANKX(
ALL(Sales[Product]),
[Total Sales],
,
DESC,
DENSE
)


๐Ÿ’ก Explanation:

โ€ข RANKX() assigns a rank to each product based on its total sales.

โ€ข ALL(Sales) removes the product filter so all products are included in the ranking.

โ€ข [Total Sales] is the expression used for ranking.

โ€ข DESC ranks the highest sales as Rank 1.

โ€ข DENSE ensures there are no gaps in ranking when products have the same sales.[Product]

This challenge tests your understanding of: โœ… RANKX()

โœ… ALL()

โœ… Ranking in DAX

โœ… Filter Context

๐ŸŽฏ Expected Output Example

Product: Laptop | Sales: 75,000 | Rank: 1

Product: Mobile | Sales: 68,000 | Rank: 2

Product: Monitor | Sales: 52,000 | Rank: 3

Product: Keyboard | Sales: 52,000 | Rank: 3

Product: Mouse | Sales: 40,000 | Rank: 4

๐Ÿš€ Bonus (Rank Within Selected Filters)

Product Rank =
RANKX(
ALLSELECTED(Sales[Product]),
[Total Sales],
,
DESC,
DENSE
)


Using ALLSELECTED() makes the ranking dynamic by considering the products visible after slicers and filters are applied.

๐Ÿš€ Tip for Power BI Job Seekers:

RANKX() is one of the most frequently asked DAX functions. Be comfortable using it for:

โ€ข Top N Products

โ€ข Customer Ranking

โ€ข Employee Performance Ranking

โ€ข Regional Sales Ranking

โ€ข Dynamic Leaderboards

React with โค๏ธ for more Power BI interview challenges!
โค12
๐Ÿš€ ๐—”๐—œ & ๐— ๐—ฎ๐—ฐ๐—ต๐—ถ๐—ป๐—ฒ ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป๐—ถ๐—ป๐—ด ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐Ÿ”ฅ

Learn the most in-demand AI skills from scratch and strengthen your profile with industry-recognized certificates! ๐ŸŽ“

โœ… Beginner-Friendly Courses
โœ… Learn Online at Your Own Pace
โœ… 100% FREE of cost

Perfect for Students, Freshers & Working Professionals looking to build a career in AI/ML. ๐Ÿ’ผ

๐—˜๐—ป๐—ฟ๐—ผ๐—น๐—น ๐—™๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜๐Ÿ‘‡:- 

https://pdlink.in/4phANS2

๐Ÿ“ข Share this with your friends who want to start their AI career!
๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ:

You have 2 minutes to solve this Excel problem.

You have the following data:

Employee | Sales

John | 12,000

Sarah | 18,000

Mike | 15,000

David | 20,000

How would you find the highest sales value using an Excel formula?

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช

=MAX(B2:B5)


๐Ÿ’ก Explanation:

The MAX() function returns the largest value from a range of cells.

B2:B5 is the range containing the sales values.

Excel scans the range and returns the highest number.

In this example, the result will be 20,000.

This challenge tests your understanding of:

โœ… Basic Excel Functions

โœ… MAX()

โœ… Working with Cell Ranges

๐ŸŽฏ Expected Output Example

Formula | Result

=MAX(B2:B5) | 20,000

๐Ÿš€ Bonus (Return the Employee Name with Highest Sales)

=XLOOKUP(MAX(B2:B5),B2:B5,A2:A5)


If you're using an older version of Excel:

=INDEX(A2:A5,MATCH(MAX(B2:B5),B2:B5,0))


These formulas return David, the employee with the highest sales.

๐Ÿš€ Tip for Excel Job Seekers:

The MAX() function is frequently combined with:

INDEX()

MATCH()

XLOOKUP()

FILTER()

Learning these combinations will help you solve many real-world Excel interview questions.

โค๏ธ React with โค๏ธ for more Excel interview challenges!
โค13
๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ:
You have 2 minutes to solve this Excel problem.

You have the following data:
Employee | Department | Salary
John | IT | 75,000
Sarah | HR | 60,000
Mike | IT | 82,000
David | Finance | 90,000
Alice | IT | 78,000

How would you calculate the total salary for the IT department?

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช
=SUMIF(B2:B6,"IT",C2:C6)

๐Ÿ’ก Explanation:
The SUMIF() function adds values based on a single condition.
โ€ข B2:B6 is the range containing department names.
โ€ข "IT" is the condition (criteria).
โ€ข C2:C6 is the range containing salary values to sum.

Excel adds only the salaries where the department is IT.

This challenge tests your understanding of: โœ… SUMIF()
โœ… Conditional Calculations
โœ… Data Analysis

๐ŸŽฏ Expected Output Example
Formula: =SUMIF(B2:B6,"IT",C2:C6)
Result: 235,000

(75,000 + 82,000 + 78,000 = 235,000)

๐Ÿš€ Bonus (Using a Cell Reference as Criteria)
=SUMIF(B2:B6,E2,C2:C6)
If cell E2 contains IT, the formula becomes dynamic and automatically updates when the department name changes.

๐Ÿš€ Tip for Excel Job Seekers:
SUMIF() is one of the most commonly asked Excel functions. Once you're comfortable with it, move on to:
SUMIFS()
COUNTIF()
COUNTIFS()
AVERAGEIF()
AVERAGEIFS()

These functions are widely used in reporting, dashboards, and data analysis interviews.

โค๏ธ React with โค๏ธ for more Excel interview challenges!
โค24๐Ÿ‘8
๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ:
You have 2 minutes to solve this Excel problem.

You have the following data:

Employee ID | Employee Name | Department
101 | John | IT
102 | Sarah | HR
103 | Mike | Finance
104 | David | Sales

How would you return the Employee Name for Employee ID 103?

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช

=XLOOKUP(103,A2:A5,B2:B5)

๐Ÿ’ก Explanation:
The XLOOKUP() function searches for a value in one column and returns the corresponding value from another column.
โ€ข 103 is the lookup value.
โ€ข A2:A5 is the lookup array containing Employee IDs.
โ€ข B2:B5 is the return array containing Employee Names.
The formula returns Mike.

This challenge tests your understanding of:
โœ… XLOOKUP()
โœ… Lookup Functions
โœ… Data Retrieval

๐ŸŽฏ Expected Output Example
Formula Result
=XLOOKUP(103,A2:A5,B2:B5) Mike

๐Ÿš€ Bonus (For Older Excel Versions)
=INDEX(B2:B5,MATCH(103,A2:A5,0))

Or you can use:
=VLOOKUP(103,A2:C5,2,FALSE)

While VLOOKUP() works, XLOOKUP() is more flexible because it can search both left and right, doesn't require a column index number, and handles missing values more effectively.

๐Ÿš€ Tip for Excel Job Seekers:
Lookup functions are among the most frequently asked Excel interview topics. Be comfortable with:
XLOOKUP()
VLOOKUP()
HLOOKUP()
INDEX() + MATCH()
XMATCH()

Knowing when to use each one can make a big difference in interviews.

โค๏ธ React with โค๏ธ for more interview challenges!
โค10
Top 10 Power BI interview questions with answers:

1. What are the key components of Power BI?

Solution:

Power Query: Data transformation and preparation.

Power Pivot: Data modeling.

Power View: Data visualization.

Power BI Service: Cloud-based sharing and collaboration.

Power BI Mobile: Mobile reports and dashboards.

2. What is DAX in Power BI?

Solution:
DAX (Data Analysis Expressions) is a formula language used in Power BI to create calculated columns, measures, and tables.
Example:

TotalSales = SUM(Sales[Amount])

3. What is the difference between a calculated column and a measure?

Solution:

Calculated Column: Computed row by row in the data model.

Measure: Computed at the aggregate level based on filters in a visualization.

4. How do you connect Power BI to a database?

Solution:

1. Open Power BI Desktop.


2. Go to Home > Get Data > Database (e.g., SQL Server).


3. Enter server and database details, then load or transform data.

5. What is the role of relationships in Power BI?

Solution:
Relationships define how tables in a data model are connected. Power BI uses relationships to filter and calculate data across multiple tables.

6. What are slicers in Power BI?

Solution:
Slicers are visual filters that allow users to interactively filter data in reports.
Example: A slicer for "Region" lets users view data specific to a selected region.

7. How do you implement Row-Level Security (RLS) in Power BI?

Solution:

1. Define roles in Modeling > Manage Roles.


2. Use DAX expressions to restrict data (e.g., [Region] = "North").


3. Assign roles to users in the Power BI Service.

8. What are the different types of joins in Power BI?

Solution:
Power BI offers the following join types in Power Query:

Inner Join

Left Outer Join

Right Outer Join

Full Outer Join

Anti Join (Left/Right Exclusion)

9. What is the difference between Power BI Pro and Power BI Premium?

Solution:

Power BI Pro: Allows sharing and collaboration for individual users.

Power BI Premium: Provides dedicated resources, larger dataset sizes, and supports enterprise-level usage.

10. How can you optimize Power BI reports for performance?

Solution:

- Use summarized datasets.

- Reduce visuals on a single page.

- Optimize DAX expressions.

- Enable aggregations for large datasets.

- Use query folding in Power Query.

Share with credits: https://xn--r1a.website/sqlspecialist

Hope it helps :)
โค11
If you want to Excel as a Data Analyst, master these powerful skills:

โ€ข SQL Queries โ€“ SELECT, JOINs, GROUP BY, CTEs, Window Functions
โ€ข Excel Functions โ€“ VLOOKUP, XLOOKUP, PIVOT TABLES, POWER QUERY
โ€ข Data Cleaning โ€“ Handle missing values, duplicates, and inconsistencies
โ€ข Python for Data Analysis โ€“ Pandas, NumPy, Matplotlib, Seaborn
โ€ข Data Visualization โ€“ Create dashboards in Power BI/Tableau
โ€ข Statistical Analysis โ€“ Hypothesis testing, correlation, regression
โ€ข ETL Process โ€“ Extract, Transform, Load data efficiently
โ€ข Business Acumen โ€“ Understand industry-specific KPIs
โ€ข A/B Testing โ€“ Data-driven decision-making
โ€ข Storytelling with Data โ€“ Present insights effectively

Like it if you need a complete tutorial on all these topics! ๐Ÿ‘โค๏ธ
โค27๐Ÿ‘12
๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ: 
You have 2 minutes to solve this Excel problem.

You have the following data:

Employee  Department  Salary 
John  IT 75,000 
Sarah  HR 60,000 
Mike  IT 82,000 
David  IT 78,000 
Alice   HR 65,000

How would you count the number of employees in the IT department?

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช

=COUNTIF(B2:B6,"IT")

๐Ÿ’ก Explanation: 
The COUNTIF() function counts the number of cells that meet a specific condition. 

โ€ข B2:B6 is the range containing department names.
โ€ข "IT" is the condition (criteria).
โ€ข Excel counts all rows where the department is IT.

This challenge tests your understanding of: 
โœ… COUNTIF() 
โœ… Conditional Counting 
โœ… Data Analysis

๐ŸŽฏ Expected Output Example 
Formula Result 
=COUNTIF(B2:B6,"IT") -> 3 
(John, Mike, and David belong to the IT department.)

๐Ÿš€ Bonus (Using a Cell Reference as Criteria) 
=COUNTIF(B2:B6,E2)

If cell E2 contains IT, the formula becomes dynamic and automatically updates when the value in E2 changes.

๐Ÿš€  COUNTIF() is one of the most commonly used Excel functions. After mastering it, practice: 
โ€ข COUNTIFS()
โ€ข SUMIF()
โ€ข SUMIFS()
โ€ข AVERAGEIF()
โ€ข AVERAGEIFS()

These functions are essential for reporting, dashboards, and Excel interviews.

โค๏ธ React with โค๏ธ for more interview challenges!
โค28๐ŸŽ‰1
โœ…SQL Roadmap: Step-by-Step Guide to Master SQL ๐Ÿง ๐Ÿ’ป

Whether you're aiming to be a backend dev, data analyst, or full-time SQL pro โ€” this roadmap has got you covered ๐Ÿ‘‡

๐Ÿ“ 1. SQL Basics
โฆ  SELECT, FROM, WHERE
โฆ  ORDER BY, LIMIT, DISTINCT 
   Learn data retrieval & filtering.

๐Ÿ“ 2. Joins Mastery
โฆ  INNER JOIN, LEFT/RIGHT/FULL OUTER JOIN
โฆ  SELF JOIN, CROSS JOIN 
   Master table relationships.

๐Ÿ“ 3. Aggregate Functions
โฆ  COUNT(), SUM(), AVG(), MIN(), MAX() 
   Key for reporting & analytics.

๐Ÿ“ 4. Grouping Data
โฆ  GROUP BY to group
โฆ  HAVING to filter groups 
   Example: Sales by region, top categories.

๐Ÿ“ 5. Subqueries & Nested Queries
โฆ  Use subqueries in WHERE, FROM, SELECT
โฆ  Use EXISTS, IN, ANY, ALL 
   Build complex logic without extra joins.

๐Ÿ“ 6. Data Modification
โฆ  INSERT INTO, UPDATE, DELETE
โฆ  MERGE (advanced) 
   Safely change dataset content.

๐Ÿ“ 7. Database Design Concepts
โฆ  Normalization (1NF to 3NF)
โฆ  Primary, Foreign, Unique Keys 
   Design scalable, clean DBs.

๐Ÿ“ 8. Indexing & Query Optimization
โฆ  Speed queries with indexes
โฆ  Use EXPLAIN, ANALYZE to tune 
   Vital for big data/enterprise work.

๐Ÿ“ 9. Stored Procedures & Functions
โฆ  Reusable logic, control flow (IF, CASE, LOOP) 
   Backend logic inside the DB.

๐Ÿ“ 10. Transactions & Locks
โฆ  ACID properties
โฆ  BEGIN, COMMIT, ROLLBACK
โฆ  Lock types (SHARED, EXCLUSIVE) 
   Prevent data corruption in concurrency.

๐Ÿ“ 11. Views & Triggers
โฆ  CREATE VIEW for abstraction
โฆ  TRIGGERS auto-run SQL on events 
   Automate & maintain logic.

๐Ÿ“ 12. Backup & Restore
โฆ  Backup/restore with tools (mysqldump, pg_dump) 
   Keep your data safe.

๐Ÿ“ 13. NoSQL Basics (Optional)
โฆ  Learn MongoDB, Redis basics
โฆ  Understand where SQL ends & NoSQL begins.

๐Ÿ“ 14. Real Projects & Practice
โฆ  Build projects: Employee DB, Sales Dashboard, Blogging System
โฆ  Practice on LeetCode, StrataScratch, HackerRank

๐Ÿ“ 15. Apply for SQL Dev Roles
โฆ  Tailor resume with projects & optimization skills
โฆ  Prepare for interviews with SQL challenges
โฆ  Know common business use cases

๐Ÿ’ก Pro Tip: Combine SQL with Python or Excel to boost your data career options.

๐Ÿ’ฌ Double Tap โ™ฅ๏ธ For More!
โค31
๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ:
You have 2 minutes to solve this Excel problem.

You have the following data:

Employee ID | Employee Name | Sales
--- | --- | ---
101 | John | 12,000
102 | Sarah | 18,000
103 | Mike | 15,000
104 | David | 20,000

How would you return "Yes" if an employee's sales are greater than or equal to 15,000, otherwise return "No"?

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช

=IF(C2>=15000,"Yes","No")

๐Ÿ’ก Explanation:

The IF() function checks whether a condition is true or false.

C2>=15000 checks if the sales value is at least 15,000.

If the condition is TRUE, Excel returns "Yes".

If the condition is FALSE, Excel returns "No".

๐ŸŽฏ Expected Output Example


+----------+--------+----------+
| Employee | Sales | Eligible |
+----------+--------+----------+
| John | 12,000 | No |
| Sarah | 18,000 | Yes |
| Mike | 15,000 | Yes |
| David | 20,000 | Yes |
+----------+--------+----------+


๐Ÿš€ Bonus (Using Nested IF)

=IF(C2>=20000,"Excellent", IF(C2>=15000,"Good","Needs Improvement"))

This formula categorizes employees into three performance levels:

โ€ข Excellent โ†’ Sales โ‰ฅ 20,000
โ€ข Good โ†’ Sales โ‰ฅ 15,000
โ€ข Needs Improvement โ†’ Sales < 15,000

๐Ÿš€ The IF() function is one of the most frequently asked Excel interview topics. Once you're comfortable with it, practice:

IFS()

IFERROR()

AND()

OR()

SWITCH()

These logical functions are widely used in reports, dashboards, and business decision-making.

โค๏ธ React with โค๏ธ for more Excel interview challenges!
โค25
๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ:
You have 2 minutes to solve this Excel problem.

You have the following data:

Employee | Department | Salary
John | IT | 75,000
Sarah | HR | 60,000
Mike | IT | 82,000
David | Finance | 90,000
Alice | HR | 65,000

How would you count the number of unique departments?

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช

=COUNTA(UNIQUE(B2:B6))

๐Ÿ’ก Explanation:
The UNIQUE() function extracts distinct department names, and COUNTA() counts how many unique values are returned.

UNIQUE(B2:B6) returns: IT, HR, Finance.
COUNTA() counts these unique values.

The result is the total number of unique departments.

This challenge tests your understanding of: โœ… UNIQUE()
โœ… COUNTA()
โœ… Dynamic Arrays
โœ… Data Analysis

๐ŸŽฏ Expected Output Example

Formula | Result
=COUNTA(UNIQUE(B2:B6)) | 3

(The unique departments are IT, HR, and Finance.)

๐Ÿš€ Bonus (For Older Excel Versions)
=SUMPRODUCT((B2:B6<>"")/COUNTIF(B2:B6,B2:B6))

This formula counts unique values without using the UNIQUE() function, making it compatible with older versions of Excel.

๐Ÿš€ Tip for Excel Job Seekers:
Modern Excel functions are becoming increasingly common in interviews. Be familiar with:

UNIQUE()
FILTER()
SORT()
SEQUENCE()
TEXTSPLIT()

These dynamic array functions simplify complex formulas and are widely used in Microsoft 365.

โค๏ธ React with โค๏ธ for more Excel interview challenges!
โค17
๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ: 
You have 2 minutes to solve this Excel problem.

You have the following data:
+----------+--------+
| Employee | Sales  |
+----------+--------+
| John     | 12,000 |
| Sarah    | 18,000 |
| Mike     | 15,000 |
| David    | 20,000 |
| Alice    | 10,000 |
+----------+--------+

How would you rank each employee based on their sales, with the highest sales getting Rank 1?

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช

=RANK(C2,C2:C6,0)

๐Ÿ’ก Explanation:

The RANK() function returns the rank of a number within a list.

โ€ข C2 is the sales value to rank.
โ€ข C2:C6 is the fixed range containing all sales values.
โ€ข 0 ranks values in descending order, so the highest sales receive Rank 1.
โ€ข Copy the formula down to rank all employees.

This challenge tests your understanding of: โœ… RANK() 
โœ… Relative & Absolute References 
โœ… Ranking Data 
โœ… Excel Formulas 

๐ŸŽฏ Expected Output Example
+----------+--------+------+
| Employee | Sales  | Rank |
+----------+--------+------+
| John     | 12,000 | 4    |
| Sarah    | 18,000 | 2    |
| Mike     | 15,000 | 3    |
| David    | 20,000 | 1    |
| Alice    | 10,000 | 5    |
+----------+--------+------+

๐Ÿš€ Bonus (Handle Duplicate Rankings)

=RANK.EQ(C2,C2:C6,0)

Or use:

=RANK.AVG(C2,C2:C6,0)

RANK.EQ() assigns the same rank to duplicate values. 
RANK.AVG() assigns the average rank to duplicate values.

๐Ÿš€ Be comfortable using:

โ€ข RANK()
โ€ข RANK.EQ()
โ€ข RANK.AVG()
โ€ข LARGE()
โ€ข SMALL()

These functions are frequently used in sales reports, leaderboards, and performance dashboards.

โค๏ธ React with โค๏ธ for more Excel interview challenges!
โค18
๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ:
You have 2 minutes to solve this Excel problem.

You have the following data:


+----------+--------+
| Employee | Sales |
+----------+--------+
| John | 12,000 |
| Sarah | 18,000 |
| Mike | 15,000 |
| David | 20,000 |
| Alice | 10,000 |
+----------+--------+


How would you return "High Performer" if sales are greater than or equal to 18,000, "Average Performer" if sales are between 12,000 and 17,999, otherwise return "Low Performer"?

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช

=IFS(
C2>=18000,"High Performer",
C2>=12000,"Average Performer",
TRUE,"Low Performer"
)


๐Ÿ’ก Explanation:
The IFS() function checks multiple conditions in sequence and returns the result for the first condition that evaluates to TRUE.

โ€ข If sales are 18,000 or more, it returns "High Performer".
โ€ข If sales are 12,000 or more, it returns "Average Performer".
โ€ข Otherwise, it returns "Low Performer".

This challenge tests your understanding of:
โœ… IFS()
โœ… Logical Functions
โœ… Multiple Conditions
โœ… Data Categorization

๐ŸŽฏ Expected Output Example


Employee: John
Sales: 12,000
Performance: Average Performer

Employee: Sarah
Sales: 18,000
Performance: High Performer

Employee: Mike
Sales: 15,000
Performance: Average Performer

Employee: David
Sales: 20,000
Performance: High Performer

Employee: Alice
Sales: 10,000
Performance: Low Performer


๐Ÿš€ Bonus (Compatible with Older Excel Versions)

=IF(C2>=18000,
"High Performer",
IF(C2>=12000,
"Average Performer",
"Low Performer"))


Nested IF() functions provide the same result and work in Excel versions that don't support IFS().

๐Ÿš€ Tip for Excel Job Seekers:
Logical functions are heavily used in reporting and dashboards. Make sure you're comfortable with:

โ€ข IF()
โ€ข IFS()
โ€ข AND()
โ€ข OR()
โ€ข IFERROR()

โค๏ธ React with โค๏ธ for more Excel interview challenges!
โค23
๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ:
You have 2 minutes to solve this Excel problem.

You have the following data:

Employee: Joining Date
John: 15-Jan-2022
Sarah: 20-Mar-2021
Mike: 10-Jul-2023
David: 05-Nov-2020

How would you calculate the number of years each employee has worked in the company?

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช

Formula:
=DATEDIF(B2,TODAY(),"Y")

๐Ÿ’ก Explanation:
The DATEDIF() function calculates the difference between two dates.
B2 is the employee's joining date.
TODAY() returns the current date.
"Y" returns the number of completed years between the two dates.

Copy the formula down to calculate the years of service for all employees.

This challenge tests your understanding of:
โœ… DATEDIF()
โœ… TODAY()
โœ… Date Functions
โœ… Employee Tenure Calculation

๐ŸŽฏ Expected Output Example

Employee: Joining Date: Years of Service
John: 15-Jan-2022: 4
Sarah: 20-Mar-2021: 5
Mike: 10-Jul-2023: 3
David: 05-Nov-2020: 5

Results will change automatically as time passes because TODAY() is dynamic.

๐Ÿš€ Bonus: Calculate Complete Years and Months
=DATEDIF(B2,TODAY(),"Y")&" Years "&DATEDIF(B2,TODAY(),"YM")&" Months"

Example Output:
4 Years 6 Months
2 Years 3 Months

๐Ÿš€ Tip for Excel Job Seekers:
Date functions are commonly asked in Excel interviews. Make sure you're comfortable with:
TODAY(), NOW(), DATEDIF(), EDATE(), EOMONTH(), YEAR(), MONTH(), DAY()

These functions are widely used in HR, finance, payroll, and reporting.

โค๏ธ React with โค๏ธ for more Excel interview challenges!
โค19๐Ÿฅฐ3
๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ:
You have 2 minutes to solve this Excel problem.

You have the following data:
Employee | Salary
John | 75,000
Sarah | 60,000
Mike | 82,000
David | 90,000
Alice | 65,000

How would you return the second highest salary?

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช

=LARGE(B2:B6,2)

๐Ÿ’ก Explanation:
The LARGE() function returns the Nth largest value from a range.
B2:B6 is the range containing salary values.
2 tells Excel to return the second largest value.
In this example, the result is 82,000.

This challenge tests your understanding of:
โœ… LARGE()
โœ… Ranking Values
โœ… Statistical Functions

๐ŸŽฏ Expected Output Example
Formula: =LARGE(B2:B6,2) | Result: 82,000

๐Ÿš€ Bonus: Return the Employee Name with the Second Highest Salary
For Microsoft 365 / Excel 2021:
=XLOOKUP(LARGE(B2:B6,2),B2:B6,A2:A6)

For older versions of Excel:
=INDEX(A2:A6,MATCH(LARGE(B2:B6,2),B2:B6,0))

These formulas return Mike, who has the second highest salary.

๐Ÿš€ Tip for Excel Job Seekers:
Interviewers often ask questions involving the Nth highest or Nth lowest value. Make sure you're comfortable with:
โ€ข LARGE()
โ€ข SMALL()
โ€ข RANK()
โ€ข SORT()
โ€ข FILTER()

These functions are frequently used in dashboards, reports, and data analysis tasks.

โค๏ธ React with โค๏ธ for more Excel interview challenges!
โค12๐Ÿ”ฅ4
๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ:
You have 2 minutes to solve this Excel problem.

You have the following data:

Employee Department Salary

John IT 75,000
Sarah HR 60,000
Mike IT 82,000
David Finance 90,000
Alice HR 65,000

How would you calculate the highest salary in each department?

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช

For Excel 365 / Excel 2021:

=MAXIFS(C2:C6,B2:B6,E2)

(Assume cell E2 contains the department name, such as IT.)

๐Ÿ’ก Explanation:

The MAXIFS() function returns the maximum value that meets one or more conditions.

C2:C6 is the salary range.

B2:B6 is the department range.

E2 contains the department to search for.

Excel returns the highest salary for the selected department.


This challenge tests your understanding of: โœ… MAXIFS()
โœ… Conditional Functions
โœ… Data Analysis

๐ŸŽฏ Expected Output Example

Department Highest Salary

IT 82,000
HR 65,000
Finance 90,000


๐Ÿš€ Bonus (For Older Excel Versions)

=MAX(IF(B2:B6=E2,C2:C6))

Note: In older Excel versions, confirm this as an array formula by pressing Ctrl + Shift + Enter instead of just Enter.

๐Ÿš€ Tip for Excel Job Seekers:

The MAXIFS() and MINIFS() functions are frequently used in business reporting. Make sure you also practice:

SUMIFS()

COUNTIFS()

AVERAGEIFS()

MAXIFS()

MINIFS()


These are among the most commonly tested Excel functions in interviews and are essential for real-world reporting and dashboard creation.

โค๏ธ React with โค๏ธ for more Excel interview challenges!
โค15