+ Reply to Thread
Results 1 to 10 of 10

Bins Size quantities

  1. #1
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Bins Size quantities

    I have used Data Analysis (Histogram) to calculate the frequency of different bin sizes. I now need to calculate the quantities that relate to the bin sizes? I have attached a sample file.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Bins Size quantities

    I have tried to figure this out but have not been able to. Is this possible?

  3. #3
    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: Bins Size quantities

    what your your expected answer/s be, and how would you get that?
    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

  4. #4
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Bins Size quantities

    Aland, I'm confused with what you want to see... can you give an example of results?

    For some reason, I keep thinking "why don't you just use multiplication"? But I'm sure it's more complicated than that...

  5. #5
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Bins Size quantities

    Sorry, the workbook was a bit confusing. I have removed the blanks and sorted column A in descending order and calculated 2 quantities. I hope this makes sense. I have attached a new sample file.
    Thanks in advance
    Attached Files Attached Files

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Bins Size quantities

    In H14

    =SUMPRODUCT(--($A$2:$A$639>F13),--($A$2:$A$639<F14),$A$2:$A$639)

    Copy up. Does that work for you?
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  7. #7
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Bins Size quantities

    I had to change the formula in cell H2 (>0), but the total does not add up to the total in column A?

  8. #8
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Bins Size quantities

    Change to

    =SUMPRODUCT(--($A$2:$A$639>F13),--($A$2:$A$639<=F14),$A$2:$A$639)

    in H14

  9. #9
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Bins Size quantities

    Thank you very much. Works perfectly. Please explain the: --?

  10. #10
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Bins Size quantities

    Please explain the: --?
    Well explained here

    http://www.xldynamic.com/source/xld....CT.html#format

+ 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