+ Reply to Thread
Results 1 to 3 of 3

auto increment worksheet while copying

  1. #1
    Registered User
    Join Date
    09-07-2008
    Location
    Philippines
    Posts
    22

    auto increment worksheet while copying

    How do make an auto increment of worksheet while copying?

    example:

    if i copy one cell(A1) by dragging the mouse, this will be the result:
    (B1 is the worksheet)
    Cell -----> Formula
    A1 -----> =SUM('B1'!$E$3:$E$14)
    A2 -----> =SUM('B1'!$E$3:$E$14)
    A3 -----> =SUM('B1'!$E$3:$E$14)
    and so on...

    the result i want is like this while copying by dragging:

    Cell -----> Formula (B1 is the sheet)
    A1 -----> =SUM('B1'!$E$3:$E$14)
    A2 -----> =SUM('B2'!$E$3:$E$14)
    A3 -----> =SUM('B3'!$E$3:$E$14)
    and so on...

    Need some guidance.. thanks

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    =SUM(INDIRECT("'B"&ROW(A1)&"'!$E$3:$E$14"))
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    09-07-2008
    Location
    Philippines
    Posts
    22
    thanks a lot, it works out fine.

+ 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. Copying Data from 1 Worksheet to another Worksheet (Accumulative data)
    By sharonbl in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 12-28-2007, 08:40 PM
  2. Auto format on worksheet open
    By Kearse56 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-12-2007, 09:23 AM
  3. Replies: 3
    Last Post: 06-22-2007, 05:27 AM
  4. copying format from another worksheet cell
    By Langston in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-12-2007, 05:16 AM
  5. Auto Updating of Worksheet from Other Worksheets
    By crwiseman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-20-2006, 12:53 PM

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