<DataInsights />
  • 🏠 Home
  • 📊 SQL
  • 🐍 Python
  • 📈 Power BI
  • 📗 Excel
  • 💼 Career
  • 🎯 Interview Q&A
  • 📁 Case Study
  • 📥 Downloads
  • 🚀 My Portfolio
<DataInsights />

Practical Data Analytics tutorials covering SQL, Python, Power BI, Excel and career guidance for aspiring analysts — 100% free.

Topics

  • SQL Tutorials
  • Python Guide
  • Power BI
  • Excel Tips
  • Career Guide

Quick Links

  • 🛠️ All Tools
  • 🗓️ Archive
  • 📬 Contact
  • 🔍 Search
  • Portfolio
  • Kaggle
  • GitHub

Legal & Info

  • About
  • Contact
  • Privacy Policy
  • Disclaimer
  • Terms & Conditions
  • DMCA
  • Sitemap
Copyright © 2026 Data Insights by Jatin Kumar. All Rights Reserved.Built with ❤️ for Data Analysts
Home/Interview Q&A/Excel Intermediate interview questions...

Excel Intermediate interview questions

A
August 18, 2026 Jatin Kumar 31 min read Interview Q&A
Data Insights Excel — Interview Preparation (Intermediate)

Excel Intermediate Interview Questions 🟡

Top 30 intermediate Excel interview questions — INDEX-MATCH, XLOOKUP, SUMIFS, COUNTIFS, Pivot Tables, Nested IF, IFS, Named Ranges, Date & Text functions, Conditional Formatting with formulas, aur Data Validation advanced. Real formula examples with sample data tables. Data Insights par.

📑 Is Blog Mein Kya Sikhenge:

  • 🟡 Q1–Q6: Lookup Functions — INDEX-MATCH, XLOOKUP, HLOOKUP
  • 🟡 Q7–Q12: Conditional Functions — SUMIFS, COUNTIFS, AVERAGEIFS, Nested IF, IFS
  • 🟡 Q13–Q18: Pivot Tables & Charts
  • 🟡 Q19–Q24: Date & Text Functions — DATEDIF, NETWORKDAYS, SUBSTITUTE
  • 🟡 Q25–Q30: Named Ranges, Advanced Data Validation & Conditional Formatting
  • 💡 Pro Tips: Interview mein exactly kya bolna chahiye

📊 Sample Data — Is Blog Ke Formula Examples Isi Par Based Hain

EmpID Name Department Salary Joining Date Sales Region
101AaravIT5500001-Jan-202185000North
102IshitaHR7200015-Mar-202092000South
103KabirFinance6500022-Jul-201945000East
104DiyaIT5800010-Nov-202278000North
105RohanMarketing8000005-Jun-201865000West
106MeeraHR4800018-Sep-202352000South
107ArjunFinance7000028-Feb-202188000East
108KavyaMarketing6200014-Aug-202271000West
💡 Note: Region column (G) is blog ke liye add kiya hai — SUMIFS, COUNTIFS ke multi-criteria examples ke liye. EmpID=A, Name=B, Department=C, Salary=D, Joining Date=E, Sales=F, Region=G. Data Row 2 se start hota hai.

🟡 Category 1: Lookup Functions (Q1–Q6)

Q1: What is INDEX-MATCH and why is it better than VLOOKUP?
Answer: INDEX-MATCH is a combination of two functions — INDEX returns a value from a specific position in a range, and MATCH finds the position of a lookup value in a range. Combined: =INDEX(return_range, MATCH(lookup_value, lookup_range, 0)). Advantages over VLOOKUP: (1) Can look up to the left (VLOOKUP cannot). (2) Does not break when columns are inserted/deleted (no column index number). (3) Faster on large datasets. (4) More flexible — works with rows and columns both.
🎯 Explain: VLOOKUP sirf left se right dekh sakta hai aur column number hardcode karna padta hai — columns insert karo toh formula break ho jaata hai. INDEX-MATCH mein: MATCH lookup value ka position dhundhta hai, INDEX us position se value laata hai. Left lookup bhi kar sakte ho — Name se EmpID nikalo — VLOOKUP mein impossible, INDEX-MATCH mein easy. Interview mein "I prefer INDEX-MATCH over VLOOKUP for flexibility and reliability" — yeh line impressive hai.

# INDEX-MATCH: Find Name of EmpID 104
=INDEX(B2:B9, MATCH(104, A2:A9, 0))
# MATCH finds 104 at position 3 in A2:A9
# INDEX returns 3rd value from B2:B9 → Diya

# LEFT LOOKUP: Find EmpID by Name "Rohan"
=INDEX(A2:A9, MATCH("Rohan", B2:B9, 0))
# Result: 105 — VLOOKUP can't do this!

# Find Salary of "Kabir"
=INDEX(D2:D9, MATCH("Kabir", B2:B9, 0))
# Result: 65000

Q2: What is XLOOKUP and how does it compare with VLOOKUP and INDEX-MATCH?
Answer: XLOOKUP (Excel 2021/365+) is the modern replacement for VLOOKUP, HLOOKUP, and even INDEX-MATCH. Syntax: =XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode]). Advantages: (1) Searches any direction — left, right, vertical, horizontal. (2) Exact match is the default — no need for FALSE. (3) Built-in error handling with if_not_found parameter. (4) Supports reverse search, wildcard matching, and binary search. (5) Cleaner, simpler syntax than INDEX-MATCH.
🎯 Explain: XLOOKUP sab ka baap hai — VLOOKUP, HLOOKUP, INDEX-MATCH sab ka kaam ek function se ho jaata hai. Exact match default hai — FALSE likhne ki zaroorat nahi. Error handling built-in — IFERROR ki zaroorat nahi. Left lookup, right lookup, horizontal — sab karta hai. Lekin sirf Excel 2021 aur 365 mein available hai — purane versions mein nahi. Interview mein "XLOOKUP is my preferred function in Excel 365, but I know INDEX-MATCH for compatibility with older versions" — dono ka knowledge dikhao.

