+ Reply to Thread
Results 1 to 8 of 8

how to drag and copy a formula by skipping rows

  1. #1
    Registered User
    Join Date
    12-16-2012
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    7

    Thumbs up how to drag and copy a formula by skipping rows

    I am asking for help for the following issues:
    I have in cell D206 the following formula =COUNTIF(D8:AE8,">=3")
    I would like to drag down and copy this formula under the next 40 cell bellows.
    But I do not want to obtain the following result:
    In Cell D207 ___ =COUNTIF(D9:AE9,">=3")
    In Cell D208 ___ =COUNTIF(D10:AE10,">=3")
    In Cell D209 ___ =COUNTIF(D11:AE11,">=3")
    In Cell D210 ___ =COUNTIF(D12:AE12,">=3")
    And so on (Rows are incremented by one)
    I would like to obtain the following result when I drag down the formula by skipping each row by 8:
    In Cell D207 ___ =COUNTIF(D16:AE16,">=3")
    In Cell D208 ___ =COUNTIF(D24:AE24,">=3")
    In Cell D209 ___ =COUNTIF(D32:AE32,">=3")
    In Cell D210 ___ =COUNTIF(D40:AE40,">=3")
    And so on
    Your help is much appreciated
    Thank you
    Last edited by loboexcel; 12-17-2012 at 10:38 AM. Reason: SOLVED

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: how to drag and copy a formula by skipping rows

    This regular formula, copied down, mimics that behavior:
    D206: =COUNTIF(INDEX(D:D,ROWS($206:206)*8):INDEX(AE:AE,ROWS($206:206)*8),">=3")

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    12-16-2012
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    7

    Question Re: how to drag and copy a formula by skipping rows

    With your help I start getting the idea how index work. I tried to use your suggestion but did not work.

    I am not an expert in this matter, but I notice in your answer that you mention to use the data from cell D206 in the same cell D206 formula (it seems to me that the cell is trying to use the data from itself). I would like to use the data from cell D16, D24, D32 and so on and AE16, AE24, AE32 and so on.

    I appreciate your help in this matter

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: how to drag and copy a formula by skipping rows

    I think what Ron meant was that his formula was to be entered IN D206
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    12-16-2012
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    7

    Question Re: how to drag and copy a formula by skipping rows

    Thank you gentlemen for helping me in my Excel Odyssey.
    I believe I am not presenting my problem correctly since your guidance is not giving me the result desire….. so blame the messenger (myself).
    Let me see if I express my problem in another example may give clarity to my difficulty:
    Let say I have the following data in the following cells (array):
    In the first row I have A1:3, in D1:2 and in G1:5.
    In the second row I have A4:5, in D4:3 and G4:4.
    This will continue in several rows, always skipping two rows.
    Then I have in cell A28: =COUNTIF(A1:G1,">=3")
    Then I would like to drag/copy down cell A28 and I would like each new cell/formula to take the from the following row above. In another word I expect the following result in each cell:
    A28: =COUNTIF(A1:G1,">=3")
    A29: =COUNTIF(A4:G4,">=3")
    A30: =COUNTIF(A7:G7,">=3")
    This will continue in several rows.
    I have a large data which entering this formula manually will take long time.
    Your help it is appreciated
    Thank you very much in advance

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: how to drag and copy a formula by skipping rows

    Same principle as my previous post...
    Please Login or Register  to view this content.
    Copy that formula down as far as you need.

  7. #7
    Registered User
    Join Date
    12-16-2012
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    7

    Thumbs up Re: how to drag and copy a formula by skipping rows

    Oh man….. you are an Excel Guru!!
    The formula works!!! Eureka!!!
    Thank you very much !!!! and Happy Holidays!!!

  8. #8
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: how to drag and copy a formula by skipping rows

    You're very welcome...I'm glad I could help.

+ 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