![]() |
Use a sheet name in a formula
Hi I would like a formula in a cell where I can show the sheet name.
For example ="2008 "&"Sheetname" Anybody who knows? |
Use a sheet name in a formula
Try this...
="2008 " & RIGHT(CELL("Filename"),LEN(CELL("Filename"))-FIND("]",CELL("Filename"))) The workbook must have been saved at least once for this to work. Hope this helps, Hutch "FreddieP" wrote: Hi I would like a formula in a cell where I can show the sheet name. For example ="2008 "&"Sheetname" Anybody who knows? |
Use a sheet name in a formula
="2008 "&MID(CELL("filename"),FIND("]",CELL("filename"),1)+1,256)
hth -- regards from Brazil Thanks in advance for your feedback. Marcelo "FreddieP" escreveu: Hi I would like a formula in a cell where I can show the sheet name. For example ="2008 "&"Sheetname" Anybody who knows? |
Use a sheet name in a formula
="2008 "&MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,32)
A1 can be replaced by any cell reference even the cell that holds the formula -- Regards, Peo Sjoblom "FreddieP" wrote in message ... Hi I would like a formula in a cell where I can show the sheet name. For example ="2008 "&"Sheetname" Anybody who knows? |
Use a sheet name in a formula
That is not correct, you need to include a cell reference or else it will
switch sheet names to the active sheet once the workbook is saved again. -- Regards, Peo Sjoblom "Tom Hutchins" wrote in message ... Try this... ="2008 " & RIGHT(CELL("Filename"),LEN(CELL("Filename"))-FIND("]",CELL("Filename"))) The workbook must have been saved at least once for this to work. Hope this helps, Hutch "FreddieP" wrote: Hi I would like a formula in a cell where I can show the sheet name. For example ="2008 "&"Sheetname" Anybody who knows? |
Use a sheet name in a formula
I dont get it to work. And also I think that this will return the name of the
file. I want it to return the name of a specific sheet within the file. Peo, could you perhaps write the formula in Swedish which I guess you are when I see your name :) /Freddie "Peo Sjoblom" wrote: ="2008 "&MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,32) A1 can be replaced by any cell reference even the cell that holds the formula -- Regards, Peo Sjoblom "FreddieP" wrote in message ... Hi I would like a formula in a cell where I can show the sheet name. For example ="2008 "&"Sheetname" Anybody who knows? |
Use a sheet name in a formula
I am Swedish but I don't have a Swedish Excel installed on the computer I am
at the moment, The formula would be ="2008 "&EXTEXT(CELL("filename";A1);HITTA("]";CELL("filename";A1))+1;32) in Swedish except that I don't remember if "filename" is changed to a Swedish equivalent? If you go to help and lookup the CELL function, what options are there, if there is no "filename" replace it with whatever the help example is using -- Regards, Peo Sjoblom "FreddieP" wrote in message ... I dont get it to work. And also I think that this will return the name of the file. I want it to return the name of a specific sheet within the file. Peo, could you perhaps write the formula in Swedish which I guess you are when I see your name :) /Freddie "Peo Sjoblom" wrote: ="2008 "&MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,32) A1 can be replaced by any cell reference even the cell that holds the formula -- Regards, Peo Sjoblom "FreddieP" wrote in message ... Hi I would like a formula in a cell where I can show the sheet name. For example ="2008 "&"Sheetname" Anybody who knows? |
Use a sheet name in a formula
Freddie.
It works as Peo has written it. I get 2008 Sheet1 when I enter the formula in any cell in Sheet1 Gord Dibben MS Excel MVP On Fri, 16 May 2008 07:40:01 -0700, FreddieP wrote: I dont get it to work. And also I think that this will return the name of the file. I want it to return the name of a specific sheet within the file. Peo, could you perhaps write the formula in Swedish which I guess you are when I see your name :) /Freddie "Peo Sjoblom" wrote: ="2008 "&MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,32) A1 can be replaced by any cell reference even the cell that holds the formula -- Regards, Peo Sjoblom "FreddieP" wrote in message ... Hi I would like a formula in a cell where I can show the sheet name. For example ="2008 "&"Sheetname" Anybody who knows? |
All times are GMT +1. The time now is 09:56 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com