Escape Character

C

Carl

Attempting to reference another worksheet within a cell;
Sense the worksheet name is dynamic I want to use a
formula to reference the worksheet name ...'tab[1-
50]'$c$3...the items in bracket will get its number from
another cell.
 
A

Andy Brown

=INDIRECT(C1&"!A1")

, where tab name is in C1. So if C1 = "Sheet2", the formula returns
Sheet2!A1.

Rgds,
Andy
 
C

Carl

Thank you! What about copying a Tab name into a cell?...I
want to automatically copy the current Tab's name into a
cell.
 
A

Andy Brown

This formula will return the tab name in any of its cells -

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

The file must be saved first or it'll return an error.

HTH,
Andy
 

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

Top