# XLOOKUP: Find Name of EmpID 103
=XLOOKUP(103, A2:A9, B2:B9, "Not Found")
# Result: Kabir

# XLOOKUP: Left Lookup — Find EmpID by Name
=XLOOKUP("Ishita", B2:B9, A2:A9, "Not Found")
# Result: 102

# XLOOKUP with error handling built-in
=XLOOKUP(999, A2:A9, B2:B9, "Employee Not Found")
# Result: Employee Not Found — no IFERROR needed!

Q3: What is the difference between VLOOKUP and HLOOKUP?
Answer: VLOOKUP (Vertical Lookup) searches for a value in the first column of a table and returns a value from a specified column in the same row — data is arranged vertically (in columns). HLOOKUP (Horizontal Lookup) searches for a value in the first row of a table and returns a value from a specified row in the same column — data is arranged horizontally (in rows). VLOOKUP is far more commonly used because most data is organized vertically. HLOOKUP is used in matrix-style data like quarterly reports or cross-tab summaries.
🎯 Explain: VLOOKUP = Vertical — data columns mein hai — first column mein search, right ki taraf value return. HLOOKUP = Horizontal — data rows mein hai — first row mein search, neeche ki taraf value return. Real life mein 95% data vertical hota hai — isliye VLOOKUP zyada common hai. HLOOKUP sirf matrix/cross-tab data mein — jaise products top row mein hain aur quarterly sales neeche rows mein. Interview mein "VLOOKUP for vertical data, HLOOKUP for horizontal — both replaced by XLOOKUP in modern Excel."

Q4: What is the MATCH function and its match types?
Answer: MATCH returns the relative position of a value within a range. Syntax: =MATCH(lookup_value, lookup_array, [match_type]). Match types: 0 = exact match (most common), 1 = largest value less than or equal (data must be ascending), -1 = smallest value greater than or equal (data must be descending). MATCH does not return the value itself — only the position number. It is typically used with INDEX to create flexible lookup formulas.
🎯 Explain: MATCH sirf position batata hai — value nahi. =MATCH("Kabir", B2:B9, 0) → 3 (Kabir 3rd position pe hai B2:B9 mein). Match type 0 = exact match — sabse zyada use hota hai. 1 aur -1 approximate match ke liye — sorted data chahiye. MATCH akela kam use hota hai — INDEX ke saath combine karke powerful lookup banta hai. Interview mein MATCH ka use case INDEX-MATCH ke context mein samjhao.

Q5: How do you perform a two-way lookup (row and column lookup)?
Answer: A two-way lookup finds a value at the intersection of a specific row and column. Using INDEX-MATCH-MATCH: =INDEX(data_range, MATCH(row_value, row_range, 0), MATCH(column_value, column_range, 0)). The first MATCH finds the row position, the second MATCH finds the column position, and INDEX returns the value at that intersection. This is useful for matrix lookups like finding a specific product's sales in a specific quarter.
🎯 Explain: Two-way lookup = row bhi dhundho, column bhi dhundho — intersection pe value lo. Maan lo ek matrix hai — Products rows mein, Quarters columns mein. "Laptop" ki "Q3" sales chahiye — row mein MATCH "Laptop", column mein MATCH "Q3", INDEX dono positions se value return karega. INDEX-MATCH-MATCH pattern — interview mein bahut impressive lagta hai jab yeh formula likhke dikhao.

Q6: What is the CHOOSE function in Excel?
Answer: CHOOSE returns a value from a list of values based on an index number. Syntax: =CHOOSE(index_num, value1, value2, value3...). If index_num is 1, it returns value1; if 2, returns value2, and so on. Maximum 254 values supported. CHOOSE is useful for converting numbers to text labels (1="Jan", 2="Feb"), rating conversions (1="Poor", 2="Average", 3="Good"), and creating dynamic formulas. It is simpler than nested IF for sequential number-to-value mapping.
🎯 Explain: CHOOSE = number do, corresponding value lo. =CHOOSE(2, "Red", "Blue", "Green") → "Blue" (2nd value). Month number se month name: =CHOOSE(MONTH(E2), "Jan","Feb","Mar"...). Rating system: =CHOOSE(A2, "Poor","Average","Good","Excellent"). Nested IF se clean hai jab sequential numbers ka mapping karna ho. Interview mein "CHOOSE is cleaner than nested IF for index-based value mapping" — smart comparison dikhao.

💡 Pro Tip: Lookup functions ka question aaye toh structured comparison do: "VLOOKUP is basic but limited — right-only lookup, column index breaks. INDEX-MATCH is flexible — left lookup, no column dependency. XLOOKUP is the modern solution — built-in error handling, exact match default, works any direction. I use XLOOKUP in Excel 365 and INDEX-MATCH for backward compatibility." Teeno ka knowledge ek answer mein — complete impression.

🟡 Category 2: Conditional Functions (Q7–Q12)

