+ Reply to Thread
Results 1 to 6 of 6

Drag and drop formula while skipping cells in the reference.

  1. #1
    Registered User
    Join Date
    08-01-2013
    Location
    Morgantown, WV
    MS-Off Ver
    Excel 2010
    Posts
    22

    Drag and drop formula while skipping cells in the reference.

    I was wondering if anyone could help me figure out this problem. In one sheet I have a list of totals that are every 6 rows. I would like to make a rolling total on the next sheet. For example, Sheet2!A1=Sheet1!A1, Sheet2!A2=Sheet1!A8+Sheet2!A1 and so on. Some one please help me with this problem.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Drag and drop formula while skipping cells in the reference.

    sheet 2
    a1=Sheet1!A1,
    a2=SUM(INDEX(Sheet1!A:A,ROW()*7-6))+A1
    fill a2 down
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    08-01-2013
    Location
    Morgantown, WV
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Drag and drop formula while skipping cells in the reference.

    Thank you, that is what I need it to do. It worked when I did that exact thing in sheets that I added onto the workbook however, my data is located in between cells G20:G2738. When I put that into where you had A:A, I received a #VALUE! error. Any ideas?

    Also, I noticed a difference between the formula I was using, I didn't use a comma in between the 7 and the -6 on the example you gave and it worked. However, when using a comma it returns the #VALUE! error as I mentioned. I fixed that, but now it keeps returning only the previous number in the total so I get a column of 10s.

    I guess it may be reading the sum() function as a 0 and then adding the previous cell as it is designed.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Drag and drop formula while skipping cells in the reference.

    a1=
    =Sheet1!G20
    a2=
    =INDEX(Sheet1!$G$20:$G$2378,ROWS($A$1:A2)*7-6)+A1
    Attached Files Attached Files
    Last edited by martindwilson; 08-09-2013 at 08:23 AM.

  5. #5
    Registered User
    Join Date
    08-01-2013
    Location
    Morgantown, WV
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Drag and drop formula while skipping cells in the reference.

    Thank you for the example. I liked the idea of not having the number show up unless there was data for the week. However, when I did that, the number repeated as when it was simplified before until about 40-50 cells later when the "" was recognized. Not sure if you have any ideas as to why that occurs.

    I tried seeing if I could do it another method and I tried =IF(C1=SUM(Sheet1!$G$20:$G$2378),"",INDEX(Sheet1!$G$20:$G$2378,ROWS($A$1:A2)*7-6)+C1, this worked better but it left cells blank if for a week the person didn't work any overtime and then the next week worked some hours. That will not work. That is what I have tried so far.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Drag and drop formula while skipping cells in the reference.

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

+ 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. Drag a formula down one cell, reference cell jumps down four cells?
    By rrbest in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-13-2013, 10:59 AM
  2. [SOLVED] Drag down range formula (skipping one row)
    By thaphthia in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-08-2013, 12:52 PM
  3. [SOLVED] Drag/Fill column while skipping multiple reference rows in another worksheet
    By chandlerrw in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-22-2013, 07:59 PM
  4. Replies: 4
    Last Post: 12-21-2012, 02:56 PM
  5. [SOLVED] how to drag and copy a formula by skipping rows
    By loboexcel in forum Excel General
    Replies: 7
    Last Post: 12-17-2012, 11:18 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