+ Reply to Thread
Results 1 to 6 of 6

Applying the sum function to non-consecutive blocks of cells

  1. #1
    Registered User
    Join Date
    11-23-2013
    Location
    Oregon
    MS-Off Ver
    Excel Starter 2010
    Posts
    15

    Applying the sum function to non-consecutive blocks of cells

    Hi all,

    I'm trying to use the sum formula to add up blocks of 15 cells at a time. For example, I want to add E1:E15; then E16:E30; then E31:E45. If I type in =sum(E1:E14), and then copy the formula and apply it to the next cell, it returns the sum of E2:15. In other words, Excel will add up 15 cells, but not the 15 cells I want it to add up. What kind of command can I use to tell Excel to sum up certain blocks of cells?

    Thanks!

    -Rose

  2. #2
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Applying the sum function to non-consecutive blocks of cells

    ie range data at E1:E45

    first formula

    =SUM(OFFSET($E$1,(ROW(1:1)-1)*15,,15))

    copy down

  3. #3
    Registered User
    Join Date
    11-23-2013
    Location
    Oregon
    MS-Off Ver
    Excel Starter 2010
    Posts
    15

    Re: Applying the sum function to non-consecutive blocks of cells

    Thanks so much! This works perfectly.

  4. #4
    Registered User
    Join Date
    11-23-2013
    Location
    Oregon
    MS-Off Ver
    Excel Starter 2010
    Posts
    15

    Re: Applying the sum function to non-consecutive blocks of cells

    Now I'd like to do the same thing, except with 8 cells at a time and calculating the 95% confidence interval instead of just the sum. The formula I am using is: confidence(0.05,A1,8) where A1 would be the cell that contains standard deviation, and 8 is the sample size. How can I apply this to a 8 cells, then the next 8 cells, then so on?

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Applying the sum function to non-consecutive blocks of cells

    Try this
    =confidence(0.05,Offset(A1,(Row(A1)-1)*8),8)
    drag down.

  6. #6
    Registered User
    Join Date
    11-23-2013
    Location
    Oregon
    MS-Off Ver
    Excel Starter 2010
    Posts
    15

    Re: Applying the sum function to non-consecutive blocks of cells

    Actually I realized that I need to do that for the standard deviation, not the confidence interval, so I went back and modified the sum offset function the previous user posted. Then I made another column for confidence interval and simply referred to the standard deviation cell, and copied that down. Thanks so much for your help.

+ 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. Replies: 1
    Last Post: 05-29-2013, 10:35 AM
  2. Using macros to identify blocks of data and summarise those blocks
    By gophbeav in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-05-2012, 04:35 AM
  3. Applying formatting to specific repeated blocks of text in Mail Merge generated documents
    By Uncle Bojangles in forum Word Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2012, 08:47 AM
  4. Replies: 2
    Last Post: 07-13-2011, 01:40 PM
  5. applying formula repeatedly to blocks of cells
    By bsobaid in forum Excel General
    Replies: 3
    Last Post: 08-30-2010, 06:11 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