+ Reply to Thread
Results 1 to 5 of 5

Sum all cells meeting condition

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-06-2011
    Location
    cleveland
    MS-Off Ver
    Excel 2007
    Posts
    225

    Sum all cells meeting condition

    i have a very large spreadsheet so i am trying to find an efficient way to accomplish what i am working on.

    in column sz, there will be one of 31 text options that will be inputted down the 1000 rows. what i need to do is a simple statement, non VBA preferably, that will sum all of the cells in column H if the corresponding cell in column sz = "option 1"

    i have been able to do it by doing a simple if statement with A LOT of helper columns but this bogs down the system WAY too much as i have approximately 50 columns that i need to do this for each of the 31 options. i did this on a separate worksheet and went past column BAA so i very much need a quicker and more efficient way. anybody have any thoughts?

    excel 2007

    thank you for any help
    Last edited by NBVC; 03-04-2011 at 09:23 AM. Reason: Op had marked solved incorrectly.

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: Sum all cells meeting condition

    Hi,

    Does this give the result you want?
    =SUMIF(SZ:SZ,"option 1",H:H)
    If yes and you want to summarise for all 31 text options, you might want to consider using a pivot table which will quickly give a sum of column H for each different value in column SZ.
    Hope that helps,

    Colin

    RAD Excel Blog

  3. #3
    Forum Contributor
    Join Date
    01-06-2011
    Location
    cleveland
    MS-Off Ver
    Excel 2007
    Posts
    225

    Re: Sum all cells meeting condition

    yes this suits my needs perfectly. thank you for such quick response too

  4. #4
    Forum Contributor
    Join Date
    01-06-2011
    Location
    cleveland
    MS-Off Ver
    Excel 2007
    Posts
    225

    Re: [solved] Sum all cells meeting condition

    how would i go about setting up a pivot table? sorry but i am still relatively new and dont know the more advanced features yet

  5. #5
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: [solved] Sum all cells meeting condition

    Hi,

    I searched google for an online tutorial on getting started with Pivot tables in Excel 2007 and this was one of the first hits:
    http://www.howtogeek.com/howto/6416/...in-excel-2007/

    Plenty more on google if you want to see more.

+ 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