Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What function returns the sheet name?

0 views
Skip to first unread message

bao...@my-deja.com

unread,
Aug 6, 2007, 1:12:23 AM8/6/07
to
Oh sher, I know I can always parse CELL("filename"), which returns a
Webster's Collegiate Edition-length string whose last segment is the
sheet name. But, I mean, aghhh!

Doofus user full disclosure dept.: I'm, uh, <gulp>, heh heh, still
running Excel 97 SR2.

Thanks.

***

JW

unread,
Sep 20, 2007, 9:10:02 PM9/20/07
to

The below formula will work, as long as the workbook you are placing
it in is saved. If it's not, you will receive an error because there
isn't a filename associated with it until it is saved.
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))
+1,LEN(CELL("filename",A1))-FIND("]",CELL("filename",A1)))

0 new messages