+ Reply to Thread
Results 1 to 2 of 2

Replicate range names in multiple sheets

  1. #1
    Registered User
    Join Date
    04-21-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Replicate range names in multiple sheets

    I have a work sheet with range named cells. For example, sheet1_sales_cars.

    I want to replicate/copy this sheet mutliple times. How can I also replicate/copy the range names without having to go into each new sheet and range naming each cell?

    The only change I want to make after replicating/copying the range names in the new sheets is to search/replace "sheet1" in sheet1_sales_cars with "sheet2" and so on.

    This is possible as I am copying/pasting the raw data into the same fixed location in the sheets. This all then flows into a master file for data overview.

    Thanks.

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Replicate range names in multiple sheets

    It might be possible with some combination of the Indirect, Mid, and Cell functions. For example, this formula will sum A1:B1 on any given sheet: =SUM(INDIRECT("'"&MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,256)&"'!"&"A1:B1"))

    I would assume your formulas are more complex, but you can replace "A1:B1" with "A1:B"&Index(B:B,Match(99^99,B:B)) to get to the last value in B (and so handle variable ranges) or other such manipulations. Hope this helps. If you're still stuck, please post back with an example of the folder or the formulas you're working with. Note that you will only have to create one named range that should work with any sheet.
    Life is about perseverance. Remember: today's mighty oak tree is just yesterday's nut that held its ground.

    If you like a post, please rate it with the scales icon (top right).
    If you feel really indebted, please consider a donation to charity, such as Feed the Children or Habitat for Humanity.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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