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. Anonymous
    2020-02-02T00:26:09+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.

    0 comments No comments
  2. Anonymous
    2020-02-02T00:31:01+00:00

    Ashish:

    Thanks for the advice. So I can't customize the histogram FUNction? I need to do this on my own? That's what I'm asking here, I myself could always write a code for it, but Microsoft doesn't allow for endpoints to be customized? What fields use histograms in the Excel setup? Because in Statistics it is done left point included right excluded.

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2020-02-02T00:33:14+00:00

    No. I want to see how this is done using the histogram FUNction. I could write a macro if I wanted to make my own.

    In Statistics, it is done left endpoint included, right excluded. What other fields do it the other way?

    0 comments No comments