CELL Function and Worksheet Name in a Cell

  • Thread starter Thread starter David
  • Start date Start date
D

David

I have a workbook with 23 worksheets.

I need the worksheet name to be automatically inserted into a
cell on each worksheet.

Worksheet names are all 5 characters - example is 14-01

I'm using =Right(Cell("Filename"),5)

It works - sort of. But does not automatically calculate. When I
recalculate every worksheet gets the same value (the number of
the active worksheet when I press F9)

Is this just a quirk of Excel, or is there another way to do it?

Thanks for any help.
 
OK - I solved my own problem.

Change the formula to be:

=Right(Cell("Filename",B5),5) where B5 is the cell where the
formula is.
 
David

You can use any cell reference.....but you must use one, as you have discovered.


Gord Dibben MS Excel MVP
 

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