+ Reply to Thread
Results 1 to 2 of 2

Specifying number of cells to count?

  1. #1
    Registered User
    Join Date
    02-13-2009
    Location
    MA, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Specifying number of cells to count?

    Does anyone know if there is a way to get excel to count/sum a specific number of cells in an array from a fixed point within that array?

    Putting the formula I want into words would look something like this:

    =SUM(A1:TEN CELLS TO THE RIGHT)

    So I want it to start at cell A1 and sum up all the values to 10 cells to the right. The reason I can't simply write =SUM(A1:J1), is that the number 10 is a variable that I want to be able to change. Instead of typing "10" in the formula, I will reference a cell with that value in it, which I want to be able to change at will.

    I hope this is clear!!

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Specifying number of cells to count?

    If you have your variable in A3 then you can use this formula to sum from A1 for that number of cells

    =SUM(A1:INDEX(1:1,A3))

+ 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