insert sheet tab name on the spreadsheet, not in the header

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Excel - I would like to refer to the sheet tab name on the spreadsheet...I
know you can use the simple (tab) command in the header, but what would be
the "formula" you would put in a cell to refer to the sheet tab name...ie
={tab}?
 
Use the following formula:

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,32)

The file must have been saved to disk for this to work.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
That did it...Awesome....

Chip Pearson said:
Use the following formula:

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,32)

The file must have been saved to disk for this to work.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



donaldD said:
Excel - I would like to refer to the sheet tab name on the
spreadsheet...I
know you can use the simple (tab) command in the header, but
what would be
the "formula" you would put in a cell to refer to the sheet tab
name...ie
={tab}?
 
This works, but cuts off the rest of the filename and xls extention.

I want the cell to contain (example): ftx07715s-1/31/05 as the filename
contains a date.

Thanks.

donaldD said:
That did it...Awesome....

Chip Pearson said:
Use the following formula:

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,32)

The file must have been saved to disk for this to work.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



donaldD said:
Excel - I would like to refer to the sheet tab name on the
spreadsheet...I
know you can use the simple (tab) command in the header, but
what would be
the "formula" you would put in a cell to refer to the sheet tab
name...ie
={tab}?
 
This does work but would you explain this formula to me. Is there a website
that will breakdown the formula to explain it to me?

Chip Pearson said:
Use the following formula:

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,32)

The file must have been saved to disk for this to work.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



donaldD said:
Excel - I would like to refer to the sheet tab name on the
spreadsheet...I
know you can use the simple (tab) command in the header, but
what would be
the "formula" you would put in a cell to refer to the sheet tab
name...ie
={tab}?
 
Hi

=CELL("Filename",A1)
will return something like
C:\Data\[Sales.xls]Sheet1

FIND("]",CELL("filename",A1))
will return the position of the ] within the string (position 19)

MID(the number returned from above+1,32)
will return that portion of the string starting 1 character after the
position of the ], (20) and return the next 32 characters
i.e. Sheet1

The number of characters to pick up could be set at any arbitrary number
that is likely to be greater than the length of the sheet name.
--
Regards
Roger Govier



esparzaone said:
This does work but would you explain this formula to me. Is there a
website
that will breakdown the formula to explain it to me?

Chip Pearson said:
Use the following formula:

=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,32)

The file must have been saved to disk for this to work.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



donaldD said:
Excel - I would like to refer to the sheet tab name on the
spreadsheet...I
know you can use the simple (tab) command in the header, but
what would be
the "formula" you would put in a cell to refer to the sheet tab
name...ie
={tab}?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top