MS Excel

  Home  Applications Programs  MS Excel


“MS Excel Interview Questions and Answers will guide us that Microsoft Excel is a spreadsheet application written and distributed by Microsoft for Microsoft Windows and Mac OS X. It features calculation, graphing tools, pivot tables and a macro programming language called Visual Basic for Applications. It has been a very widely applied spreadsheet for these platforms, especially since version 5 in 1993. Get MS Excel Job interview preparation with this MS Excel Interview Questions and Answer Guide”



120 MS Excel Questions And Answers

41⟩ I have a price list stored in a worksheet, and I need to increase all prices by 5 percent. Can I do this without reentering all the prices?

Excel provides two ways to accomplish this. The "traditional" technique goes something like this: Insert or find a blank column near the prices. In that column's first cell, enter a formula to multiply the price in that row by 1.05. Copy the formula down the column. Then select and copy the entire column of formulas, select the original prices, and choose Edit, Paste Special. In the Paste Special dialog box, select Values to overwrite the original prices with the formulas' results. And finally, delete the column of formulas.

The other, more efficient approach also uses the Paste Special dialog box. To increase a range of values (prices, in this example) by 5 percent, enter 1.05 into any blank cell. Select the cell and choose Edit, Copy. Then select the range of values and choose Edit, Paste Special. Choose the Multiply option and click OK. Then delete the cell that contains the 1.05.

 200 views

42⟩ How can I increase the number of rows or columns in a worksheet?

In Excel, every workbook has 255 columns and 65,526 rows. These values are fixed and cannot be changed. If you need more rows, you might want to consider using a database (such as Access) or another spreadsheet (Quattro Pro can handle a million rows) for data storage. In most cases, you probably don't need to work with all of your data at once. You'll usually need only a subset of your data. You can use Excel's Data, Get External Data command to query the database and bring in only the records you need.

 169 views

43⟩ I have saved my workbook with a password, but Excel does not recognize it and would not let me open the file. Am I out of luck?

First, remember that passwords are case sensitive. So if you originally entered your password as Xyzzy, typing xyzzy won't work. If you know you're entering the password correctly, then it's time to start looking for a password recovery utility. Several utilities exist, and none of them are free. Do an Internet search for "Excel password recovery," and you'll find several products that will come to the rescue. By the way, the fact that these products exist might raise some alarms for the security-minded. Bottom line? Excel password protection isn't as secure as you might expect.

 180 views

46⟩ When I enter a value, it appears with two decimal places. For example, when I enter 154 it shows up as 1.54. Whats wrong?

Somehow Excel's fixed-decimal mode was turned on. To return to normal, select Tools, Options to display the Options dialog box. Then click the Edit tab and remove the check mark from the "Fixed decimal" option. Of course, this feature can be useful when entering some types of data, but most of the time, you'll want to keep the fixed-decimal mode turned off.

 198 views

47⟩ I am trying to open files called "Excel 97 Templates" with my Excel for Windows 95, Version 7.0. I get the message "(filename).xls file format is not valid". What gives? Is the "Excel 97" saved file just unreadable by my version?

Excel 97 is not backwards-compatible with Excel 95/7.0. Files saved as Excel 97 files do not open in Excel 95/7.0. The standard (and not very friendly) message offered by Excel when you try to open a 97 file in 95 is the "File format is not valid".

If you know someone with Excel 97, they should be able to open the files and then do a "Save As" Excel 95/7.0, but any new features from 97 would be lost.

 166 views

48⟩ My question is when your working with multiple worksheets how do you transfer added figures from one worksheet to another without losing the total?

First method: Copy the cell from the original sheet. Go to the new sheet, but do not paste. Do a Edit>Paste Special>Values. This will copy the value instead of the formula to the new sheet.

Second method: set up a formula on the new sheet that points to the total on the back sheet. If your total is on Sheet2, cell D20 you would enter this formula on sheet 1:

=Sheet2!D20

Then, as you change data on Sheet 2 and the totals change, they will automatically update on Sheet 1.

 167 views

49⟩ I have a list of 3215 product names on a spreadsheet. Each resides in a single cell. I need to put each name in quotes. The names are all in one column?

If all of your names are in column A, insert a new, temporary column B. The formula for cell B2 would be:

=""""&A2&""""

Yes, there are four sets of quotes there. The first and fourth quote indicate that you need to append text before the value in A2. The 2nd and 3rd quote is a special Excel code to put in a quote mark. Copy the formula from B2 down to B3216. Then, copy column B, and use Paste Special, Values to change the formulas to values.

 180 views

50⟩ I wish to count the number of cells in a col or row that have a value > 0. How is this done? The zero is displayed in the cells. Count() will only ignore a blank cell?

In Excel, you would use something called an array formula. If your range of cells is in A1:A100, you would type the following formula:

