[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
Solved

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

Posted on 2011-03-16
Medium Priority
386 Views
Thanks,
JP
0
Question by:easycapital
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points

LVL 6

Expert Comment

ID: 35149498
0

LVL 81

Assisted Solution

zorvek (Kevin Jones) earned 1000 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

barry houdini earned 1000 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

ID: 35151029
Barry,

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

Thanks,
JP
0

## Featured Post

Question has a verified solution.

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

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
###### Suggested Courses
Course of the Month13 days, 11 hours left to enroll