View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom Peo Sjoblom is offline
external usenet poster
 
Posts: 3,268
Default 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?