+ Reply to Thread
Results 1 to 5 of 5

Drag formula where sheet name (number) is variable

Hybrid View

  1. #1
    Registered User
    Join Date
    04-12-2014
    Location
    Wroclaw, Poland
    MS-Off Ver
    2013
    Posts
    10

    Drag formula where sheet name (number) is variable

    Hi

    First of all sorry for my english.

    I have a problem with Excel.

    In cell B2 I have formula:
    =ABC_2007_1!$H$11
    Where:
    ABC_2007_1 - name of sheet
    $H$11 - (blocked) cell in this sheet

    I'd like to drag formula down:
    =ABC_2008_1!$H$11
    =ABC_2009_1!$H$11
    =ABC_2010_1!$H$11

    But the problem is that I don't know how to do that excell will change numbers ( 2007 --> 2008, 2008-->2009 etc +1) in sheet name.

    Any idea how to do that?

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Drag formula where sheet name (number) is variable

    You are wanting to use the indirect function and some logic. Can you post a sample workbook and I can show you an easy way to do it (probably using the rows formula within indirect.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    04-12-2014
    Location
    Wroclaw, Poland
    MS-Off Ver
    2013
    Posts
    10

    Re: Drag formula where sheet name (number) is variable

    Sample on my DropBox:

    https://www.dropbox.com/s/bebvy8hz640s6xg/sample.xlsx

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Drag formula where sheet name (number) is variable

    Try this...

    Entered in B2 and copied down as needed:

    =INDIRECT("ABC_"&2006+ROWS(B$2:B2)&"_1!H11")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Drag formula where sheet name (number) is variable

    Tony laid out exactly what I would have done.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Drag number 1 sheet to another sheet.
    By visha_1984 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-09-2014, 05:59 AM
  2. Use formula to drag across but skip n number of cells
    By excelas88 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-14-2013, 09:59 PM
  3. Drag down Formula for specific number of Rows
    By sathyasun in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-26-2013, 08:46 AM
  4. How to drag a formula increasing tab number only?
    By Ba1ley in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 04-22-2013, 01:26 PM
  5. Replies: 2
    Last Post: 03-17-2005, 12:06 AM

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