+ Reply to Thread
Results 1 to 4 of 4

Help Using Offset to Count Values in Sections

Hybrid View

  1. #1
    Registered User
    Join Date
    04-26-2024
    Location
    USA
    MS-Off Ver
    365
    Posts
    1

    Question Help Using Offset to Count Values in Sections

    Hello, I am trying to write a formula so that I can drag it down across many cells.
    Basically, I want A:1 to count values in B1:B10, A:2 to count values in B11:B12, and so on.
    I would like to be able to autofill column A rather than have to manually change the formula for each cell. Currently, when I drag the formula down, after counting B1:B10, it starts counting B2:B11.

    Thank you for any help you can offer!

  2. #2
    Registered User
    Join Date
    05-05-2016
    Location
    California, US
    MS-Off Ver
    Office365
    Posts
    6

    Re: Help Using Offset to Count Values in Sections

    The formula in A1 would be:

    =SUM(OFFSET($A$1,(ROW()*10)-10,1,10,1))
    Then copy down.

    Change SUM to COUNT if that's the function you want, or COUNTA. You get the idea.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,813

    Re: Help Using Offset to Count Values in Sections

    Another way, purely because I don't like OFFSET:
    Formula: copy to clipboard
    =LET(b,B:B,  base,(ROW()-1)*10,  SUM(INDEX(b,base+1):INDEX(b,base+10)))
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,813

    Re: Help Using Offset to Count Values in Sections

    To give you more flexibility:
    Formula: copy to clipboard
    =LET(b,B:B,  incr,10,  base,(ROW()-1)*incr,  SUM(INDEX(b,base+1):INDEX(b,base+incr)))


    Change the incr variable if you want more or less rows.

+ 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. [SOLVED] Sumifs with offset or index matching with offset and less than values problem
    By hbuzz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-23-2023, 06:29 AM
  2. [SOLVED] Copy & Paste Multiple sections as values
    By Webbers in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-16-2019, 12:38 AM
  3. [SOLVED] Average the smallest 20 values of several sections of a list
    By Aso89 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-12-2014, 05:15 AM
  4. Compare values between 2 sections
    By nironto in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-07-2013, 03:35 AM
  5. [SOLVED] Count Distinct Values OFFSET
    By GregM56 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-22-2013, 10:13 AM
  6. Sort Different sections based on values in a column
    By thelegazy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-26-2013, 02:28 AM
  7. Formula to count based on various different sections
    By rikkiholland in forum Excel General
    Replies: 13
    Last Post: 11-11-2009, 12:58 PM

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