View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dominic_gates[_2_] Dominic_gates[_2_] is offline
external usenet poster
 
Posts: 6
Default grouping numbers together

Hi,

This formula: =COUNTIFS(T3:T391,"17",T3:T391,"<30",K3:K391,1) is
unfortunately returning a: #NAME? error.

Nor can I get the Histogram to work...

Do you have any further suggestions of a possible formula I can use?

Many thanks

Dominic

"Brad Autry" wrote:

Something like this should work I believe:

For the 18 to 29 range:

=COUNTIFS(T3:T391,"17",T3:T391,"<30",K3:K391,1)

Adjust accordingly for other age ranges

"Dominic_gates" wrote:

I am sorry have answered my own question, but have another question to add to
what I asked below...

Firstly in response to my question:

use

= COUNTIF(rangeofdata,"="&18)-COUNTIF(rangeofdata,""&29)

This groups age ranges together so in this instance individual between 18
and 29.


I have done this which is all well and good but I need to now compare this
to another field of information.

so if I am using:

use

= COUNTIF(T3:T391,"="&18)-COUNTIF(T3:T391,""&29)

How can I adapt the formula so that it then searches another column of data
(column K) for the number 1 as well. I.e. So that the formula only provides
the number of individuals that are within a certain age range and also have a
1 in the other column.

I am very much stuck here...

Any help would be amazing.


Dominic

"Dominic_gates" wrote:

Hi,

I really hope someone can help me with this.

I want to know if there is a formula which can group numbers together. I
will explain further:

In my spreadsheet, column T contains 'Ages' of individuals. There is a
different entry in each row between row 3 and 391.
What I would like to do is be able to group all the people within certain
age ranges together and count the number of them that there are, so for
example group all the people together from: 18-29, 30-39, 40-49, 50-59,
60-69, 70+

This will make it a lot easier for me to search through my spreadsheet and
compile this report.

If anybody can help please get back to me.

All the best.

Dominic.