 # Excel question

Suppose I have a some measurements and I want to show them in a graph. I want columns whose heights show the numbers of measurements that fall into a given interval. Is this possible? The only thing I am able to do is to show every single measurement as a column.

I don’t know the answer to your question, but probably someone in General Questions does, so I’ll move this there.

twickster, MPSIMS moderator

sounds like its a frequency diagram? so you have a bunch of measurements, and want the measurements along the bottom (horizontal) axis and the count of the measurments along the vertical axis? that right?

You might consider adding COUNT formulae in your original table and graph that (unless I’m completely misunderstanding what you’re shooting for).

I think you know exactly what I am talking about. I will try that Definitely sounds like frequency diagram. You need an interim step to get Excel to count the number of instances of each height. You can either use the COUNTIF function, or the FREQUENCY function which is a little less user friendly and is an array formula.

So, if you’ve got data like this in the first two columns of sheet1:
A 15
B 11
C 15
D 13
E 15

You then need to analyse it like this (example assumes first two columns of sheet2):

11 =countif(“Sheet1!B:B”,A2)
12 =countif(“Sheet1!B:B”,A3)
13 =countif(“Sheet1!B:B”,A4)

and so on. (The numbers are in column A, the formulae in column B). Then use this data for your graph.

ETA: Damn. Took me far too long to do that and someone beat me to the punch.

Check out Tools, Data Analysis, Histogram. If you don’t see Data Analysis, it was never installed, in which case, get it installed from your program discs.