# Excel interview questions

• 1.

How cell reference is useful in the calculation?

In order to avoid writing the data again and again for calculating purpose, cell reference is used. When you write any formula, for specific function, you need to direct Excel the specific location of that data. This location is referred as, cell reference. So, every time a new value added to the cell, the cell will calculate according to the reference cell formula.

• 2.

What is the AND function does in Excel?

Like IF function, AND function also does the logical function. To check whether the output will be true or false the AND function will evaluate at least one mathematical expression located in another cell in the spreadsheet. If you want to see the output of more than one cells in a single cell, it is possible by using AND function.

Example: If you have two cells, A1 and A2, and the value you put in those two cells are >5 and you want result should display as ‘TRUE’ in cell B1 if value>5, and ‘False’ if any of those values<5. You can use AND function to do that.

• 3.

How can you disable the automating sorting in pivot tables?

To disable the automating sorting in pivot tables,

Go to > “More Sort Options”> Right Click “Pivot table” > Select “Sort” menu > Select “More Options” > Deselect the “Sort automatically when the report is created.”

• 4.

What is the “What If” condition in Excel formulas?

The “What If” condition is used to change the data in Microsoft Excel formulas to give different answers.

Example: You are buying a new car and want to calculate the exact amount of tax that will be levied on it then you can use the “What If” function.  For instance, there are three cells A4,B4, and C4. First cell says about the amount, the second cell will tell about the percentage (7.5%) of tax and the final cell will calculate the exact amount of tax.

• 5.

What is the benefit of using formula in Excel sheet?

Calculating the numbers in Excel sheet, not only help you to give the final ‘sum up’ of the number but, it also calculates automatically the number replaced by another number or digit.  Through Excel sheet, the complex calculations become easy like payroll deduction or averaging the student’s result.

• 6.

Which function is used to determine the day of the week for a date?

WEEKDAY () returns the day of the week for a particular date counting from Sunday.

Example: Let date at A1 be 12/30/2016

WEEKDAY(A1,1) =>6

• 7.

What is the quick way to return to a particular area of a worksheet?

The quick way to return to a specific area of the worksheet is by using name box.  You can type the cell address or range name in name box to return to a specific area of a worksheet.

• 8.

What filter will you use, if you want more than two conditions or if you want to analyze the list using database function?

You will use Advanced Criteria Filter, to analyze the list or if more than two conditions should be tested.

• 9.

To move to the previous worksheet and next sheet, what keys will you press?

To move to the previous worksheet, you will use the keys Ctrl + PgUp, and to move to the next sheet you will use keys Ctrl + PgDown.

• 10.

What are left, right, fill and distributed alignments?

Left /Right alignment align the text to left and right most of the cell.

Fill as the name suggests, fill the cell with same text repetitively.

Distributed, spread the text across the width of the cell.

 LEFT FILL DISTRIBUTED Ab abababababababab a                                b A aaaaaaaaaaaaaaaa A
• 11.

How can you apply the same formatting to every sheet in a workbook in MS-Excel?

Right Click ‘Worksheet tab’ > Choose ‘Select All Sheets’. Now any formatting done will be applied to the whole workbook. To apply to a particular group of sheets, select only those sheets that need formatting.

• 12.

What is the use of LOOKUP function in Excel?

In Microsoft Excel, the LOOKUP function returns a value from a range or an array.

• 13.

Can we create shortcuts to Excel functions?

Yes. ‘Quick Access Toolbar’ above the home button can be customized to display most frequently used shortcuts.

• 14.

What is IF function in Excel?

To perform the logic test IF function is performed. It checks whether certain conditions is true or false. If the condition is true, then it will give result accordingly if the condition is false then the result or out-put will be different.

Example: For example, you select the cell, and you want to display that cell as “Greater than five,” when value is true (=5 or 5) and “less than five” when value is false (<5). For that by using IF condition you can display result.

=IF (Logical test, value if true, value if false)

=IF (A1>5, “Greater than five, “Less than five”)

• 15.

Difference between COUNT, COUNTA, COUNTIF and COUNTBLANK in Ms-Excel.

COUNT is used to count cells containing numbers, dates, etc. any value stored as number excluding blanks.

COUNTA or Count All is used to count any cell value containing numbers, text, logical values, etc. any type of value excluding blanks.

COUNTBLANK count blank cells or cells with an empty string.

COUNTIF and COUNTIFS count cells matching a certain criteria.

• 16.

Explain the difference between SUBSTITUTE and REPLACE function in MS-Excel?

The SUBSTITUTE function substitutes one or more instances of old text with the new text in a string.

Syntax: SUBSTITUTE(text, oldText, newText, [instanceNumber])

Example: Let text at A2 be Guru99,Guru99

SUBSTITUTE(A2,”9″,”8″,1) =>Guru89,Guru99

SUBSTITUTE(A2,”9″,”8″,2) =>Guru88,Guru99

SUBSTITUTE(A2,”9″,”9″) =>Guru88,Guru88

The REPLACE function swaps part of the text string with another set of text.

Syntax: REPLACE(oldText, startNumber, NumberCharacters, newText)

Example: Let text at A2 be Guru99

REPLACE(A2,5,1,”00″) =>Guru009

• 17.

Explain workbook protection types in Excel.

Excel provides three ways to protect a workbook:

• Password protection for opening a workbook
• Protection for adding, deleting, hiding and unhiding sheets
• Protection from changing size or position of windows.
• 18.

What could you do to stop the pivot table from loosing the column width upon refreshing?

Format loss in a pivot table can be stopped simply by changing the pivot table options.  Under the “Pivot Table Options” turn on the “Enable Preserve Formatting” and disable “Auto Format” option.

• 19.

What is Freeze Panes in MS-Excel?

To lock any row or column, freeze panes is used. The locked row or column will be visible on the screen even after we scroll the sheet vertically or horizontally.

• 20.

How can you disable automatic sorting in pivot tables?