Simple Excel Help -...
 

[Closed] Simple Excel Help - but i am clearly being simple

 Alex
Posts: 7661
Full Member
Topic starter
 

Right I've got a simple problem I appear to be unable to solve as I'm stupid this morning. List of numbers
3.2
1.4
3.4
2.5
3.5

etc.. about 100 of them between one and five.

I want to create a really simple chart showing the number of each values within ranges so basically

1-1.5 - 10
1.5-2.0 - 15
etc

all the way to five

I'm sure I need to create an expression using =AND to validate if a number is between the two values and then a countif if true. But I can't get it to work. Fairly urgent, all help appreciated!


 
Posted : 17/03/2015 1:33 pm
 Alex
Posts: 7661
Full Member
Topic starter
 

I got close with =COUNTIF(cellrange, "<1") which works except I can't get multiple arguments so >1 and < 1.5


 
Posted : 17/03/2015 1:38 pm
Posts: 3273
Free Member
 

DCOUNTA

or

FREQUENCY

should help


 
Posted : 17/03/2015 1:40 pm
Posts: 1468
Full Member
 

[url= http://www.excel-easy.com/examples/histogram.html ]something like this?[/url]


 
Posted : 17/03/2015 1:45 pm
Posts: 6312
Full Member
 

cell B1: =COUNTIF(A1:A100,"=<1.5")
cell B2: =(COUNTIF(A1:A100,"=<2"))-B1
cell B3: =(COUNTIF(A1:A100,"=<2.5"))-B2
etc...


 
Posted : 17/03/2015 1:48 pm
Posts: 71
Free Member
 

+countifs(cellrange,">"&1,cellrange,"<"&1.5)

Replace 1 and 1.5 with the numbers you want for each range. Speech marks are part of the formula.


 
Posted : 17/03/2015 1:49 pm
Posts: 42
Free Member
Posts: 0
Free Member
 

=COUNTIFS(range,">1",range,"<1.59")

I've tried a few variations out and it works for me.


 
Posted : 17/03/2015 1:55 pm
Posts: 309
Free Member
 

countifs works wonders

for more advancedm i think the FREEQUENCY function may also do the job well


 
Posted : 17/03/2015 2:00 pm
 Alex
Posts: 7661
Full Member
Topic starter
 

That's it. Thanks guys. Brilliant. I never knew about COUNTIFS. A virtual beer to you all ๐Ÿ™‚


 
Posted : 17/03/2015 2:03 pm
Posts: 71
Free Member
 

If it makes it easier you can replace the numbers in the formula with cell references, and can then just change those values accordingly.

There's also Sumifs, Averageifs etc, all quite useful.


 
Posted : 17/03/2015 2:53 pm
 Alex
Posts: 7661
Full Member
Topic starter
 

Yeah did that subsequently. All good ๐Ÿ™‚


 
Posted : 17/03/2015 4:24 pm