Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
how do I display the current worksheet name in a cell?
I want a function like =INFO() or =CELL() that returns the name of the
current worksheet, e.g. =CELL("WorkSheetName"). Is there such a function? |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
how do I display the current worksheet name in a cell?
The workbook has to be saved first
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,32) A1 is irrelevant in this case, what the formula needs is a single cell reference, it can be any not just A1 and it can be put in any cell including A1 -- Regards, Peo Sjoblom "JayJay" wrote in message ... I want a function like =INFO() or =CELL() that returns the name of the current worksheet, e.g. =CELL("WorkSheetName"). Is there such a function? |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
how do I display the current worksheet name in a cell?
Try this:
=MID(CELL("FILENAME",A1),FIND("]",CELL("FILENAME",A1))+1,999) Note, that the workbook must be saved in order for this to work. HTH, Elkar "JayJay" wrote: I want a function like =INFO() or =CELL() that returns the name of the current worksheet, e.g. =CELL("WorkSheetName"). Is there such a function? |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
how do I display the current worksheet name in a cell?
Try,
=MID(CELL("filename"),SEARCH("]",CELL("filename"))+1, SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-1) Mike "JayJay" wrote: I want a function like =INFO() or =CELL() that returns the name of the current worksheet, e.g. =CELL("WorkSheetName"). Is there such a function? |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
how do I display the current worksheet name in a cell?
Thanks a lot - that works! very clever, I didn't realise the filename
function returned the tab name. "Elkar" wrote: Try this: =MID(CELL("FILENAME",A1),FIND("]",CELL("FILENAME",A1))+1,999) Note, that the workbook must be saved in order for this to work. HTH, Elkar "JayJay" wrote: I want a function like =INFO() or =CELL() that returns the name of the current worksheet, e.g. =CELL("WorkSheetName"). Is there such a function? |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
how do I display the current worksheet name in a cell?
You need to use a cell reference or it will return the sheet name of the
last sheet that was changed =MID(CELL("filename",A1),SEARCH("]",CELL("filename",A1))+1,SEARCH("]",CELL("filename",A1))-SEARCH("[",CELL("filename",A1))-1) -- Regards, Peo Sjoblom "Mike H" wrote in message ... Try, =MID(CELL("filename"),SEARCH("]",CELL("filename"))+1, SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-1) Mike "JayJay" wrote: I want a function like =INFO() or =CELL() that returns the name of the current worksheet, e.g. =CELL("WorkSheetName"). Is there such a function? |
#7
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
how do I display the current worksheet name in a cell?
Thanks Peo, you're right.
"Peo Sjoblom" wrote: You need to use a cell reference or it will return the sheet name of the last sheet that was changed =MID(CELL("filename",A1),SEARCH("]",CELL("filename",A1))+1,SEARCH("]",CELL("filename",A1))-SEARCH("[",CELL("filename",A1))-1) -- Regards, Peo Sjoblom "Mike H" wrote in message ... Try, =MID(CELL("filename"),SEARCH("]",CELL("filename"))+1, SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-1) Mike "JayJay" wrote: I want a function like =INFO() or =CELL() that returns the name of the current worksheet, e.g. =CELL("WorkSheetName"). Is there such a function? |
#8
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
how do I display the current worksheet name in a cell?
Absolutely right, I tried to do a quick cheat on this formula and never
consiodered the consequences :) =MID(CELL("filename"),SEARCH("[",CELL("filename"))+1, SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-1) Mike "Peo Sjoblom" wrote: You need to use a cell reference or it will return the sheet name of the last sheet that was changed =MID(CELL("filename",A1),SEARCH("]",CELL("filename",A1))+1,SEARCH("]",CELL("filename",A1))-SEARCH("[",CELL("filename",A1))-1) -- Regards, Peo Sjoblom "Mike H" wrote in message ... Try, =MID(CELL("filename"),SEARCH("]",CELL("filename"))+1, SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-1) Mike "JayJay" wrote: I want a function like =INFO() or =CELL() that returns the name of the current worksheet, e.g. =CELL("WorkSheetName"). Is there such a function? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
display current cell contents in another worksheet | Excel Worksheet Functions | |||
Saving current worksheet on cell value change | New Users to Excel | |||
How to get current worksheet name to display in a cell? | Excel Worksheet Functions | |||
Display multiple tabs in current worksheet | Excel Worksheet Functions | |||
I need current value of one worksheet into another cell? | Excel Worksheet Functions |