Interviewer And Interviewee Guide

Microsoft Excel Interview Question:

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

Submitted by: Administrator
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")))
Submitted by: Administrator

Read Online Microsoft Excel Job Interview Questions And Answers
Copyright 2007-2025 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.

Interview Questions Answers .ORG