Q7: What is the difference between SUMIF and SUMIFS?
Answer: SUMIF sums values based on a single condition. SUMIFS sums values based on multiple conditions simultaneously. Syntax difference: SUMIF(range, criteria, [sum_range]) — criteria range comes first. SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2...) — sum_range comes first. SUMIFS is more powerful and should be preferred even for single conditions as it supports multiple criteria. Both support wildcards (* and ?) for partial matching.
🎯 Explain: SUMIF = ek condition. SUMIFS = multiple conditions. SUMIF mein sum_range last mein optional hai, SUMIFS mein sum_range pehle aata hai — syntax ka order alag hai. IT department ki North region ki total salary chahiye — 2 conditions — SUMIFS use karo. Best practice: hamesha SUMIFS use karo chahe ek condition ho — consistent aur powerful.

# SUMIF — Single condition: Total salary of IT
=SUMIF(C2:C9, "IT", D2:D9)
# Result: 113000 (55000 + 58000)

# SUMIFS — Multiple conditions: IT + North salary
=SUMIFS(D2:D9, C2:C9, "IT", G2:G9, "North")
# Result: 113000 (both IT employees are in North)

# SUMIFS — HR + salary > 50000
=SUMIFS(D2:D9, C2:C9, "HR", D2:D9, ">50000")
# Result: 72000 (only Ishita — Meera is 48000)

# SUMIFS — Sales of Finance in East region
=SUMIFS(F2:F9, C2:C9, "Finance", G2:G9, "East")
# Result: 133000 (45000 + 88000)

Q8: How does COUNTIFS work with multiple criteria?
Answer: COUNTIFS counts cells that meet multiple conditions simultaneously. Syntax: =COUNTIFS(criteria_range1, criteria1, criteria_range2, criteria2...). Each criteria_range-criteria pair adds an AND condition. All conditions must be TRUE for a row to be counted. COUNTIFS supports operators (>, <, >=, <=, <>), wildcards (* ?), and cell references as criteria.
🎯 Explain: COUNTIFS = multiple conditions ke saath count karo. IT department mein kitne log North region mein hain? =COUNTIFS(C2:C9,"IT",G2:G9,"North"). Salary > 60000 aur Sales > 70000 wale kitne? =COUNTIFS(D2:D9,">60000",F2:F9,">70000"). Saari conditions AND logic se kaam karti hain — sab conditions TRUE honi chahiye.

# Count IT employees in North
=COUNTIFS(C2:C9, "IT", G2:G9, "North")
# Result: 2 (Aarav and Diya)

# Count employees with Salary > 60000 AND Sales > 70000
=COUNTIFS(D2:D9, ">60000", F2:F9, ">70000")
# Result: 3 (Ishita, Rohan, Arjun — check both conditions)

Q9: What is AVERAGEIFS function?
Answer: AVERAGEIFS calculates the average of values that meet multiple conditions. Syntax: =AVERAGEIFS(average_range, criteria_range1, criteria1, criteria_range2, criteria2...). Works exactly like SUMIFS but returns the average instead of sum. It is useful for department-wise average salary, region-wise average sales, or filtered average calculations in MIS reports.
🎯 Explain: AVERAGEIFS = multiple conditions ke saath average. IT department ki average salary = AVERAGEIFS(D2:D9, C2:C9, "IT"). North region mein salary > 50000 walo ki average salary = AVERAGEIFS(D2:D9, G2:G9, "North", D2:D9, ">50000"). Same syntax as SUMIFS — pehle average_range, phir condition pairs.

# Average salary of IT department
=AVERAGEIFS(D2:D9, C2:C9, "IT")
# Result: 56500 ((55000+58000)/2)

# Average sales of East region employees
=AVERAGEIFS(F2:F9, G2:G9, "East")
# Result: 66500 ((45000+88000)/2)

Q10: How do Nested IF functions work?
Answer: Nested IF means placing one IF function inside another to check multiple conditions sequentially. Each IF checks a condition — if FALSE, it passes to the next IF. Used for grading systems, salary brackets, and multi-tier categorization. Maximum 64 nested IFs allowed but practical limit is 4-5 for readability. Conditions must be ordered from highest to lowest (or most specific to general) to avoid logic errors.
🎯 Explain: Nested IF = IF ke andar IF. Grade system: >=90 toh A, >=80 toh B, >=70 toh C, warna D. 4 conditions = 4 IFs nested. Problem: brackets ka nightmare — 5 conditions = 4 closing brackets. Readability poor hoti hai. Modern solution: IFS function (Excel 2019+). Interview mein Nested IF ka example dikhao aur IFS as better alternative bhi batao.

# Nested IF: Salary bracket categorization
=IF(D2 >= 75000, "Executive",
  IF(D2 >= 60000, "Senior",
    IF(D2 >= 45000, "Mid-Level", "Junior")))
# Aarav (55000) → Mid-Level
# Rohan (80000) → Executive
# Meera (48000) → Mid-Level

Q11: What is the IFS function and how is it better than Nested IF?
Answer: IFS (Excel 2019/365+) checks multiple conditions in sequence and returns the value corresponding to the first TRUE condition. Syntax: =IFS(condition1, value1, condition2, value2, ..., TRUE, default_value). No nesting required — conditions are listed as pairs. Advantages: cleaner syntax, easier to read and maintain, up to 127 condition-value pairs, TRUE as last condition acts as default. IFS replaces ugly nested IFs with elegant one-line formulas.
🎯 Explain: IFS = Nested IF ka modern replacement. Condition-value pairs mein likho — pehli TRUE condition win karti hai. =IFS(D2>=75000,"Executive", D2>=60000,"Senior", D2>=45000,"Mid-Level", TRUE,"Junior"). TRUE as last = default value (else jaisa). Koi nesting nahi, brackets ka drama nahi. Interview mein "I use IFS for 3+ conditions in Excel 365 and Nested IF for older version compatibility" — dono ka knowledge dikhao.

