+ Reply to Thread
Results 1 to 16 of 16

Count qty between ranges

  1. #1
    Registered User
    Join Date
    05-30-2013
    Location
    Pascagoula, Mississippi
    MS-Off Ver
    Excel 2010
    Posts
    7

    Count qty between ranges

    I have a range of number from 159 to 300. i would like to have a formula that would tell me how many number are between 200 and 225, 226 and 250, and 251 and 300.

    thank you very much
    Last edited by FDibbins; 05-30-2013 at 06:39 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,969

    Re: need help with a formula

    Hi and welcome to the forum

    We would love to help you with your question, but 1st, in accordance with forum rule, please rename your thread to something more meaningful, that actually describes your problem.

    Because thread titles are used in searching the forum it is vital they be written to accurately describe your thread content or overall objective using ONLY search friendly key words. That is, your title used as search terms would return relevant results.

    Also, many members will look at a thread title, and if it is of interest to them, or it falls within their area of expertese, they might only open those threads.

    Look at it this way...if you typed that title into google, what would you expect to get back?
    To change a Title on your post, click EDIT on you're 1st post, then Go Advanced and change your title
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-30-2013
    Location
    Pascagoula, Mississippi
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: need help with a formula

    Sir, I am not trying to be funny, but that is my problem, I am a novice at this, all I know is some of the basic.
    this is my first time using this forum. maybe you can suggest what to change it to.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,969

    Re: Count qty between ranges

    I have changed it for you

    Try this, and change the crieria for each range...
    =COUNTIFS(A1:A10,">=200",A1:A10,"<=225")

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count qty between ranges

    with pivot table and grouping.

    see the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    Registered User
    Join Date
    05-30-2013
    Location
    Pascagoula, Mississippi
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Count qty between ranges

    I tired that it but didn't work.

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count qty between ranges

    @headmore

    Please reply to whom you responding.


    Please Login or Register  to view this content.
    => it's I'm tired or do you mean I tried

  8. #8
    Registered User
    Join Date
    05-30-2013
    Location
    Pascagoula, Mississippi
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Count qty between ranges

    I mean I tried, sorry about that.

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count qty between ranges

    You don't give an answer which solution won't work.

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,969

    Re: Count qty between ranges

    i would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, a few examples of what your expected outcome is, and how you arrived at that
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  11. #11
    Registered User
    Join Date
    05-30-2013
    Location
    Pascagoula, Mississippi
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Count qty between ranges

    see attached
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    05-30-2013
    Location
    Pascagoula, Mississippi
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Count qty between ranges

    I have attached a sample work book

  13. #13
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,969

    Re: Count qty between ranges

    If Im looking in the right place (B10?), then...
    =COUNTIFS(C16:E33,">=200",C16:E33,"<=225") (you had 250 instead of 225?)

  14. #14
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,969

    Re: Count qty between ranges

    And your next formula needs to be
    =COUNTIF(C16:E33,">225")
    not
    =COUNTIF(C16:E33,">=225")
    otherwise you will be including 225 twice - so pick which range you want it in?

  15. #15
    Registered User
    Join Date
    05-30-2013
    Location
    Pascagoula, Mississippi
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Count qty between ranges

    I tried 225, 250 and it still return a 0

  16. #16
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,969

    Re: Count qty between ranges

    I used my formula in post 14 and they

    You have...
    =COUNTIFS(C16:E33,"=>200,C16:E33,"<="250")
    compare that to the formula I gave you...
    =COUNTIFS(C16:E33,">=200",C16:E33,"<=225")
    Mine gives an answer of 15

+ 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