=SUM(IF(A1:A100>0,1,0)) instead of hitting enter, you would hit Ctrl+Shift+Enter.

This keystroke tells Excel it is an array formula. It will evaluate each cell in the range, and if it is greater than 0, add 1 to your result. Otherwise, it will add zero to your result.

A second solution in Excel 97 is to use Countif. =COUNTIF(A1:A100,">0")

 198 views

52⟩ I am trying to get the percentage of two cells by dividing one cell into the other. Some of the time both cells might have a Zero in each. Therefore the DIV?

This seems like an incredible pain, but I have to use it all of the time.

If your spreadsheet is set up with the numerand in column A, the divisor in B, and in C you are trying to calculate A/B, then you would enter this formula in cell C2:

=IF(B2=0,"NA",A2/B2)

At my job, we use NA to indicate that a number divided by 0 is not applicable. If, as you say, you want a zero there, then you would use this formula:

=IF(B2=0,0,A2/B2)

 173 views

53⟩ I am new at this Excel game. How do you figure elapsed time? I have formatted the cells in military time, create a start time column and an end time column and would like to know the difference?

Enter a time in cell A2 as 1:23:45. Enter a second time in cell B2 as 7:45:08. Then, in C2 enter =B2-A2, you will get a series of pound signs. It is because column B isn't wide enough to display a time. Make column C wider. Format C2 as time, if necessary. Now, you should have an elapsed time.

 153 views

54⟩ I want to count the number of cells in a range that have a particular interior color. The countif function seems like the right kind of answer but how to I return the color of the interior for each cell in a range? I would like to do something like =countif(b1b10, cell("interior","Red"))?

As long as you are not using conditional formatting to turn your cells red, this will work.

It assumes you have used the red which is in the first column, third row of the interior color dropdown in Excel 97. This is known as colorindex number 3.

In Excel 95, use Insert Module. In Excel 97, use Alt-F11 to open the visual basic editor. Paste in the following code:

Public Function SumRed(Inrange As Range)

SumRed = 0

For Each cell In Inrange

If cell.Interior.ColorIndex = 3 Then

SumRed = SumRed + cell.Value

End If

Next

End Sub

Now, enter the function =Sumred(B1:B10) in your worksheet.

 172 views

55⟩ Thanks for your great answer, but this results in my data be backwards; i.e. rather than 12345 I need it to be 54321. Any further thoughts?

Before doing the copy, paste special, transpose, could you sort the original dataset so that it is in reverse order?

Say your original data is in A1:100. Add a sequence of numbers in B1:B100 that run from 1 to 100. (This is easy - enter 1 in B1, 2 in B2, highlight B1:B2 and double click the little square in the lower right corner of B2.)

Now, highlight A1:B100 and use Data Sort to sort by column B, Descending.

Now do the original trick. Highlight A1:A100, Copy, move to D2 and Paste Special, Transpose.

Finally, go back, resort A1:B100 by column B, Ascending, erase the values in B and you are all set.

 156 views

56⟩ I download data which comes to me in a column. I want to use it in a complex sheet that needs data in a row. How can I convert the column data into row data?

Great question. Easy answer: Highlight the data in your column. C to copy it.

Then go to a blank section of your spreadsheet. pick Edit > Paste Special.

In the paste special dialog box, check the little box that says "Transpose". Then click OK. Your column data now turns into row data.

 161 views

58⟩ I want to add 25 to all of the cells in column A. I do not want a new column, I want to add it right to the cells in column A?

Temporarily enter 25 in a cell in an out of the way place. Highlight that cell and hit Ctrl-C to copy the cell. Now, highlight your range of cells in column E. Select Edit>Paste Special. Click the add radio button and click OK. The contents of the clipboard (25) will be added to each cell in column A.

 201 views

59⟩ I use a large spreadsheet on a daily basis with 31 worksheets (one for each day of the month). Each worksheet is huge.I would like to insert another sheet in the workbook and insert a button to copy another worksheet to the end of the workbook and then rename the sheet to the correspondingday of the month?

If you worksheet names are numeric, this will do the trick:

Public Sub CopyIt()

' This macro will only work if your sheet names are numeric

' Example: the sheet for the first day is 1

'

' Count how many sheets are in this workbook

LastSheet = ActiveWorkbook.Sheets.Count

' What is the name of the last sheet?

LastName = ActiveWorkbook.Sheets(LastSheet).Name

' Add one to the last name to get the new name

NewName = LastName + 1

' Make a Copy of the last sheet

ActiveWorkbook.Sheets(LastSheet).Copy after:=Worksheets(LastName)

'Rename the sheet for today

NewLast = LastSheet + 1

ActiveWorkbook.Sheets(NewLast).Name = NewName

End Sub

 180 views