# IFS: Same salary bracket — CLEAN syntax
=IFS(D2 >= 75000, "Executive",
     D2 >= 60000, "Senior",
     D2 >= 45000, "Mid-Level",
     TRUE, "Junior")
# Same result, much cleaner!

Q12: What is the SWITCH function?
Answer: SWITCH (Excel 2019/365+) evaluates an expression against a list of values and returns the result corresponding to the first matching value. Syntax: =SWITCH(expression, value1, result1, value2, result2, ..., [default]). Unlike IFS which evaluates conditions (comparisons), SWITCH matches exact values — perfect for department codes, status codes, rating numbers. Cleaner than nested IF for exact value matching scenarios.
🎯 Explain: SWITCH = exact value matching. Department code 1="IT", 2="HR", 3="Finance" → SWITCH(A2, 1,"IT", 2,"HR", 3,"Finance", "Unknown"). IFS range conditions (>, <) ke liye, SWITCH exact values ke liye. Interview mein "SWITCH for exact matches, IFS for range conditions" — clear difference batao.

# SWITCH: Department code to name
=SWITCH(C2,
  "IT", "Information Technology",
  "HR", "Human Resources",
  "Finance", "Finance & Accounts",
  "Other Department")
# IT → Information Technology
# Marketing → Other Department (default)
💡 Pro Tip: SUMIFS/COUNTIFS ka question aaye toh multi-criteria example do: "SUMIFS with Department=IT AND Region=North gives filtered salary total. I always use SUMIFS even for single criteria because the syntax is consistent with multi-criteria scenarios." Nested IF vs IFS ke liye: "For 3+ conditions in Excel 365, I prefer IFS — cleaner, no bracket nesting. For exact value mapping, I use SWITCH instead of multiple IFs." Yeh structured comparison interviewer ko bahut pasand aati hai.

🟡 Category 3: Pivot Tables & Charts (Q13–Q18)

Q13: What is a Pivot Table and why is it important?
Answer: A Pivot Table is an interactive data summarization tool that allows you to reorganize, group, filter, and aggregate large datasets without modifying the original data. You can drag and drop fields into Rows, Columns, Values, and Filters areas to create custom summaries instantly. Pivot Tables can show totals, averages, counts, percentages, and running totals. They are the most powerful feature in Excel for data analysis and are expected knowledge in any data-related interview.
🎯 Explain: Pivot Table = data ka summary ek click mein. 10,000 rows ka data hai — department-wise total salary chahiye? Pivot Table banao — Department ko Rows mein dalo, Salary ko Values mein — done! Drag-drop se kaam hota hai. Rows, Columns, Values, Filters — 4 areas hain. Original data change nahi hota. Grouping, sorting, filtering sab possible hai. Interview mein "Pivot Tables are my go-to tool for quick data summarization" — yeh practical answer do.

Q14: How do you create a Pivot Table? What are its four areas?
Answer: To create: Select data range → Insert tab → PivotTable → Choose location (New/Existing Worksheet) → OK. Four areas: (1) Rows — fields that appear as row labels (categories like Department, Region). (2) Columns — fields that appear as column headers (like Year, Quarter). (3) Values — fields that get aggregated (SUM, COUNT, AVERAGE of Salary, Sales). (4) Filters — fields that filter the entire Pivot Table (like selecting specific Region). Drag fields between areas to reshape the summary instantly.
🎯 Explain: Step 1: Data select karo (headers included). Step 2: Insert → PivotTable. Step 3: Fields drag karo — Department ko Rows mein, Salary ko Values mein. Automatically SUM of Salary department-wise dikhega. Region ko Columns mein dalo — matrix ban jayega. Year ko Filters mein dalo — dropdown se year filter karo. Sab drag-drop hai — formula likhne ki zaroorat nahi. Interview mein 4 areas yaad rakho: Rows, Columns, Values, Filters.

Q15: What is a Calculated Field in a Pivot Table?
Answer: A Calculated Field is a custom formula-based field created within a Pivot Table that performs calculations using other Pivot Table fields. It is accessed from PivotTable Analyze tab → Fields, Items & Sets → Calculated Field. Example: creating a "Bonus" field as =Salary*0.10 or a "Profit Margin" as =Profit/Revenue. Calculated Fields appear as additional columns in the Values area. They are useful when the source data does not contain the derived metric you need.
🎯 Explain: Calculated Field = Pivot Table ke andar custom formula. Source data mein "Bonus" column nahi hai — but Salary column hai. Calculated Field banao: Bonus = Salary * 0.10. Ab Pivot Table mein Bonus column automatically dikhega — department-wise, region-wise sab summaries mein. Source data modify nahi karna padta — Pivot ke andar hi naya field ban jaata hai. Interview mein "I create Calculated Fields for derived metrics like profit margins and growth rates" — practical use case do.

