If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Function to add name of Sheet to a Column?
I am preparing to merge sheets in a workbook, before I do I need to find a
way to pull the sheet name into ColumnX so once merged I will retain the categorization. Is there a simple formula I can paste/fill-down into a column to do this? Thanks in advance |
#2
|
|||
|
|||
Function to add name of Sheet to a Column?
=MID(CELL("filename"),FIND("]",CELL("filename"))+1,255)
Success, click yes. -- Wag more, bark less "msnyc07" wrote: I am preparing to merge sheets in a workbook, before I do I need to find a way to pull the sheet name into ColumnX so once merged I will retain the categorization. Is there a simple formula I can paste/fill-down into a column to do this? Thanks in advance |
#3
|
|||
|
|||
Function to add name of Sheet to a Column?
Make sure the workbook has been saved (otherwise function won't work):
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,999) Copy down as needed. -- Best Regards, Luke M "msnyc07" wrote in message ... I am preparing to merge sheets in a workbook, before I do I need to find a way to pull the sheet name into ColumnX so once merged I will retain the categorization. Is there a simple formula I can paste/fill-down into a column to do this? Thanks in advance |
#4
|
|||
|
|||
Function to add name of Sheet to a Column?
Watch it with that particular formula Brad.
With no cell reference it can lead to erroneous returns. See Bob Phillips' site for more info. http://www.xldynamic.com/source/xld.xlFAQ0002.html Gord Dibben MS Excel MVP On Tue, 25 May 2010 13:19:01 -0700, Brad wrote: =MID(CELL("filename"),FIND("]",CELL("filename"))+1,255) Success, click yes. |
#5
|
|||
|
|||
Function to add name of Sheet to a Column?
You're correct, forgot to include the A1.
Thank you! -- Wag more, bark less "Gord Dibben" wrote: Watch it with that particular formula Brad. With no cell reference it can lead to erroneous returns. See Bob Phillips' site for more info. http://www.xldynamic.com/source/xld.xlFAQ0002.html Gord Dibben MS Excel MVP On Tue, 25 May 2010 13:19:01 -0700, Brad wrote: =MID(CELL("filename"),FIND("]",CELL("filename"))+1,255) Success, click yes. . |
Thread Tools | |
Display Modes | |
|
|