Histogram Development

Pestomania

Active Member
Joined
May 30, 2018
Messages
313
Office Version
  1. 365
Platform
  1. Windows
Good day all,

I am working on a dataset and trying to create some formulas and a histogram for the year, but I am getting a lot of issues whenever I try to do do it.

Please see the chart below which shows three columns of the same vertical set (i.e. (2000, 2001]). Not sure what to do to make this correct.

Link to the dataset: Arrests Dataset

Thank you for any help!

1721259060228.png
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
You given us no information on how you're getting the x-axis to look like this.

But it should be very simple to specify:

1721271216018.png
 
Upvote 0
You given us no information on how you're getting the x-axis to look like this.

But it should be very simple to specify:

View attachment 114211


Hi Stephen, I apologize. I downloaded the dataset and selected the entire year column and clicked Histogram in Excel, it gave me a weird decimal point response.

I then did the count totals you have above, clicked histogram and it gave me what you see above.

What you have here is a bar chart, rather than a histogram. The histogram option in Excel is giving the weird data above.
 
Upvote 0
The histogram option in Excel is giving the weird data above.
OK, that makes sense. I get the same histogram as you, as Excel automatically picks a bin width of 0.28 (i.e. around 1/3 of a year, so that the bins are 1997.00 to 1997.28, 1997.28 to 1997.56 etc). You can adjust the bin width to 1, but Excel will still show each bin as a range, rather than a single value 1997, 1998 etc

So the obvious question. Do you need a histogram? Are you going to do some frequency analysis based on numbers of arrests?

If you just want a year by year graph, then bar chart is the easier way to go.

If you do want a histogram, perhaps you could use the better Analysis ToolPak version instead. See here, for example: How to make a histogram in Excel

 
Upvote 0

Forum statistics

Threads
1,221,552
Messages
6,160,466
Members
451,649
Latest member
fahad_ibnfurjan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top