Microsoft Excel Question:
Download Questions PDF

Is there a function that returns the name of the worksheet?

Answer:

Excel's CELL function comes close. The following formula displays the workbook's full path along with the worksheet name:

=CELL("filename")

For example, this formula might return something like:

C:WindowsDesktop[Budget.xls]Sheet2

Returning only the sheet name requires a more complex formula:

=MID(CELL("filename"), FIND("]",CELL("filename"))+1, LEN(CELL("filename"))-FIND("]", CELL("filename")))

Download MS Excel Interview Questions And Answers PDF

Previous QuestionNext Question
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?How can I increase the number of rows or columns in a worksheet?