+ Reply to Thread
Results 1 to 6 of 6

Sum every 12th cell works until 12th iteration ... why?

  1. #1
    Registered User
    Join Date
    03-04-2015
    Location
    Texas
    MS-Off Ver
    2007
    Posts
    23

    Sum every 12th cell works until 12th iteration ... why?

    It was suggested to me to use this series for the sums I needed to get (total streamflow for every month over many many years)

    Please Login or Register  to view this content.
    But the one that represents November in my set (code below) ...

    Please Login or Register  to view this content.
    ... is the one that will not work. I get a "0" result.

    You can see an example of the data setup in the attached screenshot.

    Example4.jpg

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Sum every 12th cell works until 12th iteration ... why?

    Mod(A number,12) will never give you 12, while it may return 0. So you formula should be like this.....

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,369

    Re: Sum every 12th cell works until 12th iteration ... why?

    this part

    MOD(ROW($U$2:$U$100),12)=12))

    change to

    MOD(ROW($U$2:$U$100),12)=0))

    on highlited color from 12 change to 0 (null)

    ahhh late from sktneer...........

  4. #4
    Registered User
    Join Date
    03-04-2015
    Location
    Texas
    MS-Off Ver
    2007
    Posts
    23

    Re: Sum every 12th cell works until 12th iteration ... why?

    Thanks guys! I finally have it working! The pros of this forum rock!

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Sum every 12th cell works until 12th iteration ... why?

    You're welcome. Glad we could help.
    And thanks for the feedback also.

    If that takes care of your original question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Sum every 12th cell works until 12th iteration ... why?

    Another method that you could use, I'm guessing from your screen cap that 'All Jan' is in V18.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Then just drag down, no need to change the formula for each month.

+ 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. Re: How to sum every 12th cell in my data
    By thepinkgeologist in forum Excel General
    Replies: 8
    Last Post: 09-25-2015, 11:17 AM
  2. [SOLVED] add 1 after the 12th month
    By ammartino44 in forum Excel General
    Replies: 4
    Last Post: 04-09-2015, 07:24 PM
  3. how to plot every 12th cell in a row, into a chart
    By dantastic in forum Excel General
    Replies: 2
    Last Post: 12-22-2011, 01:12 PM
  4. Calculating the average of every value in every, say, 12th cell
    By vsnellman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-28-2006, 04:46 PM
  5. [SOLVED] any formula to auto calculate 1st-12th is 12 days pls?
    By Kelly Lim in forum Excel General
    Replies: 13
    Last Post: 06-17-2006, 04:30 AM
  6. [SOLVED] Calendar 1st month ok but 2nd to 12th how.
    By Steved in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-28-2005, 07:05 PM
  7. [SOLVED] rounding to next 12th
    By Amie Barnes in forum Excel General
    Replies: 1
    Last Post: 01-21-2005, 01:06 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