Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2
Default How to count an age group

Sorry,
I am trying to do this operation:
in cell F7 I have the following datas corresponding to peoples age
how can I count the numbers of time its ocurrs eg. of 50-<70

50-<70
50-<70
17 <30
30-<50
70+
17 <30
I also need to know the percentage of each of them, how often they have been
in that cell.
I appreciate if any good soul can help me.
Cheers


--
just arrived!
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default How to count an age group

Hazarding a guess that a pivot table is quite ideal
for what you seek to do. It's easy n fast to set-up

Here's the play to tinker with (steps in xl2003):
Presume that you have age data (as posted) in col A,
with col header: Age (in A1), data from A2 down, viz:

Age
50-<70
50-<70
17 <30
30-<50
70+
17 <30
etc

Select any cell in the table, click Data Pivot table ..
Click Next Next. In step 3, click Layout, then just:
Drag n drop Age into ROW & DATA area
Click OK Finish

Hop over to the pivot sheet (new sheet just to the left of your data sheet)
The pivot will return the uniques listing of the various items that's in the
Age source col (eg: 17 <30, 50-<70, etc) and the corresponding counts of each
next to it.

And if you want the counts expressed as percentages (of total in col)
Double-click on "Count of Age".
In the dialog: Click Options, then
Under "Show data as:", choose: % of column OK
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,000 Files:362 Subscribers:62
xdemechanik
---
"Call me Ana, Ana Pego" wrote:
I am trying to do this operation:
in cell F7 I have the following datas corresponding to peoples age
how can I count the numbers of time its ocurrs eg. of 50-<70

50-<70
50-<70
17 <30
30-<50
70+
17 <30
I also need to know the percentage of each of them,
how often they have been in that cell

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,344
Default How to count an age group

Hi,

A pivot table's on solution, here is another:

To create the following summary table
16 1 8%
29 3 23%
50 3 23%
70 2 15%
100 4 31%

Enter the ages listed in A1:A5 (I accounted for people over 70 you don't
neet to)
Select the range B1:B5 (or B4) and type but do not enter the formula
=FREQUENCY(E1:E13,A1:A5)
Then press Ctrl+Shift+Enter
Here the ages are in E1:E13.
In cell C1 enter the formula:
=B1/SUM($B$1:$B$5) or B4
and copy it down.
Format this column to percent.

If you don't like using the values in column A you could put them somewhere
else and enter the ones you show in your email. but still use the range I
gave you.


If this helps, please click the Yes button.
--
Thanks,
Shane Devenshire


"Call me Ana, Ana Pego" wrote:

Sorry,
I am trying to do this operation:
in cell F7 I have the following datas corresponding to peoples age
how can I count the numbers of time its ocurrs eg. of 50-<70

50-<70
50-<70
17 <30
30-<50
70+
17 <30
I also need to know the percentage of each of them, how often they have been
in that cell.
I appreciate if any good soul can help me.
Cheers


--
just arrived!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
To count how many are in a certain age group LEG Excel Worksheet Functions 10 May 8th 08 06:23 AM
count group daniellchiu via OfficeKB.com Excel Discussion (Misc queries) 5 January 10th 08 04:35 AM
to group in small range, and count Carolina Excel Discussion (Misc queries) 1 December 5th 05 02:04 AM
count a group of numbers but do not count duplicates Lisaml Excel Worksheet Functions 2 January 26th 05 11:19 PM
Group by count formula nobrabbit Excel Worksheet Functions 1 November 7th 04 09:10 PM


All times are GMT +1. The time now is 04:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"