Excel VBA Developer Interview Questions & Answers
40 questions for Excel VBA Developer interviews — 6 easy, 26 medium, 8 hard.
About the Excel VBA Developer role
An Excel VBA Developer automates repetitive work with macros, UserForms and event-driven workbooks: consolidating files, generating PDFs, emailing reports and building data entry tools. They write maintainable, error-handled code and decide when Power Query or Office Scripts is a better fit. The role is common in operations, finance shared services and KPOs handling large manual workloads.
What are parameters in Power Query and when do you use them?
Show answer
Write VBA to loop through all worksheets and apply the same formatting.
Show answer
Dates from a vendor file in dd/mm/yyyy format show as errors or swap day and month. How do you fix it?
Show answer
When does binary search in XLOOKUP or approximate VLOOKUP give wrong results?
Show answer
What is the pivot cache and why does it matter?
Show answer
How do you group dates and numbers in a pivot, and why does grouping sometimes fail?
Show answer
What are UserForms in VBA and when would you use one?
Show answer
What are Applied Steps and the M language in Power Query?
Show answer
You need to find and remove duplicate customer records but keep the original data safe. How do you do it?
Show answer
What is the difference between a Sub and a Function in VBA?
Show answer
Why are data types important in Power Query, and what problems does the automatic Changed Type step cause?
Show answer
Tell me about a time you had to explain a complex Excel report to a non-technical manager.
Show answer
Your query refresh fails with 'The column Amount of the table wasn't found'. What happened and how do you fix it?
Show answer
Tell me about a time you had to explain a DAX number that looked wrong to a manager.
Show answer
A shared Excel file has grown to 40 MB and takes ages to recalculate. What do you check?
Show answer
How do you highlight an entire row when the Status column says Overdue?
Show answer
How do you split and clean a column like 'EMP001 - Rahul Sharma - Delhi' in Power Query?
Show answer
Write VBA to consolidate the first sheet of every Excel file in a folder into one sheet.
Show answer
Write VBA to save each worksheet as a separate PDF.
Show answer
What checks do you run when cleaning a new dataset?
Show answer
Tell me about a time data from two teams did not match. How did you resolve it?
Show answer
Your pivot chart changes whenever someone filters the pivot, but your manager wants a fixed chart for a presentation. What do you do?
Show answer
The pivot grand total does not match SUM of the source column. How do you investigate?
Show answer
Your macro accidentally deleted data, and Undo does not work. How do you prevent this in future?
Show answer
How do you speed up a slow VBA macro?
Show answer
How do you build a dependent dropdown, where the City list changes based on the selected State?
Show answer
Your manager wants each product's share of sales within its region, not of the grand total. How do you show it?
Show answer
What is conditional formatting? Give two business uses.
Show answer
What is the difference between relative, absolute and mixed cell references?
Show answer
Your Power Query output has 20 lakh rows and Excel says it cannot load it to a sheet. What do you do?
Show answer
Explain the join kinds available in Power Query Merge.
Show answer
What are named ranges and why are they useful?
Show answer
Refreshing a Power Query that combines 200 CSV files from a folder takes ten minutes. How do you speed it up?
Show answer
How do you combine all files in a folder using Power Query?
Show answer
How do you send personalised emails from Excel through Outlook using VBA?
Show answer
Write a custom number format that shows positives in green, negatives in red brackets and zero as a dash.
Show answer
A macro works on your computer but fails on a colleague's. What could be the reasons?
Show answer
Tell me about a time you had to clean up a messy spreadsheet someone else built.
Show answer
How do you remove duplicate customers but keep the most recent record in Power Query?
Show answer
Frequently asked questions
What does a Excel VBA Developer do?
An Excel VBA Developer automates repetitive work with macros, UserForms and event-driven workbooks: consolidating files, generating PDFs, emailing reports and building data entry tools. They write maintainable, error-handled code and decide when Power Query or Office Scripts is a better fit. The role is common in operations, finance shared services and KPOs handling large manual workloads.
Which skills are tested in a Excel VBA Developer interview?
Expect questions on VBA programming, UserForms, File automation, Error handling, Process documentation. Most rounds also ask you to explain a project and solve one practical problem live.
How do I prepare for a Excel VBA Developer interview?
Revise Macros and VBA Automation, Power Query and Data Cleaning, Excel Fundamentals and Formatting first using the topic sheets, practise the questions on this page aloud, then do one full mock interview to practise timing.