Q16: What is a Pivot Chart?
Answer: A Pivot Chart is a graphical representation of Pivot Table data. It is dynamically linked to the Pivot Table — when you filter, sort, or rearrange the Pivot Table, the chart updates automatically. Created by selecting a Pivot Table → Insert → PivotChart. Pivot Charts include interactive filter buttons directly on the chart for quick filtering. They support all standard chart types — bar, column, line, pie, etc. Pivot Charts are the fastest way to create interactive visual dashboards from raw data.
🎯 Explain: Pivot Chart = Pivot Table ka visual form. Pivot Table mein data tabular form mein dikhta hai — Pivot Chart mein wahi data chart form mein. Dono linked hain — Pivot Table change karo toh Chart automatically update hoga. Filter buttons chart pe bhi hote hain — interactive filtering possible. Quick dashboard banane ke liye: data → Pivot Table → Pivot Chart → slicer add karo — professional dashboard ready. Interview mein "I combine Pivot Tables with Pivot Charts and Slicers for interactive dashboards" — impressive lagta hai.

Q17: What is a Slicer in Excel?
Answer: A Slicer is a visual filter control for Pivot Tables (and Excel Tables). It provides buttons for each unique value in a field — clicking a button filters the Pivot Table/Chart instantly. Multiple selections allowed with Ctrl+Click. Slicers can be connected to multiple Pivot Tables simultaneously for synchronized filtering. Added from PivotTable Analyze → Insert Slicer. Slicers make dashboards interactive and user-friendly — no need to open filter dropdowns.
🎯 Explain: Slicer = visual filter button. Department slicer banao — IT, HR, Finance, Marketing buttons dikhenge — click karo aur Pivot Table instantly filter ho jayega. Multiple slicers add karo — Region, Year, Department — dashboard professional dikhta hai. Ek slicer ko multiple Pivot Tables se connect kar sakte ho — ek click se sab tables filter ho jaayengi. Interview mein "I use Slicers for creating interactive dashboards — they provide a better user experience than filter dropdowns."

Q18: What is the difference between a Pivot Table and a regular table summary?
Answer: Regular table summaries use SUMIF, COUNTIF formulas manually written for each category — time-consuming, formula-dependent, and static. Pivot Tables create dynamic summaries instantly through drag-drop — no formulas needed, automatically updates when source data changes, supports grouping, filtering, sorting, and drill-down. Pivot Tables are interactive — you can rearrange the view in seconds. Regular formulas are fixed — changing the summary structure requires rewriting formulas. Pivot Tables are preferred for exploratory data analysis.
🎯 Explain: Manual summary = SUMIF likhke department-wise salary nikalo — 4 departments ke liye 4 formulas. Region add karo toh 4×4 = 16 formulas. Pivot Table = drag-drop se 1 second mein. Data change ho toh Pivot refresh karo — formulas manually update karne ki zaroorat nahi. Exploratory analysis mein Pivot Table unbeatable hai — quickly different views dekho bina formula likhe. Fixed reports ke liye SUMIFS theek hain, dynamic analysis ke liye Pivot Table best hai.

💡 Pro Tip: Pivot Table ka question 100% aayega intermediate interviews mein. Confidently bolo: "Pivot Tables are my primary tool for data summarization. I create Pivot Tables with Calculated Fields for derived metrics, add Pivot Charts for visualization, and use Slicers for interactive filtering — creating a complete dashboard without writing formulas." Phir add karo: "I also use Grouping for date fields — grouping daily dates into months/quarters for trend analysis." Yeh practical depth dikhata hai.

🟡 Category 4: Date & Text Functions (Q19–Q24)

Q19: What is the DATEDIF function?
Answer: DATEDIF calculates the difference between two dates in years, months, or days. Syntax: =DATEDIF(start_date, end_date, unit). Units: "Y" = complete years, "M" = complete months, "D" = total days, "YM" = months ignoring years, "MD" = days ignoring months and years. DATEDIF is a hidden function — it does not appear in autocomplete but works perfectly. Commonly used for age calculation, tenure calculation, and experience duration in HR reports.
🎯 Explain: DATEDIF = do dates ke beech ka difference. Employee ki tenure nikalni hai — =DATEDIF(E2, TODAY(), "Y") — joining date se aaj tak kitne saal. "M" dega months, "D" dega days. Yeh function autocomplete mein nahi aata — manually type karna padta hai — lekin kaam sahi karta hai. HR reports mein bahut use hota hai — age, experience, tenure sab DATEDIF se. Interview mein "DATEDIF is a hidden gem for tenure and age calculations" — yeh line achhi lagti hai.

# Years of service
=DATEDIF(E2, TODAY(), "Y")
# Aarav (01-Jan-2021) → ~4 years

# Months of service
=DATEDIF(E2, TODAY(), "M")
# Total complete months

# Full tenure format: X Years Y Months
=DATEDIF(E2,TODAY(),"Y") & " Years " & DATEDIF(E2,TODAY(),"YM") & " Months"
# Result: "4 Years 6 Months" (example)

Q20: What is the NETWORKDAYS function?
Answer: NETWORKDAYS calculates the number of working days (excluding weekends — Saturday and Sunday) between two dates. Syntax: =NETWORKDAYS(start_date, end_date, [holidays]). The optional holidays parameter accepts a range of dates to exclude (public holidays). NETWORKDAYS.INTL allows custom weekend definitions (e.g., Friday-Saturday instead of Saturday-Sunday). Essential for project planning, SLA tracking, payroll calculations, and delivery date estimations.
🎯 Explain: NETWORKDAYS = working days count — weekends (Sat-Sun) automatically exclude. =NETWORKDAYS(E2, TODAY()) — joining se aaj tak kitne working days kaam kiya. Holidays list bhi de sakte ho — public holidays bhi exclude honge. Project delivery mein: start date se end date tak kitne working days? SLA tracking mein bahut use hota hai. NETWORKDAYS.INTL mein custom weekends set kar sakte ho — Middle East mein Friday-Saturday weekend hota hai.

