Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T.O.
 
Posts: n/a
Default creating a date column from seperate data


hi,
i have a very large table, in which the dates are represented by 3
seperate columns: year, month and day (all integers).
how can i use these 3 fields in a function (or macro) to create a
fourth column, containing the date in an excel date format?
i.e. if a line in my table looks like this: 1993 11 28
then i'd like to add a fourth column, reading: 11/28/1993

thanx.


--
T.O.
------------------------------------------------------------------------
T.O.'s Profile: http://www.excelforum.com/member.php...o&userid=29767
View this thread: http://www.excelforum.com/showthread...hreadid=494830

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default creating a date column from seperate data

Hi
Try entering in cell D1
=DATE(YEAR(A1),MONTH(B1),DAY(C1))
Copy down as appropriate.

Regards

Roger Govier


T.O. wrote:
hi,
i have a very large table, in which the dates are represented by 3
seperate columns: year, month and day (all integers).
how can i use these 3 fields in a function (or macro) to create a
fourth column, containing the date in an excel date format?
i.e. if a line in my table looks like this: 1993 11 28
then i'd like to add a fourth column, reading: 11/28/1993

thanx.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T.O.
 
Posts: n/a
Default creating a date column from seperate data


the functions YEAR(), MONTH() and DAY() require a serial number,
representing a whole date as input.
any other ideas? please??


--
T.O.
------------------------------------------------------------------------
T.O.'s Profile: http://www.excelforum.com/member.php...o&userid=29767
View this thread: http://www.excelforum.com/showthread...hreadid=494830

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default creating a date column from seperate data

My Apologies

I had meant to type just
=DATE(A1,B1,C1)
Format the cell in your desired date format

Regards

Roger Govier


T.O. wrote:
the functions YEAR(), MONTH() and DAY() require a serial number,
representing a whole date as input.
any other ideas? please??


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
From several workbooks onto one excel worksheet steve Excel Discussion (Misc queries) 6 December 1st 05 08:03 AM
displaying data within column iconic83 Charts and Charting in Excel 2 August 19th 05 12:11 AM
how do i seperate data from one column into two seperate ones in . Nikki Excel Discussion (Misc queries) 2 March 30th 05 08:31 PM
Comparing Cells and Displaying Data Keith Brown Excel Worksheet Functions 1 February 9th 05 05:42 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM


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