Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Problems when using Date() function.

I have the following function =Date(1900,1,1+A1) (A1 containing 367) and it returns 02-01-1901 (Danish notation) as expected. If A1 instead contains 41012, I expect it to return 14-04-12 (41013), but it does not. It returns 16-09-89
(32767).

Is there a limitation to the final argument in the Date function, that I'm not aware of and in that case, what is it=

Jan

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Problems when using Date() function.

I discovered myself that the largest number possible is actually 32767, but I still can't find any documentation.

Jan

Den mandag den 3. juni 2013 23.05.23 UTC+2 skrev Jan Kronsell:
I have the following function =Date(1900,1,1+A1) (A1 containing 367) and it returns 02-01-1901 (Danish notation) as expected. If A1 instead contains 41012, I expect it to return 14-04-12 (41013), but it does not. It returns 16-09-89

(32767).



Is there a limitation to the final argument in the Date function, that I'm not aware of and in that case, what is it=



Jan


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,045
Default Problems when using Date() function.

On Mon, 3 Jun 2013 14:05:23 -0700 (PDT), Jan Kronsell wrote:

I have the following function =Date(1900,1,1+A1) (A1 containing 367) and it returns 02-01-1901 (Danish notation) as expected. If A1 instead contains 41012, I expect it to return 14-04-12 (41013), but it does not. It returns 16-09-89
(32767).

Is there a limitation to the final argument in the Date function, that I'm not aware of and in that case, what is it=

Jan


I cannot find any direct limitation information, but HELP does indicate that the digit is an integer. Perhaps that is why.

To accomplish the same result as what you are showing, you could use one of these formulas:

If the starting date will always be 1 Jan 1900
=A1+1

If the starting date could be some other date, a variation on:
=DATE(1900,1,1) + A1

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 problems Gerry[_2_] Setting up and Configuration of Excel 1 September 28th 07 12:42 PM
Date problems edluver Excel Programming 2 April 13th 07 03:08 AM
date problems piute Excel Discussion (Misc queries) 14 December 7th 06 03:22 PM
Function-Date Problems Brian Matlack Excel Worksheet Functions 4 May 18th 06 10:07 PM
Date Problems Dean[_8_] Excel Programming 5 July 26th 05 08:35 AM


All times are GMT +1. The time now is 12:35 PM.

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"