ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Formula (https://www.excelbanter.com/excel-worksheet-functions/96770-formula.html)

Nicola

Formula
 
Can you tell me how to reference a sheet tab name within Excel. I can't
remember what to do. Thanks

Don Guillett

Formula
 
!
sheet3!a1

--
Don Guillett
SalesAid Software

"Nicola" wrote in message
...
Can you tell me how to reference a sheet tab name within Excel. I can't
remember what to do. Thanks




Nicola

Formula
 
thanks but I think my question wasn't clear enough.

I need to enter a formula that returns the name of the worksheet e.g. if the
worksheet was named June I need the formula to return the result June - hope
this makes for sense.

"Don Guillett" wrote:

!
sheet3!a1

--
Don Guillett
SalesAid Software

"Nicola" wrote in message
...
Can you tell me how to reference a sheet tab name within Excel. I can't
remember what to do. Thanks





Gearoid

Formula
 
Try this -

=RIGHT(CELL("filename"),LEN(CELL("filename"))-FIND("]",CELL("filename"),1))

(cell("filename") returns full information including path to the
current worksheet). The worksheet name is the last piece of information
in the string and just before the worksheet name appears a closed
square bracket (]). Once you find that in the string, you just need all
remaining characters in the string after the ]

Ger



Nicola wrote:
thanks but I think my question wasn't clear enough.

I need to enter a formula that returns the name of the worksheet e.g. if the
worksheet was named June I need the formula to return the result June - hope
this makes for sense.

"Don Guillett" wrote:

!
sheet3!a1

--
Don Guillett
SalesAid Software

"Nicola" wrote in message
...
Can you tell me how to reference a sheet tab name within Excel. I can't
remember what to do. Thanks






Nicola

Formula
 
thanks but it returned #value error!

"Gearoid" wrote:

Try this -

=RIGHT(CELL("filename"),LEN(CELL("filename"))-FIND("]",CELL("filename"),1))

(cell("filename") returns full information including path to the
current worksheet). The worksheet name is the last piece of information
in the string and just before the worksheet name appears a closed
square bracket (]). Once you find that in the string, you just need all
remaining characters in the string after the ]

Ger



Nicola wrote:
thanks but I think my question wasn't clear enough.

I need to enter a formula that returns the name of the worksheet e.g. if the
worksheet was named June I need the formula to return the result June - hope
this makes for sense.

"Don Guillett" wrote:

!
sheet3!a1

--
Don Guillett
SalesAid Software

"Nicola" wrote in message
...
Can you tell me how to reference a sheet tab name within Excel. I can't
remember what to do. Thanks






Roger Govier

Formula
 
Hi Nicola

The workbook needs to have been saved before this can work.

--
Regards

Roger Govier


"Nicola" wrote in message
...
thanks but it returned #value error!

"Gearoid" wrote:

Try this -

=RIGHT(CELL("filename"),LEN(CELL("filename"))-FIND("]",CELL("filename"),1))

(cell("filename") returns full information including path to the
current worksheet). The worksheet name is the last piece of
information
in the string and just before the worksheet name appears a closed
square bracket (]). Once you find that in the string, you just need
all
remaining characters in the string after the ]

Ger



Nicola wrote:
thanks but I think my question wasn't clear enough.

I need to enter a formula that returns the name of the worksheet
e.g. if the
worksheet was named June I need the formula to return the result
June - hope
this makes for sense.

"Don Guillett" wrote:

!
sheet3!a1

--
Don Guillett
SalesAid Software

"Nicola" wrote in message
...
Can you tell me how to reference a sheet tab name within Excel.
I can't
remember what to do. Thanks








Mark0

Formula
 
I was looking for this answer also (great minds think alike), but how would
you adjust this to get the tab name of ANOTHER tab in ANOTHER file..?

Thanks,
-Mark

"Roger Govier" wrote:

Hi Nicola

The workbook needs to have been saved before this can work.

--
Regards

Roger Govier


"Nicola" wrote in message
...
thanks but it returned #value error!

"Gearoid" wrote:

Try this -

=RIGHT(CELL("filename"),LEN(CELL("filename"))-FIND("]",CELL("filename"),1))

(cell("filename") returns full information including path to the
current worksheet). The worksheet name is the last piece of
information
in the string and just before the worksheet name appears a closed
square bracket (]). Once you find that in the string, you just need
all
remaining characters in the string after the ]

Ger



Nicola wrote:
thanks but I think my question wasn't clear enough.

I need to enter a formula that returns the name of the worksheet
e.g. if the
worksheet was named June I need the formula to return the result
June - hope
this makes for sense.

"Don Guillett" wrote:

!
sheet3!a1

--
Don Guillett
SalesAid Software

"Nicola" wrote in message
...
Can you tell me how to reference a sheet tab name within Excel.
I can't
remember what to do. Thanks










All times are GMT +1. The time now is 12:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com