+ Reply to Thread
Results 1 to 7 of 7

How to copy a formula down and skip n cells each time.

  1. #1
    Registered User
    Join Date
    08-29-2010
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    How to copy a formula down and skip n cells each time.

    I have a formula, =countif('JSPC''s'!E5:E18,"E")

    It references the previous worksheet.

    I want to copy this formula down the next 31 rows, but I need to to skip down several cells from the JSPC sheet where it is copying from. It must do this each of the next 31 times.

    For example the next formual would count from cells E25:E38, the next from E45:E58 so on so forth.

    I'm very new with excel and have been looking for a while with no luck on a solution. any help would be appreciated, as I need to do the same thing for a total of 51 columns.

    (Office 2007)

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to copy a formula down and skip n cells each time.

    You don't specify in which cell the first formula appears ... for sake of example let's assume it is B2

    Please Login or Register  to view this content.
    or, if you prefer you can use an OFFSET approach

    Please Login or Register  to view this content.
    though the above has simpler syntax it is Volatile unlike the INDEX approach
    (for more info. on Volatility see the link in my sig.)

    If (as I suspect) the first formula does not appear in B2 modify the references to B2 accordingly though note use of $ in the existing references.

  3. #3
    Registered User
    Join Date
    08-29-2010
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: How to copy a formula down and skip n cells each time.

    Ok, I got the formula to copy down and it works, with one problem. I should have made this more specific; I dont want to have a running count (adding all the instances of "E" on top of the previous formuals. I only want excel to spit out the number of "E's" that occur in each range.

    So range E5:E18 would count the E's in that range and put them in B:4 of the next page.
    The way I have it now it does that for E5:E18 but when it goes to the next range it adds the first (E5:E18) to E25:E38. I want to keep each total seperate.

    I appreciate the help as I'm a complete novice at this.

    If it helps at all, page one has a bunch of individual Job Performance Summary Cards, so each person has there own cell for how many "E's" they receive in a particular category on the second page.
    Last edited by SIGG; 08-29-2010 at 05:19 AM. Reason: ETA more details

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to copy a formula down and skip n cells each time.

    Neither formula provided return a cumulative total when copied (each applies to a specific range E5:E18, E25:E38 etc...)

  5. #5
    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: How to copy a formula down and skip n cells each time.

    Don

    I think you might have missed a multiplier
    B2:
    =COUNTIF(INDEX('JSPC''s'!E:E,5+20*(ROWS(B$2:B2)-1)):INDEX('JSPC''s'!E:E,18+20*(ROWS(B$2:B2)-1)),"E")

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to copy a formula down and skip n cells each time.

    apologies all - thanks for the catch Marcol
    (the OFFSET would have worked however .... )

  7. #7
    Registered User
    Join Date
    08-29-2010
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: How to copy a formula down and skip n cells each time.

    This worked beautifully, and saved me an enormous amount of time. Thanks DonkeyOte and Marcol!

+ 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