+ Reply to Thread
Results 1 to 6 of 6

summing cells in a periodic order

  1. #1
    Registered User
    Join Date
    02-27-2007
    Posts
    4

    Question summing cells in a periodic order

    hi friends,
    i'm looking for a solution for my problem... the situation is; i have a huge number of rows and i want to add some data like this:
    A1+A6+A11+A11+A16+A21+A26+A31+A36.... and goes on with an increment of 5 cells. but inserting this to the formula bar is very time consuming. i hope there is an easy way of doing this. and i will be very glad to hear it from you. by this way i can spend the time which i gained from this job by praying for you )

    thank you guys, waiting for your replies...

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    You can do it with an array formula ... use Control Shift Enter instead of Enter
    Please Login or Register  to view this content.
    HTH
    Carim


    Top Excel Links

  3. #3
    Forum Contributor
    Join Date
    01-24-2007
    Location
    Southampton, UK
    Posts
    137
    Try the following formula....

    =SUM(IF(MOD(ROW(A1:A65000),5)=1,A1:A65000,0))

    This must be entered as an array formula by typing it in then using Ctrl Shift and Enter simultaneously (so that the formula has {} braces around it).

    The formula divides the row numbers by 5 and if there is a remainder of 1 (e.g. A6, A11, etc) then the contents are summed.

    The formula goes up to row 65,000 which should be plenty.

    (Techie note: it doesn't seem to work by simply specifying the whole column e.g using A:A)

    Rats! Pipped to the answer by Carim!

  4. #4
    Registered User
    Join Date
    02-27-2007
    Posts
    4

    Thumbs up

    thank you very much guys, that looks pretty good...

  5. #5
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Glad it fixed your problem ...

    Thanks for the feedback

  6. #6
    Registered User
    Join Date
    02-27-2007
    Posts
    4
    that fixed the problem with a few corrections
    also the method gave me an insight and spreaded the solution to other problems )

    i'm new on the forum, and i liked it very much... you are doing a very good job

    Quote Originally Posted by Carim
    Glad it fixed your problem ...

    Thanks for the feedback

+ 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