Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mohan De Silva
 
Posts: n/a
Default Insert file name in cells

I need to insert the file name in a cell of the work page (with a funtion)
and be able to change automatically if & when the file name id edited. I Use
this on a cover page .
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ashish Mathur
 
Posts: n/a
Default Insert file name in cells

Deare De Silva,

Try the following array formula (Ctrl+Shift+Enter)

=MID(CELL("filename"),MATCH("[",MID(CELL("filename"),ROW(1:150),1),0)+1,MATCH(". ",MID(CELL("filename"),ROW(1:150),1),0)-MATCH("[",MID(CELL("filename"),ROW(1:150),1),0)-1)

WHen you change the filename, i guess you would have to vlose and reopen the
file.

Regards,

Ashish Mathur

"Mohan De Silva" wrote:

I need to insert the file name in a cell of the work page (with a funtion)
and be able to change automatically if & when the file name id edited. I Use
this on a cover page .

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mohan De Silva
 
Posts: n/a
Default Insert file name in cells

Hello Ashish,

Tried entering the formula, but give result #VALUE!. What do you mean by
(Ctrl+Shift+Enter) is this to be done in the cell before entering the formula
??

Thanks & appreciate assistance
Mohan De Silva


"Ashish Mathur" wrote:

Deare De Silva,

Try the following array formula (Ctrl+Shift+Enter)

=MID(CELL("filename"),MATCH("[",MID(CELL("filename"),ROW(1:150),1),0)+1,MATCH(". ",MID(CELL("filename"),ROW(1:150),1),0)-MATCH("[",MID(CELL("filename"),ROW(1:150),1),0)-1)

WHen you change the filename, i guess you would have to vlose and reopen the
file.

Regards,

Ashish Mathur

"Mohan De Silva" wrote:

I need to insert the file name in a cell of the work page (with a funtion)
and be able to change automatically if & when the file name id edited. I Use
this on a cover page .

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RagDyer
 
Posts: n/a
Default Insert file name in cells

Check out this web page of John McGimpsey on the subject:

http://www.mcgimpsey.com/excel/formu..._function.html

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"Mohan De Silva" wrote in message
...
Hello Ashish,

Tried entering the formula, but give result #VALUE!. What do you mean by
(Ctrl+Shift+Enter) is this to be done in the cell before entering the

formula
??

Thanks & appreciate assistance
Mohan De Silva


"Ashish Mathur" wrote:

Deare De Silva,

Try the following array formula (Ctrl+Shift+Enter)


=MID(CELL("filename"),MATCH("[",MID(CELL("filename"),ROW(1:150),1),0)+1,MATC
H(".",MID(CELL("filename"),ROW(1:150),1),0)-MATCH("[",MID(CELL("filename"),R
OW(1:150),1),0)-1)

WHen you change the filename, i guess you would have to vlose and reopen

the
file.

Regards,

Ashish Mathur

"Mohan De Silva" wrote:

I need to insert the file name in a cell of the work page (with a

funtion)
and be able to change automatically if & when the file name id

edited. I Use
this on a cover page .


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR
 
Posts: n/a
Default Insert file name in cells

=CELL("filename",A1)

File must be saved before it will work......

Vaya con Dios,
Chuck, CABGx3


"Mohan De Silva" wrote in message
...
I need to insert the file name in a cell of the work page (with a funtion)
and be able to change automatically if & when the file name id edited. I

Use
this on a cover page .





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben
 
Posts: n/a
Default Insert file name in cells

Mohan

Check out Bob Phillips' site for this.

http://www.xldynamic.com/source/xld.xlFAQ0002.html


Gord Dibben Excel MVP

On Thu, 22 Dec 2005 15:52:02 -0800, "Mohan De Silva"
wrote:

I need to insert the file name in a cell of the work page (with a funtion)
and be able to change automatically if & when the file name id edited. I Use
this on a cover page .

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use a cell's value to set the source file name in link Lost in Parsippany Excel Worksheet Functions 2 August 30th 05 05:48 PM
Calculating Cells - Slower in Smaller File Diane Alsing Excel Discussion (Misc queries) 0 February 4th 05 04:17 PM
Challenging Charting C TO Charts and Charting in Excel 0 January 17th 05 06:57 PM
How do I insert an Excel file into a PowerPoint Presentation slid. Barb Excel Worksheet Functions 1 December 11th 04 04:23 PM
How do I insert an Excel file into a PowerPoint Presentation slid. Barb Excel Discussion (Misc queries) 1 December 11th 04 04:22 PM


All times are GMT +1. The time now is 03:51 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"