#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Calculate age

How can I calculate age accurately? If I put in the following two dates and
use the "Callculate the number of years between two dates" function, I get 26
as the answer, whereas the actual age is 25.

13/09/2003
09/04/2009
--
Susan
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Calculate age

A1 = start date
B1 = end date
Number of years is

=YEAR(B1)-YEAR(A1)

If this post helps click Yes
---------------
Jacob Skaria


"Susan Sia" wrote:

How can I calculate age accurately? If I put in the following two dates and
use the "Callculate the number of years between two dates" function, I get 26
as the answer, whereas the actual age is 25.

13/09/2003
09/04/2009
--
Susan

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Calculate age

Oops..

Use =DATEDIF(A1,A2,"y")

This is also available in VBA as DATEDIFF()

If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

A1 = start date
B1 = end date
Number of years is

=YEAR(B1)-YEAR(A1)

If this post helps click Yes
---------------
Jacob Skaria


"Susan Sia" wrote:

How can I calculate age accurately? If I put in the following two dates and
use the "Callculate the number of years between two dates" function, I get 26
as the answer, whereas the actual age is 25.

13/09/2003
09/04/2009
--
Susan

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,533
Default Calculate age

Hi Susan

Just subtract the two dates and format the resulting cell as Custom "yy".

Hopes this helps.

---
Per

"Susan Sia" .(donotspam) skrev i meddelelsen
...
How can I calculate age accurately? If I put in the following two dates
and
use the "Callculate the number of years between two dates" function, I get
26
as the answer, whereas the actual age is 25.

13/09/2003
09/04/2009
--
Susan


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default Calculate age

with
A1=13/09/2003
A2=09/04/2009

you might use

=DATEDIF(A1,A2,"y")

DATEDIF is not described in HELP, "y" is for years, "m" for months,
"d" for days

BTW with given dates the correct result would be 5, not 25



"Susan Sia" .(donotspam) skrev i ...



How can I calculate age accurately? Â*If I put in the following two dates
and
use the "Callculate the number of years between two dates" function, I get
26
as the answer, whereas the actual age is 25.


13/09/2003
09/04/2009
--
Susan- Ukryj cytowany tekst -


- Pokaż cytowany tekst -




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Calculate age

I do apologise to you and all who responded. The first date should have been
13/09/1983. This changes things slightly. Can you still help?
--
Susan


"Jarek Kujawa" wrote:

with
A1=13/09/2003
A2=09/04/2009

you might use

=DATEDIF(A1,A2,"y")

DATEDIF is not described in HELP, "y" is for years, "m" for months,
"d" for days

BTW with given dates the correct result would be 5, not 25



"Susan Sia" .(donotspam) skrev i ...



How can I calculate age accurately? If I put in the following two dates
and
use the "Callculate the number of years between two dates" function, I get
26
as the answer, whereas the actual age is 25.


13/09/2003
09/04/2009
--
Susan- Ukryj cytowany tekst -


- Pokaż cytowany tekst -



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,533
Default Calculate age

Susan,

Either use the suggestion in my last post, or use the DateDif Function as
more people suggest. You will still get the desired result.

Best regards,
Per

"Susan Sia" .(donotspam) skrev i meddelelsen
...
I do apologise to you and all who responded. The first date should have
been
13/09/1983. This changes things slightly. Can you still help?
--
Susan


"Jarek Kujawa" wrote:

with
A1=13/09/2003
A2=09/04/2009

you might use

=DATEDIF(A1,A2,"y")

DATEDIF is not described in HELP, "y" is for years, "m" for months,
"d" for days

BTW with given dates the correct result would be 5, not 25



"Susan Sia" .(donotspam) skrev i
...



How can I calculate age accurately? If I put in the following two
dates
and
use the "Callculate the number of years between two dates" function,
I get
26
as the answer, whereas the actual age is 25.

13/09/2003
09/04/2009
--
Susan- Ukryj cytowany tekst -

- Pokaż cytowany tekst -




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default Calculate age

my answer stays unchanged
use it or use Per's solution


On 16 Kwi, 13:15, Susan Sia .(donotspam) wrote:
I do apologise to you and all who responded. Â*The first date should have been
13/09/1983. Â*This changes things slightly. Â*Can you still help?
--
Susan



"Jarek Kujawa" wrote:
with
A1=13/09/2003
A2=09/04/2009


you might use


