+ Reply to Thread
Results 1 to 9 of 9

Calculate sum with conditions

  1. #1
    Forum Contributor
    Join Date
    04-30-2011
    Location
    wirral,england
    MS-Off Ver
    Excel 2010
    Posts
    148

    Calculate sum with conditions

    Hello All
    On the attached worksheet I have blocks of data in cols A to E separated by either date,course or time.Values which correspond with the data are in col G.I would like to add the values in col G for each block and place the results in col J in every row of each block as shown.There are some empty cells and zero values in col G .There are around 70000 rows in the worksheet,I have placed empty coloured rows between the blocks for clarity,there are no empty rows in the data.Many thanks for help given.
    Attached Files Attached Files
    Last edited by bigband1; 12-31-2012 at 10:05 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Calculate sum with conditions

    Put this formula in J2:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    then copy down.

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Calculate sum with conditions

    Please show the desired result in your file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,461

    Re: Calculate sum with conditions

    Blocks are separated by group of time? i.e block 1 time = 405, block 2 time = 440?
    If so, try in J2:
    Please Login or Register  to view this content.
    or, in excel2007+
    Please Login or Register  to view this content.
    Quang PT

  5. #5
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Calculate sum with conditions

    remove the title heading in Cell J1, then use

    Please Login or Register  to view this content.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  6. #6
    Forum Contributor
    Join Date
    04-30-2011
    Location
    wirral,england
    MS-Off Ver
    Excel 2010
    Posts
    148

    Re: Calculate sum with conditions

    Sorry All I have uploaded the wrong data,what im trying to get is the sum of data in col G,with no less than or more than conditions. eg the data in col J2 to j8 for the first block should read 69,that is the sum of data G2 to G8,block 2,J10 to J23 should be 132,that is the sum of G10 to G23.Sorry for the error.

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Calculate sum with conditions

    Maybe you can do as I suggested in #3.

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,461

    Re: Calculate sum with conditions

    So, try this again:
    Please Login or Register  to view this content.

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Calculate sum with conditions

    You can use this instead, then, in J2:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    then copy down.

    Hope this helps.

    Pete

+ 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