LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Sheet Name to Fill Cell

"RoadKill" wrote:
I was just wondering if it is possible to fill a field with a sheet name. So
if my sheet is named John Doe, can cell A1 be prefilled with that name?


The book must be saved first

Click Insert Name Define
Put under "Names in workbook:": WSN
Put in the "Refers to:" box:
=MID(CELL("Filename",INDIRECT("A1")),FIND("]",CELL("Filename",INDIRECT("A1")))+1,32)
Click OK

The above defines WSN as a name we can use to refer to the sheetname in
formulas. It will auto-extract the sheetname implicitly. Technique came from
a post by Harlan.

Test it out:
In any sheet, in any cell, put: =WSN,
and that cell will return the sheet's name
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
 
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
How do I fill a formula on another sheet that repeat every 50 cell Chad Hable Excel Discussion (Misc queries) 2 December 31st 07 11:14 PM
How do I fill a formula on another sheet that repeat every 50 cell Chad Hable[_2_] Excel Worksheet Functions 3 December 31st 07 07:35 PM
Auto Fill Different Sheets same cell on each sheet? confused Excel Discussion (Misc queries) 1 October 6th 07 08:54 AM
Auto fill of cell with information from seperate sheet Ray Excel Worksheet Functions 1 June 14th 07 01:19 AM
Conditionally Fill a sheet row if cell value in another sheet 0 nstx Excel Worksheet Functions 2 November 6th 05 03:04 PM


All times are GMT +1. The time now is 05:14 AM.

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

About Us

"It's about Microsoft Excel"