=DATEDIF(A1,A2,"y")


DATEDIF is not described in HELP, "y" is for years, "m" for months,
"d" for days


BTW with given dates the correct result would be 5, not 25


"Susan Sia" .(donotspam) skrev i ...


How can I calculate age accurately? Â*If I put in the following two dates
and
use the "Callculate the number of years between two dates" function, I get
26
as the answer, whereas the actual age is 25.


13/09/2003
09/04/2009
--
Susan- Ukryj cytowany tekst -


- Pokaż cytowany tekst -- Ukryj cytowany tekst -


- Pokaż cytowany tekst -


  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Calculate age

Thank you so much - problem solved!!
--
Susan


"Jarek Kujawa" wrote:

with
A1=13/09/2003
A2=09/04/2009

you might use

=DATEDIF(A1,A2,"y")

DATEDIF is not described in HELP, "y" is for years, "m" for months,
"d" for days

BTW with given dates the correct result would be 5, not 25



"Susan Sia" .(donotspam) skrev i ...



How can I calculate age accurately? If I put in the following two dates
and
use the "Callculate the number of years between two dates" function, I get
26
as the answer, whereas the actual age is 25.


13/09/2003
09/04/2009
--
Susan- Ukryj cytowany tekst -


- Pokaż cytowany tekst -



  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Calculate age

Hi,

Tr this

=DATEDIF(A1,A2,"y")

Datedif isn't documented in Excel so look here for help

http://www.cpearson.com/excel/datedif.aspx

Mike
"Susan Sia" wrote:

How can I calculate age accurately? If I put in the following two dates and
use the "Callculate the number of years between two dates" function, I get 26
as the answer, whereas the actual age is 25.

13/09/2003
09/04/2009
--
Susan



  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Calculate age

I apologise to all. The first date should have been 13/09/1983. Can you
still help?
--
Susan


"Susan Sia" wrote:

How can I calculate age accurately? If I put in the following two dates and
use the "Callculate the number of years between two dates" function, I get 26
as the answer, whereas the actual age is 25.

13/09/2003
09/04/2009
--
Susan

  #12   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Calculate age

Hi Sue

If Dates were A1(13/09/1983) and A2(09/04/2009) please use below formulae to
calculate age correctly.


=(YEAR(A2)-YEAR(A1))*12+MONTH(A2)-MONTH(A1)

Regards
Ajay


"Susan Sia" wrote:

I apologise to all. The first date should have been 13/09/1983. Can you
still help?
--
Susan


"Susan Sia" wrote:

How can I calculate age accurately? If I put in the following two dates and
use the "Callculate the number of years between two dates" function, I get 26
as the answer, whereas the actual age is 25.

13/09/2003
09/04/2009
--
Susan

  #13   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Calculate age

Apologies below formulae will calculate number of months and has to be
divided by 12 to get to age..

Regards
Ajay

"Ajax" wrote:

Hi Sue

If Dates were A1(13/09/1983) and A2(09/04/2009) please use below formulae to
calculate age correctly.


=(YEAR(A2)-YEAR(A1))*12+MONTH(A2)-MONTH(A1)

Regards
Ajay


"Susan Sia" wrote:

I apologise to all. The first date should have been 13/09/1983. Can you
still help?
--
Susan


"Susan Sia" wrote:

How can I calculate age accurately? If I put in the following two dates and
use the "Callculate the number of years between two dates" function, I get 26
as the answer, whereas the actual age is 25.

13/09/2003
09/04/2009
--
Susan

  #14   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Calculate age

Use =DATEDIF(A1,A2,"y")

This is also available in VBA as DATEDIFF()

If this post helps click Yes
---------------
Jacob Skaria


"Susan Sia" wrote:

How can I calculate age accurately? If I put in the following two dates and
use the "Callculate the number of years between two dates" function, I get 26
as the answer, whereas the actual age is 25.

13/09/2003
09/04/2009
--
Susan

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
calculate time does not calculate Wanna Learn Excel Discussion (Misc queries) 4 August 19th 08 12:51 AM
self calculate ecurb849 Excel Discussion (Misc queries) 8 March 29th 08 08:11 AM
Calculate age Grd New Users to Excel 4 February 28th 07 03:53 PM
calculate Susan Excel Worksheet Functions 1 January 30th 07 01:21 PM
Calculate Bar. Rodney New Users to Excel 2 June 8th 05 02:20 AM


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