+ Reply to Thread
Results 1 to 3 of 3

Copy Worsksheet Name In Formula

Hybrid View

  1. #1
    Registered User
    Join Date
    03-05-2012
    Location
    omferr own
    MS-Off Ver
    Excel 2003
    Posts
    2

    Copy Worsksheet Name In Formula

    Hi guys

    I'm looking to drag a formula down a column but only want the worksheet name to change, any idea how to do this?

    I'm looking for the formula to do this:

    ='1'!M1
    ='2'!M1
    ='3'!M1

    etc...

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Copy Worsksheet Name In Formula

    you could do this with a formula or macro
    for example, type 1 to 10 in cells A1 to A10, then in B1 type
    ="='"&A1&"'!M1"
    into B1 and copy into B2:B10
    convert the formulas in B1:B10 to values. and search and replace the equals sign with another equals sign to convert the string to a formula

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Copy Worsksheet Name In Formula

    Use INDIRECT()
    =INDIRECT("'"&ROW(A1)&"'!M1")
    Drag Fill Down.

    Or on these lines
    =INDIRECT("'Sheet"&ROW(A1)&"'!M1")
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1