+ Reply to Thread
Results 1 to 3 of 3

Increasing function range by non-one increments.

  1. #1
    Registered User
    Join Date
    06-27-2013
    Location
    Coventry, England
    MS-Off Ver
    Excel 2010
    Posts
    34

    Increasing function range by non-one increments.

    Hello, I'm new here and I know there are dozens of analogous threads around, but I still seem to struggle with this very basic concept. So, sorry in advance!

    So, I'm implementing a COUNTIF function to count the number of occurrences of a single word every 200 rows starting from row number 2. This is the formula I use:

    =COUNTIF(I2:I1201,"star.png")

    Ideally, I want to be able to drag the function down to create a column of numbers that will give the results similar to typing

    =COUNTIF(I2:I201,"star.png")
    =COUNTIF(I202:I401,"star.png")
    =COUNTIF(I402:I601,"star.png")
    =COUNTIF(I602:I801,"star.png")
    =COUNTIF(I802:I1001,"star.png")

    and so on..

    I believe there should be a very quick fix to this problem, but I can't seem to figure it out.

    Thanks in advance!

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Increasing function range by non-one increments.

    Start with

    =COUNTIF(INDEX(I:I,200*(ROW(A1)-1)+2):INDEX(I:I,200*(ROW(A1)-1)+201),"star.png")

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    06-27-2013
    Location
    Coventry, England
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Increasing function range by non-one increments.

    Thank you very much! The function you've provided works like a charm!

    Can you please expand on what you have done, so me and other beginner users cab learn? Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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