# Working days from joining to today
=NETWORKDAYS(E2, TODAY())
# Aarav (01-Jan-2021 to today) → ~1100+ working days

# Working days between two dates excluding holidays
=NETWORKDAYS(DATE(2024,1,1), DATE(2024,12,31), HolidayList)
# Total working days in 2024 minus holidays

Q21: What are YEAR, MONTH, DAY, and TODAY functions?
Answer: YEAR(date) extracts the year number. MONTH(date) extracts the month number (1-12). DAY(date) extracts the day number (1-31). TODAY() returns the current date (updates automatically every day). NOW() returns current date and time. These are used for date-based calculations, filtering by year/month, age calculations, and creating dynamic date references. TODAY() is volatile — recalculates every time the workbook opens.
🎯 Explain: YEAR(E2) = joining year nikalo. MONTH(E2) = joining month. DAY(E2) = joining day. TODAY() = aaj ki date — dynamic hai, roz change hoti hai. Age calculate karo: =YEAR(TODAY()) - YEAR(E2). Month-wise grouping: =MONTH(E2). Interview mein "TODAY() is volatile — it recalculates on every workbook open" — yeh technical point mention karo.

Q22: What is the TEXT function?
Answer: TEXT converts a number or date to text in a specified format. Syntax: =TEXT(value, format_text). Examples: =TEXT(55000, "#,##0") → "55,000", =TEXT(E2, "DD-MMM-YYYY") → "01-Jan-2021", =TEXT(E2, "MMMM") → "January", =TEXT(0.15, "0%") → "15%". TEXT is essential when you need to display formatted values in CONCATENATE/TEXTJOIN results because joining a date with text without TEXT() gives a serial number instead of readable date.
🎯 Explain: TEXT = number/date ko formatted text mein convert karo. Problem: =B2&" joined on "&E2 → "Aarav joined on 44197" (serial number dikhega). Solution: =B2&" joined on "&TEXT(E2,"DD-MMM-YYYY") → "Aarav joined on 01-Jan-2021". Currency formatting: TEXT(D2,"₹#,##0") → "₹55,000". Month name: TEXT(E2,"MMMM") → "January". TEXT function CONCATENATE ke saath bahut kaam aata hai.

# Format date as text
=TEXT(E2, "DD-MMM-YYYY")    # "01-Jan-2021"
=TEXT(E2, "MMMM YYYY")      # "January 2021"

# Format salary with comma
=TEXT(D2, "#,##0")           # "55,000"

# Use with CONCATENATE
=B2 & " earns ₹" & TEXT(D2, "#,##0") & " per month"
# "Aarav earns ₹55,000 per month"

Q23: What is the SUBSTITUTE function?
Answer: SUBSTITUTE replaces specific text within a string with new text. Syntax: =SUBSTITUTE(text, old_text, new_text, [instance_num]). Unlike Find & Replace (Ctrl+H), SUBSTITUTE works within formulas and does not modify the original data. The optional instance_num parameter specifies which occurrence to replace — if omitted, all occurrences are replaced. SUBSTITUTE is case-sensitive. Common uses: removing unwanted characters, standardizing data, cleaning phone numbers.
🎯 Explain: SUBSTITUTE = formula ke andar text replace karo. =SUBSTITUTE(B2, "a", "X") → "AArav" mein lowercase "a" ko "X" se replace karega → "AXrXv". Phone number se dashes hatao: =SUBSTITUTE("91-9876-543210", "-", "") → "919876543210". Case-sensitive hai — "A" aur "a" alag treat karega. Find & Replace se alag hai — SUBSTITUTE original data change nahi karta, formula mein result deta hai.

Q24: What is the difference between FIND and SEARCH functions?
Answer: Both FIND and SEARCH return the position of a text string within another text string. Key difference: FIND is case-sensitive, SEARCH is case-insensitive. SEARCH supports wildcard characters (* and ?), FIND does not. Both return #VALUE! error if the text is not found. SEARCH is more commonly used because case-insensitive matching is usually preferred. Both are often combined with MID, LEFT, or RIGHT for text extraction based on dynamic positions.
🎯 Explain: FIND = case-sensitive position dhundho. SEARCH = case-insensitive. =FIND("a", "Aarav") → 2 (lowercase "a" pehli baar position 2 pe). =FIND("A", "Aarav") → 1 (uppercase "A" position 1 pe). =SEARCH("a", "Aarav") → 1 (case ignore, pehla "a" ya "A" position 1 pe). SEARCH wildcards support karta hai — "A*v" search kar sakte ho. Email se domain nikalna ho toh: =MID(email, FIND("@",email)+1, 100) — FIND se @ ki position dhundho, MID se baad ka text nikalo.

💡 Pro Tip: Date functions ka question aaye toh DATEDIF confidently batao: "DATEDIF is a hidden function that calculates date differences — I use it for employee tenure with DATEDIF(JoiningDate, TODAY(), 'Y') for years and 'YM' for remaining months." TEXT function ke liye: "I always wrap dates with TEXT() inside CONCATENATE to avoid serial number display — TEXT(Date, 'DD-MMM-YYYY') ensures readable output." Yeh practical nuances interview mein stand out karte hain.

🟡 Category 5: Named Ranges, Validation & Conditional Formatting (Q25–Q30)

