Simple Excel Help -...
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

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

11 Posts
8 Users
0 Reactions
43 Views
 Alex
Posts: 7447
Free 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 12:33 pm
 Alex
Posts: 7447
Free 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 12:38 pm
Posts: 3271
Full Member
 

DCOUNTA

or

FREQUENCY

should help


 
Posted : 17/03/2015 12:40 pm
Posts: 1454
Full Member
 

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


 
Posted : 17/03/2015 12:45 pm
Posts: 6257
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 12: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 12: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 12:55 pm
Posts: 305
Free Member
 

countifs works wonders

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


 
Posted : 17/03/2015 1:00 pm
 Alex
Posts: 7447
Free Member
Topic starter
 

That's it. Thanks guys. Brilliant. I never knew about COUNTIFS. A virtual beer to you all 🙂


 
Posted : 17/03/2015 1: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 1:53 pm
 Alex
Posts: 7447
Free Member
Topic starter
 

Yeah did that subsequently. All good 🙂


 
Posted : 17/03/2015 3:24 pm

6 DAYS LEFT
We are currently at 95% of our target!