๐ 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!
๐๐ป๐๐ฒ๐ฟ๐๐ถ๐ฒ๐๐ฒ๐ฟ:
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! ๐ช
๐ก Explanation:
This measure calculates the percentage growth in sales compared to the same period in the previous year.
โข
โข
โข
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)
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!
๐๐ป๐๐ฒ๐ฟ๐๐ถ๐ฒ๐๐ฒ๐ฟ:
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!
๐๐ป๐๐ฒ๐ฟ๐๐ถ๐ฒ๐๐ฒ๐ฟ:
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!
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! ๐ช
๐ก 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)
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!
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!
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! ๐ช
๐ก 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
๐ Bonus (Return the Employee Name with Highest Sales)
If you're using an older version of Excel:
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!
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!
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!
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 :)
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! ๐โค๏ธ
โข 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!
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!
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
๐ 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!
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!
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:
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
๐ 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!
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:
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! ๐ช
๐ก 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
๐ Bonus (Compatible with Older Excel Versions)
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!
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!
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!
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!
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