+ Reply to Thread
Results 1 to 4 of 4

Summing multiple ranges based on criteria....

  1. #1
    Forum Contributor
    Join Date
    11-26-2008
    Location
    UK
    MS-Off Ver
    Using Excel 2019
    Posts
    317

    Summing multiple ranges based on criteria....

    Hi,

    I thought i'd cracked this but my formula doesn't seem to be working correctly, and it's a bit unwieldy (ie long!), so im hoping someone can offer a better solution...

    I have 9 columns of numbers: A9:A200 across to: I9:I200. I have to work out the total number of values in those columns that fit the following criteria:

    <40
    40-49
    50-59
    60-69
    70-79
    80+


    This is slightly complicated by the fact that should the value 39v appear in any of the columns, should be counted alongside the other numbers that are<40. Anyone any suggestions?
    Last edited by Barking_Mad; 02-26-2014 at 06:42 AM.

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Summing multiple ranges based on criteria....

    try using countifs for first condition would be
    =COUNTIFS($A$9:$I$200,">"&0,$A$9:$I$200,"<"&40)

    to Count in individual columns you could do
    =COUNTIFS(A$9:A$200,">"&0,A$9:A$200,"<"&40) and drag to right
    Last edited by hemesh; 02-26-2014 at 05:38 AM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Summing multiple ranges based on criteria....

    I'd add the 39v to this by:
    =COUNTIF($A$9:$I$200,"<40") +COUNTIF($A$9:$I$200,"39v")
    for next ranges:
    =COUNTIFS($A$9:$I$200,">=40",$A$9:$I$200,"<50")
    etc
    and the last one again countif is enough:
    =COUNTIF($A$9:$I$200,">=80")

    as for individual columns - follow changes by hemesh (instead of $A$9:$I$200 -> A$9:A$200) in above formulas
    Last edited by Kaper; 02-26-2014 at 05:41 AM.
    Best Regards,

    Kaper

  4. #4
    Forum Contributor
    Join Date
    11-26-2008
    Location
    UK
    MS-Off Ver
    Using Excel 2019
    Posts
    317

    Re: Summing multiple ranges based on criteria....

    Thanks, super

+ 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. Summing Based on Multiple Criteria
    By SJT in forum Excel General
    Replies: 4
    Last Post: 02-12-2015, 01:31 AM
  2. [SOLVED] Summing Range based on Criteria of Two Other Ranges
    By kidsick in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-14-2013, 10:35 PM
  3. Summing values in named ranges based on dates, multiple sheets!
    By giggsteve8 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-02-2013, 01:42 PM
  4. Summing based on multiple criteria
    By Environment in forum Excel General
    Replies: 2
    Last Post: 08-23-2011, 10:19 AM
  5. Replies: 13
    Last Post: 07-08-2009, 04:27 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