Solved

Formula to get workbook name on a cell (excel 2003)

Posted on 2011-03-16
4
334 Views
Last Modified: 2012-06-27
Thanks,
JP
0
Comment
Question by:easycapital
4 Comments
 
LVL 6

Expert Comment

by:akajohn
ID: 35149498
0
 
LVL 81

Assisted Solution

by:zorvek (Kevin Jones)
zorvek (Kevin Jones) earned 250 total points
ID: 35149512
The formula below returns the workbook file name.

   =IF(CELL("filename", A1)="","",MID(CELL("filename", A1),SEARCH("[",CELL("filename", A1))+1,SEARCH("]",CELL("filename", A1))-SEARCH("[",CELL("filename", A1))-1))

Kevin
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 250 total points
ID: 35149699
This formula should also work to get workbook name and extension

=REPLACE(LEFT(CELL("filename",A1),FIND("]",CELL("filename",A1)&"]")-1),1,FIND("[",CELL("filename",A1)&"["),"")
0
 

Author Closing Comment

by:easycapital
ID: 35151029
Barry,

Your solution was the shortest and simplest.  Thank you Kevin as well.

Thanks,
JP
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Tags from access to excel 3 26
time format showing wrong 12 49
VBA Array, write each column's start position into an array 17 31
Easy Excel formula needed 4 23
Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now