Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
hsas
 
Posts: n/a
Default using date function, month shows as January when i type (12)

when date of birth is A1 and i use the formula
=date(year(A1)+19,month(12),day(31)), to get the last day of the year before
the 20th birthday, 31/1/1919 appears instead of 31/12/1919. why is this? if
i take the +19 away, the same thing happens. The only time it works is if i
specify the year instead of using another cell.
  #2   Report Post  
Dave O
 
Posts: n/a
Default

Does this formula do what you need?
="12/31/"&YEAR(A1)+19

  #3   Report Post  
Dave O
 
Posts: n/a
Default

The reason your original formula did not work is because the MONTH()
and DAY() functions require serial date numbers (that is to say, an
Excel date equivalent expressed as a number).

  #4   Report Post  
Niek Otten
 
Posts: n/a
Default

=DATE(YEAR(A1)+19,12,31)

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel

"hsas" wrote in message
...
when date of birth is A1 and i use the formula
=date(year(A1)+19,month(12),day(31)), to get the last day of the year
before
the 20th birthday, 31/1/1919 appears instead of 31/12/1919. why is this?
if
i take the +19 away, the same thing happens. The only time it works is if
i
specify the year instead of using another cell.



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
Month/ year function. Houm Excel Worksheet Functions 8 April 5th 05 07:49 PM
Date Function ACase Excel Discussion (Misc queries) 2 March 31st 05 03:11 PM
Count the occurances of a month in a range of date fields Keith Brown Excel Worksheet Functions 8 March 14th 05 11:24 AM
Month Year Date Format Jamie Excel Worksheet Functions 2 February 7th 05 06:43 PM
Today() or Date() function help julisimo Excel Discussion (Misc queries) 8 January 3rd 05 04:19 PM


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