#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ck ck is offline
external usenet poster
 
Posts: 52
Default age

I need help calculating age ranges. Currently I have a column of ages in
years and months. I need an additional column that shows if the age is from
0-3 months, 3-6 months, or 6months - 1year old. Any help would be appreciated
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default age

How are your ages stored? If you're storing a value, then this would
be simple with something like a vlookup, but if you're typing in
values and text into the same cell you might have a more difficult
time because you would have to parse out the values.

I have an old example of this where I subtract a date from =now() and
then use the following formula:
=QUOTIENT(D4,365.25)&" years, "&INT(MOD(D4,30))&" months"
and it displays:
17 years, 11 months

There are probably better formulas out there, but this is one I had :)


On Feb 25, 10:30*am, ck wrote:
I need help calculating age ranges. *Currently I have a column of ages in
years and months. *I need an additional column that shows if the age is from
0-3 months, 3-6 months, or 6months - 1year old. *Any help would be appreciated


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default age

ck wrote:
I need help calculating age ranges. Currently I have a column of ages in
years and months. I need an additional column that shows if the age is from
0-3 months, 3-6 months, or 6months - 1year old. Any help would be appreciated



http://www.cpearson.com/excel/datedif.aspx
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default age

Sorry, I meant to add that you should probably do the vlookup off the
value of the subtraction, not my goofy combo text/value cell.

On Feb 25, 11:06*am, Amish wrote:
How are your ages stored? If you're storing a value, then this would
be simple with something like a vlookup, but if you're typing in
values and text into the same cell you might have a more difficult
time because you would have to parse out the values.

I have an old example of this where I subtract a date from =now() and
then use the following formula:
=QUOTIENT(D4,365.25)&" years, "&INT(MOD(D4,30))&" months"
and it displays:
17 years, 11 months

There are probably better formulas out there, but this is one I had :)

On Feb 25, 10:30*am, ck wrote:

I need help calculating age ranges. *Currently I have a column of ages in
years and months. *I need an additional column that shows if the age is from
0-3 months, 3-6 months, or 6months - 1year old. *Any help would be appreciated


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



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