+ Reply to Thread
Results 1 to 6 of 6

I can countifs a range but not sumifs

  1. #1
    Registered User
    Join Date
    07-21-2014
    Location
    Pacific
    MS-Off Ver
    2010
    Posts
    23

    I can countifs a range but not sumifs

    I have bee using the following to count in a column , now i want to add those that are within that range . I tought you would just change count to sum but obviously not, to few arguments

    =COUNTIFS(G2:G1011,">="&6,G2:G1011,"<="&10)

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: I can countifs a range but not sumifs

    =SUMIFS(g2:g1011,g2:g1011,">="&6,g2:g1011,"<="&10)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  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: I can countifs a range but not sumifs

    Yes, a SUMIF would have one more range at the beginning. You just happen to be doing all the work in the same column, but that's not always the case.


    =COUNTIFS(G2:G1011,">=6",G2:G1011,"<=10")

    =SUMIFS(G2:G1011, G2:G1011,">=6",G2:G1011,"<=10")
    _________________
    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
    07-21-2014
    Location
    Pacific
    MS-Off Ver
    2010
    Posts
    23

    Re: I can countifs a range but not sumifs

    perfect thankyou!!!

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: I can countifs a range but not sumifs

    Here's another way...

    =SUMIF(G:G,">=6")-SUMIF(G:G,">10")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

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

    Re: I can countifs a range but not sumifs

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Countifs and Sumifs VBA code with criterias between 2 date range
    By Jul Stev in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-05-2013, 07:08 AM
  2. Need help in Excel SUMIFS + COUNTIFS
    By milehisweetipie in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 05-24-2013, 08:11 PM
  3. Sumifs/Countifs with multiple and's and or's
    By falcontrainer in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-19-2013, 01:26 PM
  4. Sumifs, countifs 2007
    By somesoldiers in forum Excel General
    Replies: 1
    Last Post: 03-28-2011, 04:28 PM
  5. Sumifs and countifs
    By JohnGault82 in forum Excel General
    Replies: 3
    Last Post: 02-03-2011, 05:31 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