Q25: What are Named Ranges and why are they useful?
Answer: Named Ranges assign a meaningful name to a cell or range of cells — instead of referring to D2:D9, you can name it "SalaryData". Created via Name Box (type name, press Enter), Formulas tab → Define Name, or Ctrl+F3 (Name Manager). Benefits: (1) Formulas become readable — =SUM(SalaryData) instead of =SUM(D2:D9). (2) Easy maintenance — change the range in one place, all formulas update. (3) Used in Data Validation dropdowns. (4) Work across sheets — Sheet2 can reference SalaryData from Sheet1.
🎯 Explain: Named Range = range ko naam do. D2:D9 ko "Salary" naam do — ab =SUM(Salary) likhna zyada readable hai =SUM(D2:D9) se. Name Box mein range select karke naam type karo — Enter — ban gaya. Name Manager (Ctrl+F3) se sab named ranges manage karo — edit, delete. Data Validation dropdown mein named range use karo. Multiple sheets ke beech formulas mein named ranges se kaam aasan hota hai. Interview mein "I use Named Ranges for formula readability and easier maintenance."

# Without Named Range
=SUM(D2:D9)
=AVERAGE(D2:D9)
=COUNTIF(C2:C9, "IT")

# With Named Ranges (SalaryData = D2:D9, DeptData = C2:C9)
=SUM(SalaryData)
=AVERAGE(SalaryData)
=COUNTIF(DeptData, "IT")
# Much more readable!

Q26: How do you create a dependent dropdown list using Data Validation?
Answer: A dependent (cascading) dropdown list changes its options based on the selection in another dropdown. Steps: (1) Create the primary dropdown using Data Validation with a list. (2) Create Named Ranges for each primary option's sub-items. (3) Use INDIRECT function in the second dropdown's Data Validation source — =INDIRECT(A1) where A1 contains the selected primary value. Example: First dropdown = Department (IT, HR). Second dropdown shows team names — selecting "IT" shows Development, Testing; selecting "HR" shows Recruitment, Payroll.
🎯 Explain: Dependent dropdown = pehla dropdown change karo toh dusre dropdown ki list automatically change ho jaaye. Step 1: Department dropdown banao — IT, HR, Finance. Step 2: Har department ke sub-items ki Named Ranges banao — IT range mein "Dev,Testing", HR range mein "Recruitment,Payroll". Step 3: Dusre dropdown ki source mein =INDIRECT(A1) likho — A1 mein "IT" select hai toh IT named range ki values dikhegi. INDIRECT function key hai — dynamically range name refer karta hai.

Q27: How do you use Conditional Formatting with formulas?
Answer: Conditional Formatting with formulas allows custom rules beyond basic value-based rules. Go to Conditional Formatting → New Rule → Use a formula. The formula must return TRUE/FALSE. Examples: Highlight entire row if Department is "IT" — formula: =$C2="IT". Highlight duplicate rows based on multiple columns. Highlight weekends in a date column — =WEEKDAY(A2,2)>5. Highlight rows where sales exceed salary — =$F2>$D2. The $ placement matters — $ on column (absolute column) with relative row to apply across rows.
🎯 Explain: Basic Conditional Formatting = "Salary > 60000 toh green". Formula-based = zyada powerful. Poori row highlight karo agar Department "IT" hai — formula =$C2="IT" ($ column pe, row relative). Alternate row shading — =MOD(ROW(),2)=0. Weekend dates highlight — =WEEKDAY(A2,2)>5. $ ka placement samajhna important hai — galat $ se wrong cells highlight honge. Interview mein "I use formula-based conditional formatting for row-level highlighting" — advanced knowledge dikhata hai.

Q28: What is the INDIRECT function?
Answer: INDIRECT converts a text string into a valid cell reference. Syntax: =INDIRECT(ref_text). If cell A1 contains "D5", then =INDIRECT(A1) returns the value of cell D5. INDIRECT is used for: creating dynamic references that change based on user input, dependent dropdowns (=INDIRECT(dropdown_cell)), referencing other sheets dynamically (=INDIRECT("'"&SheetName&"'!A1")), and building flexible formulas that adapt to changing data structures.
🎯 Explain: INDIRECT = text ko cell reference mein convert karo. A1 mein "D5" likha hai — =INDIRECT(A1) → D5 ki value return karega. Dynamic sheet reference: =INDIRECT("'"&B1&"'!A1") — B1 mein sheet name ho toh us sheet ka A1 value aayega. Dependent dropdowns mein INDIRECT key role play karta hai. Flexible formulas banane ke liye powerful hai — lekin volatile hai (slow ho sakta hai large data mein). Interview mein dependent dropdown ke context mein explain karo.

Q29: What is an Excel Table (Ctrl+T) and its advantages?
Answer: An Excel Table (Insert → Table or Ctrl+T) converts a data range into a structured, named table object. Advantages: (1) Automatic formatting with headers and banded rows. (2) Structured References — formulas use column names like [@Salary] instead of D2. (3) Auto-expanding — new rows/columns automatically included. (4) Built-in filter and sort buttons. (5) Total Row option for quick aggregations. (6) Works seamlessly with Pivot Tables and Power Query. (7) Named automatically (Table1, Table2) for easy referencing.
🎯 Explain: Ctrl+T se data ko Table banao — bahut advantages milte hain. Formula mein =SUM(Table1[Salary]) — readable structured reference. Naya row add karo toh automatically table mein include ho jaata hai — formulas bhi update ho jaate hain. Filter buttons built-in. Total Row se quick SUM, AVERAGE neeche dikhao. Pivot Table banate waqt Table reference do — data bade toh Pivot automatically update hoga. Interview mein "I always convert raw data to Excel Tables for structured references and auto-expansion" — best practice hai.

