#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Al
 
Posts: n/a
Default Date Function

Hello
A1 =1996
B1= 1
C1=1
A2=date(B1,C1,A1) and outputs 6/19/1906 instead of 1/1/1996
What am I doing wrong? Also if d1=9 what formula would give me 1/1/1996 9:00
Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Date Function

It's DATE(year,month,day)

=DATE(A1,B1,C1)



--

Regards,

Peo Sjoblom


"Al" wrote in message
...
Hello
A1 =1996
B1= 1
C1=1
A2=date(B1,C1,A1) and outputs 6/19/1906 instead of 1/1/1996
What am I doing wrong? Also if d1=9 what formula would give me 1/1/1996
9:00
Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Duke Carey
 
Posts: n/a
Default Date Function

the Date() function requires Year, Month, Date, so your formula should be

=date(A1,B1,C1)

If you want the 9:00 added (AM?), use

=date(A1,B1,C1)+9/24

"Al" wrote:

Hello
A1 =1996
B1= 1
C1=1
A2=date(B1,C1,A1) and outputs 6/19/1906 instead of 1/1/1996
What am I doing wrong? Also if d1=9 what formula would give me 1/1/1996 9:00
Thanks!

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 function in Excel that updates only when a doc is changed? torino0020 Excel Worksheet Functions 1 January 5th 06 03:00 AM
Date Function Khangura Excel Discussion (Misc queries) 1 December 21st 05 09:33 AM
date format and the RIGHT function Rich Hayes Excel Worksheet Functions 0 December 19th 05 11:06 AM
Date function Dee Excel Worksheet Functions 2 July 13th 05 03:32 PM
Is there a function to show future date taxmom Excel Worksheet Functions 2 March 4th 05 09:23 PM


All times are GMT +1. The time now is 08:20 AM.

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"