Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 90
Default Determining the Age of a Person

Hi there,

How can I create a formula that will determine how old someone is (in years)
if they enter their date of birth in another cell?

ex.

B2 is DOB = 01-01-1970
B3 needs is show age (36)

Thanks,
Matt
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 174
Default Determining the Age of a Person

In B3 use the formula

=DATEDIF(B2,TODAY(),"y")

"mpenkala" wrote:

Hi there,

How can I create a formula that will determine how old someone is (in years)
if they enter their date of birth in another cell?

ex.

B2 is DOB = 01-01-1970
B3 needs is show age (36)

Thanks,
Matt

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,173
Default Determining the Age of a Person

Use the 'undocumented' DATEDIF function

=DATEDIF(B2,NOW(),"y")

check www.cpearson.com/excel/datetime.htm for detail

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"mpenkala" wrote in message
...
Hi there,

How can I create a formula that will determine how old someone is (in
years)
if they enter their date of birth in another cell?

ex.

B2 is DOB = 01-01-1970
B3 needs is show age (36)

Thanks,
Matt


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 90
Default Determining the Age of a Person

Hi,

This function is not working. I typed in the following function into cell D2

=DATEDIF(B2,NOW(),"y")

B2 contains the date 8/25/1979 (August 25, 1979)

and it returns the following:

1/27/1900 0:00

I've also tried using TODAY instead of NOW, but get the same result.

Any other suggestions?

Thanks,
Matt


"Nick Hodge" wrote:

Use the 'undocumented' DATEDIF function

=DATEDIF(B2,NOW(),"y")

check www.cpearson.com/excel/datetime.htm for detail

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"mpenkala" wrote in message
...
Hi there,

How can I create a formula that will determine how old someone is (in
years)
if they enter their date of birth in another cell?

ex.

B2 is DOB = 01-01-1970
B3 needs is show age (36)

Thanks,
Matt


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 174
Default Determining the Age of a Person

Hello mpenkala,

the formula is working OK but you need to format the cell that contains the
formula with "general" format rather than the date format you currently have

"mpenkala" wrote:

Hi,

This function is not working. I typed in the following function into cell D2

=DATEDIF(B2,NOW(),"y")

B2 contains the date 8/25/1979 (August 25, 1979)

and it returns the following:

1/27/1900 0:00

I've also tried using TODAY instead of NOW, but get the same result.

Any other suggestions?

Thanks,
Matt


"Nick Hodge" wrote:

Use the 'undocumented' DATEDIF function

=DATEDIF(B2,NOW(),"y")

check www.cpearson.com/excel/datetime.htm for detail

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"mpenkala" wrote in message
...
Hi there,

How can I create a formula that will determine how old someone is (in
years)
if they enter their date of birth in another cell?

ex.

B2 is DOB = 01-01-1970
B3 needs is show age (36)

Thanks,
Matt




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 90
Default Determining the Age of a Person

daddylonglegs,

thanks a bunch. That solved the problem.

Matt


"daddylonglegs" wrote:

Hello mpenkala,

the formula is working OK but you need to format the cell that contains the
formula with "general" format rather than the date format you currently have

"mpenkala" wrote:

Hi,

This function is not working. I typed in the following function into cell D2

=DATEDIF(B2,NOW(),"y")

B2 contains the date 8/25/1979 (August 25, 1979)

and it returns the following:

1/27/1900 0:00

I've also tried using TODAY instead of NOW, but get the same result.

Any other suggestions?

Thanks,
Matt


"Nick Hodge" wrote:

Use the 'undocumented' DATEDIF function

=DATEDIF(B2,NOW(),"y")

check www.cpearson.com/excel/datetime.htm for detail

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"mpenkala" wrote in message
...
Hi there,

How can I create a formula that will determine how old someone is (in
years)
if they enter their date of birth in another cell?

ex.

B2 is DOB = 01-01-1970
B3 needs is show age (36)

Thanks,
Matt

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 print only the comments for one person on a report? Barb Excel Worksheet Functions 1 August 17th 06 01:03 AM
Mileage Claim Formula johndavies New Users to Excel 4 August 14th 06 09:24 AM
How to avoid "update links" startup prompt? [email protected] Excel Discussion (Misc queries) 8 July 23rd 06 04:20 AM
Rostering problem Hartygan Excel Discussion (Misc queries) 1 August 26th 05 05:13 AM
D Sum or SumIF Jody Excel Worksheet Functions 3 December 3rd 04 11:39 PM


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