Adrian's Web Log
Adrian's second brain.
  • Home
  • IT News
  • Automotive News
  • Lifestream

excel

Excel code snippets for file, path and tab names in cells

From xlDynamic.com
File path, file and worksheet name:
=CELL(“filename”,A1)
File path only:
=LEFT(CELL(“filename”,A1),FIND(“[",CELL("filename",A1),1)-1)
File name only:
=MID(CELL("filename",A1),FIND("[",CELL("filename",A1),1)+1,
FIND("]“,CELL(“filename”,A1),1)-FIND(“[",CELL("filename",A1),1)-1)
The sheet name:
=MID(CELL("Filename",A1),FIND("]“,CELL(“Filename”,A1))+1,255)
Restriction: this technique only works for workbooks that have been saved at least once.

Posted in Reference | Tagged code, excel | Leave a response

Categories

  • Food
  • IT
  • Personal
  • Play
  • Reference
  • T&C Feed
  • Uncategorized
  • Work

Tags

.htaccess 1and1 2.3 0845 0870 A1 anagram ascii auto B1 bunglaow cancel canonical centre of gravity Chickens chinese-fonts Christmas Christopher classes CMS code COG contacts-premises contract conversion dbm default defrag domain-name domesday done EAN eBay epos esc/pos excel family fasterfox google-maps internet Magento motiveAuto sap todo wordpress

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Bookmarks

  • Jonathan's Blog
  • Libby's Blog
  • NuBlue Admin
  • Train and Certify
  • Victoria's Blog

Random Tags

  • todo
  • wordpress
  • Magento
  • sap
  • code

Monthly

  • January 2010
  • December 2009
  • September 2009
  • August 2009
  • July 2009

Yearly

  • 2010
  • 2009
  • 2008
  • 2007