=cell(filename) help

A

Antonio

Hi guys,

I have a great formula that returns the name of every tab
I have in my workbook.

=RIGHT(CELL("filename",'Jul-04'!$A$1),LEN(CELL
("filename",'Jul-04'!$A$1))-FIND("]",CELL("filename",'Jul-
04'!$A$1),1))

I was wondering if anyone knows how to manipulate this
formula so I get only the 04 part of the formula. Each
tab is a month and a year. So for example if the tab is
Jul-04, I want a formula to return only 04.

Than I want to combine that formula with this one:

"INSTYLE "&F12&" 2002"

so instead of the user to have to go back and change 2002
to 2004. the formula will do it automatically

Any ideas?

Antonio
 
B

Bob Phillips

Antonio,

Put this in an adjacent cell

=MID(F8,FIND("-",F8)+1,99)

change F8 to your cell

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
A

ant

Thanks Bob

Worked like a charm
-----Original Message-----
Antonio,

Put this in an adjacent cell

=MID(F8,FIND("-",F8)+1,99)

change F8 to your cell

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

Hi guys,

I have a great formula that returns the name of every tab
I have in my workbook.

=RIGHT(CELL("filename",'Jul-04'!$A$1),LEN(CELL
("filename",'Jul-04'!$A$1))-FIND("]",CELL ("filename",'Jul-
04'!$A$1),1))

I was wondering if anyone knows how to manipulate this
formula so I get only the 04 part of the formula. Each
tab is a month and a year. So for example if the tab is
Jul-04, I want a formula to return only 04.

Than I want to combine that formula with this one:

"INSTYLE "&F12&" 2002"

so instead of the user to have to go back and change 2002
to 2004. the formula will do it automatically

Any ideas?

Antonio


.
 

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