Histogram endpoints in Excel

Anonymous
2020-01-31T16:30:56+00:00

How do you change the endpoint inclusion for bins in histograms in Microsoft Excel?

I want 71 to fall into the second bin, not the first. I want 82 to fall into the third bin, not the second, and so on. In other words, Excel is defaulting at (left,right] and I want to change it to [left,right).

I'm a statistics teacher, and this is how we calculate frequency. Any ideas?

Thanks,

Tom

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. triptotokyo-5840 36,676 Reputation points Volunteer Moderator
    2020-02-02T14:49:32+00:00

    Yes my expected results are in that order. And yes, I agree that it seems configurable. I don't see any information in this link to solve this issue, though. Can you point me to a specific location? Snip it and paste the image? I want to include the left endpoint and exclude the right.

    In 2013 here’s what I’ve done (you need to adapt this to your version):-

     - using your data in cells A2:A25

     - and the bins in B2:B6 set as follows 70, 81, 92, 103, 114

    1.

    Data tab

    Analysis group

    Data Analysis

    Histogram

    OK

    2.

    In the window called:-

    Histogram

     - that opens set the following fields as follows:-

    Input Range: $A$2:$A$25

    Bin Range: $B$2:$B$6

    OK

     - to give (see SCREEN SHOT 1).

    Chart appears to have been improved in 2016 version. 

    1 person found this answer helpful.
    0 comments No comments
Answer accepted by question author
  1. Anonymous
    2020-01-31T18:17:18+00:00

    Hello Tommunation

    I am V. Arya, Independent Advisor, to work with you on this issue. Excel logic includes this in first bin only. This is not customizable.

    1 person found this answer helpful.
    0 comments No comments

7 additional answers

Sort by: Most helpful
  1. triptotokyo-5840 36,676 Reputation points Volunteer Moderator
    2020-01-31T20:27:30+00:00

    How do you change the endpoint inclusion for bins in histograms in Microsoft Excel?

    I want 71 to fall into the second bin, not the first. I want 82 to fall into the third bin, not the second, and so on. In other words, Excel is defaulting at (left,right] and I want to change it to [left,right).

    I'm a statistics teacher, and this is how we calculate frequency. Any ideas?

    Thanks,

    Tom

    You've got 6 bins.

    Are your expected results in bin number order?:-

    6

    6

    6

    3

    0

    3

    See here for further information:-

    https://support.office.com/en-us/article/Create-a-histogram-85680173-064b-4024-b39d-80f17ff2f4e8

    I reckon this is configurable (it certainly is in the 2013 version).

    0 comments No comments
  2. Ashish Mathur 101K Reputation points Volunteer Moderator
    2020-01-31T23:40:39+00:00

    Hi,

    One can do so with the COUNTIFS() function.  Create the lower and upper limits in 2 columns and then use the COUNTIFS() function.

    1 person found this answer helpful.
    0 comments No comments
  3. triptotokyo-5840 36,676 Reputation points Volunteer Moderator
    2020-02-01T15:51:47+00:00

    We'd be interested to know if you managed to resolve your problem.

    0 comments No comments