LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Figuring ages and calculating totals on a spread sheet

I am having a hard time wrapping my mind around what way I should start
working up some code to separate people by age on a spreadsheet.

I will have a list of say 10,000 people. Column H is date of birth. I
need to put those people into their age groups as totals on a second
page.

For example:

the age bands are
0-29
30-34
35-39
40-44
50-99

The mind warping problem is my if statement. I figure somehow I have
to do an if a person's age is between 0 and 29 then put in B2 on
sheet2. But how would I tell it to calculate it? This is something
that would be used once a month so would it be something like if
today's date minus date in column H = 30,31,32,33, or 34 then move to
sheet2 B3?

I have this feeling I am making this way more difficult than I need to
but I can't think of a simple way to do it.

Thanks in advance
Mary

 
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
spread sheet excel for payroll I can put hrs in and get totals gracious Excel Worksheet Functions 2 August 6th 07 04:45 PM
Spread sheet calculating/not calc from opening file differently JimR Excel Worksheet Functions 0 January 16th 07 05:34 PM
Calculating ages Lynne Excel Discussion (Misc queries) 1 November 14th 06 03:24 AM
calculating ages pama Excel Worksheet Functions 3 November 7th 06 07:21 PM
Need help with figuring running totals Kfain Excel Programming 0 August 30th 04 01:57 PM


All times are GMT +1. The time now is 10:56 AM.

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"