Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Date Formulas

I've been asked to create a spreadsheet that calculates a
persons age.

I have two columns (Birthdate & Hire Date), and need a
formula to figure out a persons age in years and months
(another 2 columns).

The one catch is if the person is born before the 15th of
the month, then count that month. If they're born on the
15th or after, then don't count that month.

Any help would really be appreciated.

Thanks,

Teri
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Date Formulas

Thanks Steve,

I've tried the formula, but I only get a cell filled with
#########. Any suggestions?

Thanks again,

Teri

-----Original Message-----
Teri,

With the birthdate in A1
For the years
=DATEDIF(A1,NOW(),"y")
For the months
=DATEDIF(A1,NOW(),"m")-12*A1-IF(DAY(A1)14,1,0)
(watch for word wrap)

(add $ signs to make A1 absolute reference $A$1 if needed)
--
sb
"Teri" wrote in message
...
I've been asked to create a spreadsheet that calculates

a
persons age.

I have two columns (Birthdate & Hire Date), and need a
formula to figure out a persons age in years and months
(another 2 columns).

The one catch is if the person is born before the 15th

of
the month, then count that month. If they're born on

the
15th or after, then don't count that month.

Any help would really be appreciated.

Thanks,

Teri



.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 391
Default Date Formulas

#'s usually mean thast the column is not wide enough to
show the result. First, make sure that your cell's format
is correct, then adjust the column width.

-----Original Message-----
Thanks Steve,

I've tried the formula, but I only get a cell filled

with
#########. Any suggestions?

Thanks again,

Teri

-----Original Message-----
Teri,

With the birthdate in A1
For the years
=DATEDIF(A1,NOW(),"y")
For the months
=DATEDIF(A1,NOW(),"m")-12*A1-IF(DAY(A1)14,1,0)
(watch for word wrap)

(add $ signs to make A1 absolute reference $A$1 if

needed)
--
sb
"Teri" wrote in message
...
I've been asked to create a spreadsheet that

calculates
a
persons age.

I have two columns (Birthdate & Hire Date), and need a
formula to figure out a persons age in years and

months
(another 2 columns).

The one catch is if the person is born before the

15th
of
the month, then count that month. If they're born on

the
15th or after, then don't count that month.

Any help would really be appreciated.

Thanks,

Teri



.

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default Date Formulas

Teri,

You're welcome!

As Patrick has already pointed out - the #'s just mean that there are too
many characters in the cell. Format the cells to "number" with 0 decimals.

--
sb
"Teri" wrote in message
...
Thanks Steve,

I've tried the formula, but I only get a cell filled with
#########. Any suggestions?

Thanks again,

Teri

-----Original Message-----
Teri,

With the birthdate in A1
For the years
=DATEDIF(A1,NOW(),"y")
For the months
=DATEDIF(A1,NOW(),"m")-12*A1-IF(DAY(A1)14,1,0)
(watch for word wrap)

(add $ signs to make A1 absolute reference $A$1 if needed)
--
sb
"Teri" wrote in message
...
I've been asked to create a spreadsheet that calculates

a
persons age.

I have two columns (Birthdate & Hire Date), and need a
formula to figure out a persons age in years and months
(another 2 columns).

The one catch is if the person is born before the 15th

of
the month, then count that month. If they're born on

the
15th or after, then don't count that month.

Any help would really be appreciated.

Thanks,

Teri



.



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
Date formulas Hodggie Excel Discussion (Misc queries) 1 September 24th 09 09:17 PM
Date Formulas Alyssa Excel Discussion (Misc queries) 5 July 20th 07 06:12 PM
Still needs help with date formulas ElFrodo Excel Discussion (Misc queries) 4 February 6th 07 04:59 AM
Date formulas DRondeau Excel Discussion (Misc queries) 7 September 6th 06 09:53 PM
Using formulas to determine date in one cell based on date in anot Gary Excel Worksheet Functions 2 November 22nd 04 08:11 AM


All times are GMT +1. The time now is 03:07 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"