Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 180
Default Formula to group into Age Ranges

I have a spreadsheet that tallies age from dates of birth.

What I want to be able to do is group the ages in column K into age groups
in column L, i.e. 16-20, 21-30, 31-40, 41-50, 51-60, 61-70, 71-80.

I need very straightforward, step-by-step, no-jargon instructions as to how
to do this please!

Thank you...


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Formula to group into Age Ranges

Set up a simple two-column table like this, perhaps starting in X1:

0 U16
16 16-20
21 21-30
31 31-40
41 41-50
51 51-60
61 61-70
71 71-80
81 80+

so that it occupies X1:Y9.

Then put this formula in L2:

=VLOOKUP(K2,X$1:Y$9,2)

assuming your first row of data is row 2. Then copy this formula down
for as many ages as you have.

Hope this helps.

Pete

On Apr 22, 11:01*am, Donna wrote:
I have a spreadsheet that tallies age from dates of birth. *

What I want to be able to do is group the ages in column K into age groups
in column L, i.e. 16-20, 21-30, 31-40, 41-50, 51-60, 61-70, 71-80.

I need very straightforward, step-by-step, no-jargon instructions as to how
to do this please!

Thank you...


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 180
Default Formula to group into Age Ranges

Thank you - success at last!

Much appreciated, Pete.

"Pete_UK" wrote:

Set up a simple two-column table like this, perhaps starting in X1:

0 U16
16 16-20
21 21-30
31 31-40
41 41-50
51 51-60
61 61-70
71 71-80
81 80+

so that it occupies X1:Y9.

Then put this formula in L2:

=VLOOKUP(K2,X$1:Y$9,2)

assuming your first row of data is row 2. Then copy this formula down
for as many ages as you have.

Hope this helps.

Pete

On Apr 22, 11:01 am, Donna wrote:
I have a spreadsheet that tallies age from dates of birth.

What I want to be able to do is group the ages in column K into age groups
in column L, i.e. 16-20, 21-30, 31-40, 41-50, 51-60, 61-70, 71-80.

I need very straightforward, step-by-step, no-jargon instructions as to how
to do this please!

Thank you...



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Formula to group into Age Ranges

You're welcome, Donna - thanks for feeding back.

What you can also do now is to put this formula in Z1:

=COUNTIF(L:L,Y1)

and then copy this down to Z9. It will give you a count of each
category - no need for a pivot table.

Hope this helps.

Pete

On Apr 22, 12:22*pm, Donna wrote:
Thank you - success at last!

Much appreciated, Pete.



"Pete_UK" wrote:
Set up a simple two-column table like this, perhaps starting in X1:


0 * * * U16
16 * * 16-20
21 * * *21-30
31 * * *31-40
41 * * *41-50
51 * * *51-60
61 * * *61-70
71 * * *71-80
81 * * *80+


so that it occupies X1:Y9.


Then put this formula in L2:


=VLOOKUP(K2,X$1:Y$9,2)


assuming your first row of data is row 2. Then copy this formula down
for as many ages as you have.


Hope this helps.


Pete


On Apr 22, 11:01 am, Donna wrote:
I have a spreadsheet that tallies age from dates of birth. *


What I want to be able to do is group the ages in column K into age groups
in column L, i.e. 16-20, 21-30, 31-40, 41-50, 51-60, 61-70, 71-80.


I need very straightforward, step-by-step, no-jargon instructions as to how
to do this please!


Thank you...- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 180
Default Formula to group into Age Ranges

Even better - brilliant.
Thanks.

"Pete_UK" wrote:

You're welcome, Donna - thanks for feeding back.

What you can also do now is to put this formula in Z1:

=COUNTIF(L:L,Y1)

and then copy this down to Z9. It will give you a count of each
category - no need for a pivot table.

Hope this helps.

Pete

On Apr 22, 12:22 pm, Donna wrote:
Thank you - success at last!

Much appreciated, Pete.



"Pete_UK" wrote:
Set up a simple two-column table like this, perhaps starting in X1:


0 U16
16 16-20
21 21-30
31 31-40
41 41-50
51 51-60
61 61-70
71 71-80
81 80+


so that it occupies X1:Y9.


Then put this formula in L2:


=VLOOKUP(K2,X$1:Y$9,2)


assuming your first row of data is row 2. Then copy this formula down
for as many ages as you have.


Hope this helps.


Pete


On Apr 22, 11:01 am, Donna wrote:
I have a spreadsheet that tallies age from dates of birth.


What I want to be able to do is group the ages in column K into age groups
in column L, i.e. 16-20, 21-30, 31-40, 41-50, 51-60, 61-70, 71-80.


I need very straightforward, step-by-step, no-jargon instructions as to how
to do this please!


Thank you...- Hide quoted text -


- Show quoted text -





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Formula to group into Age Ranges

Glad to be of help.

Pete

On Apr 22, 1:53*pm, Donna wrote:
Even better - brilliant.
Thanks.

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
How do I name a group of ranges? MaryBethK Excel Discussion (Misc queries) 1 November 2nd 06 09:44 PM
How do I copy a group of worksheets with named ranges in Excel 200 sc Excel Worksheet Functions 2 September 26th 06 12:16 AM
Pivot table/chart - can I use data ranges? why will it not group d Forrest Charts and Charting in Excel 0 January 10th 06 07:26 PM
How do I group worksheets (Lotus 123 function is "Sheet>Group Shee jaking Excel Worksheet Functions 2 August 30th 05 02:09 PM
How do I group data using defined ranges? Yenabi Excel Worksheet Functions 2 May 16th 05 06:33 PM


All times are GMT +1. The time now is 03:32 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"