#1   Report Post  
Posted to microsoft.public.excel.misc
AGA AGA is offline
external usenet poster
 
Posts: 6
Default Age Calculation

Oh great excel gurus,

I've read the threads on doing an age calculation, but I'm still getting a
"#NAME?" error. I need to display the age of dependents in months and years.
I've set up my columns so that column AI3 has the birthdate displayed as
10/29/2000, and column AJ3 has the formula =TODAY(). I tried to display the
age in column AK3 by inserting the following formula:

=DATEIF(AI3,AJ3,"Y") & "YEARS," & DATEIF(AI3,AJ3,"YM") & "Months," &
DATEIF(AI3,AJ3,"MD") & "Days"

Reagrdless of how I format the cell (general,number,text, etc) I still get
the same error. (I apologize in advance if the error is ridiculously obvious.
)

Thanks
AGA
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Age Calculation

Replace
DATEIF
with
DATEDIF
--
Gary''s Student - gsnu200847


"AGA" wrote:

Oh great excel gurus,

I've read the threads on doing an age calculation, but I'm still getting a
"#NAME?" error. I need to display the age of dependents in months and years.
I've set up my columns so that column AI3 has the birthdate displayed as
10/29/2000, and column AJ3 has the formula =TODAY(). I tried to display the
age in column AK3 by inserting the following formula:

=DATEIF(AI3,AJ3,"Y") & "YEARS," & DATEIF(AI3,AJ3,"YM") & "Months," &
DATEIF(AI3,AJ3,"MD") & "Days"

Reagrdless of how I format the cell (general,number,text, etc) I still get
the same error. (I apologize in advance if the error is ridiculously obvious.
)

Thanks
AGA

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Age Calculation

And when using this method look out for odd results


31 Jan 1951
01 Mar 2008
which gives
57 years, 1 months, -1 days

Mike


"AGA" wrote:

Oh great excel gurus,

I've read the threads on doing an age calculation, but I'm still getting a
"#NAME?" error. I need to display the age of dependents in months and years.
I've set up my columns so that column AI3 has the birthdate displayed as
10/29/2000, and column AJ3 has the formula =TODAY(). I tried to display the
age in column AK3 by inserting the following formula:

=DATEIF(AI3,AJ3,"Y") & "YEARS," & DATEIF(AI3,AJ3,"YM") & "Months," &
DATEIF(AI3,AJ3,"MD") & "Days"

Reagrdless of how I format the cell (general,number,text, etc) I still get
the same error. (I apologize in advance if the error is ridiculously obvious.
)

Thanks
AGA

  #4   Report Post  
Posted to microsoft.public.excel.misc
AGA AGA is offline
external usenet poster
 
Posts: 6
Default Age Calculation

Thanks,will do

"Mike H" wrote:

And when using this method look out for odd results


31 Jan 1951
01 Mar 2008
which gives
57 years, 1 months, -1 days

Mike


"AGA" wrote:

Oh great excel gurus,

I've read the threads on doing an age calculation, but I'm still getting a
"#NAME?" error. I need to display the age of dependents in months and years.
I've set up my columns so that column AI3 has the birthdate displayed as
10/29/2000, and column AJ3 has the formula =TODAY(). I tried to display the
age in column AK3 by inserting the following formula:

=DATEIF(AI3,AJ3,"Y") & "YEARS," & DATEIF(AI3,AJ3,"YM") & "Months," &
DATEIF(AI3,AJ3,"MD") & "Days"

Reagrdless of how I format the cell (general,number,text, etc) I still get
the same error. (I apologize in advance if the error is ridiculously obvious.
)

Thanks
AGA

  #5   Report Post  
Posted to microsoft.public.excel.misc
AGA AGA is offline
external usenet poster
 
Posts: 6
Default Age Calculation

Ug, I'm an idiot.
Thank you for both the answer and not beating me over the head with it.
AGA

"Gary''s Student" wrote:

Replace
DATEIF
with
DATEDIF
--
Gary''s Student - gsnu200847


"AGA" wrote:

Oh great excel gurus,

I've read the threads on doing an age calculation, but I'm still getting a
"#NAME?" error. I need to display the age of dependents in months and years.
I've set up my columns so that column AI3 has the birthdate displayed as
10/29/2000, and column AJ3 has the formula =TODAY(). I tried to display the
age in column AK3 by inserting the following formula:

=DATEIF(AI3,AJ3,"Y") & "YEARS," & DATEIF(AI3,AJ3,"YM") & "Months," &
DATEIF(AI3,AJ3,"MD") & "Days"

Reagrdless of how I format the cell (general,number,text, etc) I still get
the same error. (I apologize in advance if the error is ridiculously obvious.
)

Thanks
AGA

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
Need help with calculation WLMPilot Excel Discussion (Misc queries) 2 December 17th 08 04:01 AM
Multi threaded calculation (multi CPU) - impact on calculation spe Pascal[_2_] Excel Discussion (Misc queries) 1 December 3rd 08 10:46 AM
How would you do this calculation? cvegas Excel Discussion (Misc queries) 3 December 2nd 08 10:21 PM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 10:11 PM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 09:36 PM


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