Q30: What is the difference between EXACT, UPPER, LOWER, and PROPER functions?
Answer: EXACT(text1, text2) compares two text strings case-sensitively — returns TRUE if identical, FALSE otherwise. UPPER(text) converts all characters to uppercase — "aarav" → "AARAV". LOWER(text) converts to lowercase — "AARAV" → "aarav". PROPER(text) capitalizes the first letter of each word — "aarav sharma" → "Aarav Sharma". These are essential for data cleaning — standardizing names, comparing text values accurately, and formatting text consistently in reports.
🎯 Explain: Data cleaning mein bahut kaam aate hain. Names inconsistent hain — koi "aarav" likha, koi "AARAV", koi "Aarav". PROPER lagao — sab "Aarav Sharma" ban jayenge. Email addresses lowercase chahiye — LOWER lagao. Comparison case-sensitive chahiye — EXACT use karo (normal = case-insensitive hai). Interview mein "I use PROPER for name standardization, LOWER for email normalization, and EXACT for case-sensitive validation" — practical use cases do.

# UPPER
=UPPER(B2)    # Aarav → AARAV

# LOWER
=LOWER(B2)    # Aarav → aarav

# PROPER
=PROPER("aarav sharma")  # → Aarav Sharma

# EXACT — case-sensitive comparison
=EXACT("Aarav", "aarav")  # FALSE (different case)
=EXACT("Aarav", "Aarav")  # TRUE (exact match)
💡 Pro Tip: Named Ranges aur Excel Tables ka question aaye toh bolo: "I use Named Ranges for formula readability and Ctrl+T Tables for auto-expanding data. With structured references like Table1[Salary], formulas are self-documenting. For dependent dropdowns, I combine Named Ranges with INDIRECT function." Yeh shows ki tum organized aur professional Excel user ho — not just formula writer but someone who builds maintainable spreadsheets.

📋 Quick Revision Table — 30 Questions at a Glance

Q# Question One-Line Answer
Q1INDEX-MATCH?Flexible lookup — left lookup possible, no column index
Q2XLOOKUP?Modern replacement — any direction, built-in error handling
Q3VLOOKUP vs HLOOKUP?VLOOKUP=vertical data, HLOOKUP=horizontal data
Q4MATCH function?Returns position number — used with INDEX for lookups
Q5Two-way lookup?INDEX-MATCH-MATCH for row+column intersection
Q6CHOOSE function?Returns value from list based on index number
Q7SUMIF vs SUMIFS?SUMIF=1 condition, SUMIFS=multiple conditions
Q8COUNTIFS?Count with multiple AND conditions
Q9AVERAGEIFS?Average with multiple conditions
Q10Nested IF?IF inside IF for multi-condition categorization
Q11IFS function?Clean multi-condition — no nesting, TRUE for default
Q12SWITCH function?Exact value matching — cleaner than IF for code mapping
Q13Pivot Table?Interactive data summarization — drag-drop, no formulas
Q14Pivot Table areas?Rows, Columns, Values, Filters — 4 areas
Q15Calculated Field?Custom formula-based field inside Pivot Table
Q16Pivot Chart?Visual chart linked to Pivot Table — auto-updates
Q17Slicer?Visual filter buttons for Pivot Tables — interactive dashboards
Q18Pivot vs manual summary?Pivot=dynamic drag-drop, Manual=static formulas
Q19DATEDIF?Hidden function — date difference in Y/M/D
Q20NETWORKDAYS?Working days count excluding weekends & holidays
Q21YEAR, MONTH, DAY, TODAY?Extract date parts — TODAY() returns current date
Q22TEXT function?Format numbers/dates as text — essential with CONCATENATE
Q23SUBSTITUTE?Replace text within formula — case-sensitive
Q24FIND vs SEARCH?FIND=case-sensitive, SEARCH=case-insensitive+wildcards
Q25Named Ranges?Assign name to range — readable formulas, easy maintenance
Q26Dependent dropdowns?Cascading lists using Named Ranges + INDIRECT
Q27Conditional Formatting with formulas?Custom rules using TRUE/FALSE formulas — row highlighting
Q28INDIRECT function?Converts text to cell reference — dynamic references
Q29Excel Table (Ctrl+T)?Structured table — auto-expand, structured references
Q30EXACT, UPPER, LOWER, PROPER?Case comparison & text case conversion for data cleaning

Thanks for Reading! 🙏

Thanks for reading! Data Insights par aur bhi Power BI, Excel, SQL topics available hain — explore karo aur apni analytics journey strong banao! Happy Learning & Keep Exploring! 🚀

— JatinAnalytics

👤
Jatin Kumar
Data Analyst & Educator

Python, SQL, Power BI aur Excel mein practical tutorials likhta hoon — taaki data analytics seekhna aasan ho. Portfolio: jatinanalytics.co.in

Portfolio LinkedIn GitHub Kaggle All Articles
Share:

💬 Comments (0)

Spam/links allowed nahi hain — respectful comments welcome!

Loading comments...

Was this article helpful?
Previous ArticleExcel Basic Interview QuestionsNext Article Excel Advanced Interview Questions

📚 More Articles Like This

Advanced Power BI Interview Questions

Read Article

Top 30 intermediate Power BI interview questions

Read Article

Power BI Basic Interview Questions

Read Article