+ Reply to Thread
Results 1 to 4 of 4

Sum figures if they are greater than and less than certain criteria

  1. #1
    Registered User
    Join Date
    11-04-2010
    Location
    Stafford
    MS-Off Ver
    Excel 2003
    Posts
    2

    Sum figures if they are greater than and less than certain criteria

    Hi,
    i'm new to the forum and I am trying to sum the data in a column if it meets certain criteria. the 1st one is anything =>£0 and <£20.01, then i want to sum everything =>20.01 and <£40.00 and so on.
    I'm sure this should be easy, but I can't figure it out, can any one help....

    Thanks
    Last edited by mickygoalie; 11-04-2010 at 11:29 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Sum figures if they are greater than and less than certain criteria

    =SUMIF(A1:A100,">=0")-SUMIF(A1:A100,">20.00")

    sums from 0 to 20... adjust as necessary for other ranges.

    in XL2007.

    =SUMIFS(A1:A100,">=0",A1:A100,"<20.01")

    if your ranges are stored in cells, then you can adjust formula to:

    =SUMIF($A$1:$A$100,">="&X1)-SUMIF($A$1:$A$100,">"&Y1)

    where X1 and Y1 contain your lower and upper bounds.. then you can copy formula down...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sum figures if they are greater than and less than certain criteria

    That would be a SUMPRODUCT() construct:

    =SUMPRODUCT(--($A$1:$A$100>0), --($A$1:$A$100<=20), $A$1:$A$100)

    =SUMPRODUCT(--($A$1:$A$100>20), --($A$1:$A$100<=40), $A$1:$A$100)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    11-04-2010
    Location
    Stafford
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Sum figures if they are greater than and less than certain criteria

    Thanks NBVC
    I knew it would be easy

+ 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