+ Reply to Thread
Results 1 to 4 of 4

Excel, is there a way to sum within column quickly? and then get a total

  1. #1
    Forum Contributor
    Join Date
    04-02-2017
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    403

    Cool Excel, is there a way to sum within column quickly? and then get a total

    Hi guys,

    I have attached my excel sheet. My question relates to column F.

    I want all the yellow cells to be summed in the row above them, and then a total that collects all those sums at the very top for the whole project.
    I think there is a way to do this quickly in excel using inbuilt functions but im not sure.

    Thanks,
    Jimmy

    testfile.xlsx
    Last edited by JimmyWilliams; 09-05-2017 at 04:51 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,723

    Re: Excel, is there a way to sum within column quickly? and then get a total

    You can put this array* formula in cell F5:

    =SUM(INDEX(F:F,MAX(IF(ISNUMBER(SEARCH("section",B$5:B5)),ROW(B$5:B5)))+1):INDEX(F:F,MIN(IF(ISNUMBER(SEARCH("section",B6:B$259)),ROW(B6:B$259)))-1))

    *Note that an array formula needs to be committed using the key combination of Ctrl-Shift-Enter (CSE), rather than the usual < Enter >.

    Then you can copy the formula to the other grey cells down column F. Note that you will need to enter a phrase into B259 which includes the word "section", like "End of section".

    In F4 you can have this formula:

    =SUM(F5:F259)/2

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    04-02-2017
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    403

    Re: Excel, is there a way to sum within column quickly? and then get a total

    Hi peter,

    Ooooooo,
    Very cool!

    I'm liking it.

    However I have another level of summaries that I think you missed.
    F10 is a summary of F11 to F14
    F15 is a summary of F16 to F17
    etc

    Any way to account for this too?
    Will keep trying to adapt what you have given. Have forgotten everything about array formula, but will continue to try.

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

    Re: Excel, is there a way to sum within column quickly? and then get a total

    There is no easy way of doing that, as there is nothing consistent in column B (or column A) which you could use to determine the start and end of the ranges.

    Pete

+ 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. [SOLVED] Adding something quickly to all cells in a column
    By codigirl in forum Excel General
    Replies: 4
    Last Post: 05-01-2015, 05:01 PM
  2. Quickly Get Subtotals From A Column
    By abrogard in forum Excel General
    Replies: 2
    Last Post: 08-28-2013, 12:05 AM
  3. [SOLVED] Merging cells to quickly add information to entire column
    By Erik Thomas in forum Excel General
    Replies: 2
    Last Post: 11-13-2012, 02:34 PM
  4. Replies: 2
    Last Post: 09-02-2011, 03:52 PM
  5. Adding a unique hyperlinks to a column quickly
    By nmss18 in forum Excel General
    Replies: 10
    Last Post: 06-13-2011, 04:15 PM
  6. [SOLVED] How do I quickly fill a formula result into a column of cells?
    By ckirch in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-12-2005, 12:05 PM
  7. [SOLVED] How do I make a column of checkboxes quickly?
    By Kevin Kimbrell via OfficeKB.com in forum Excel General
    Replies: 1
    Last Post: 06-01-2005, 03:05 PM

Tags for this Thread

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