Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 82
Default Data Conversion - times, dates & rows

Hi there,

I have a huge spreadsheet that is downloaded out of another program every
week listing all staff and their rosters for the week.

The dates and times are imported in these format 2009-04-13,
14.55.00.000000. Is there a way to convert to 13/04/2009 & 14:55 or similiar
so excel recognises as dates and times, other than find/replace?

The data lists each employee as follows:
ID Surname Start Date Start Time Attnd Type End Date End Time
1 Smith 14/04/2009 14:55 STD 14/04/2009 22:30
1 Smith 15/04/2009 14:55 STD 15/04/2009 22:30
1 Smith 16/04/2009 14:55 STD 16/04/2009 22:30
2 Jones 14/04/2009 17:30 STD 14/04/2009 23:30
2 Jones 15/04/2009 17:30 STD 15/04/2009 23:30
2 Jones 16/04/2009 17:30 STD 16/04/2009 23:30



Is it possible to change this to:

Start End Start End Start End
ID Surname 14/04 14/04 15/04 15/04 16/04 16/04
1 Smith 14:55 22:30 14:55 22:30 14:55 22:30
2 Jones 17:30 23:30 17:30 23:30 17:30 23:30




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9,101
Default Data Conversion - times, dates & rows

The data look like CSV which is comma seperated data because there is a comma
between the date and times. Text to columns (or importing) will place the
date and time in two diffferent columns.

The date 2009-04-13 is the international standard which shouldn't require
any changes. the time you will need to replace the period with the dot.

Once the date and time are corrrect to combinat them is simply adding the
two numbers together.

A macro can bewritten to modify the data automatically. Not sure if it
better to modify the worksheet or modify the text file before importing the
data. the information you posted need more details before I can give an
better answer.

"Sara" wrote:

Hi there,

I have a huge spreadsheet that is downloaded out of another program every
week listing all staff and their rosters for the week.

The dates and times are imported in these format 2009-04-13,
14.55.00.000000. Is there a way to convert to 13/04/2009 & 14:55 or similiar
so excel recognises as dates and times, other than find/replace?

The data lists each employee as follows:
ID Surname Start Date Start Time Attnd Type End Date End Time
1 Smith 14/04/2009 14:55 STD 14/04/2009 22:30
1 Smith 15/04/2009 14:55 STD 15/04/2009 22:30
1 Smith 16/04/2009 14:55 STD 16/04/2009 22:30
2 Jones 14/04/2009 17:30 STD 14/04/2009 23:30
2 Jones 15/04/2009 17:30 STD 15/04/2009 23:30
2 Jones 16/04/2009 17:30 STD 16/04/2009 23:30



Is it possible to change this to:

Start End Start End Start End
ID Surname 14/04 14/04 15/04 15/04 16/04 16/04
1 Smith 14:55 22:30 14:55 22:30 14:55 22:30
2 Jones 17:30 23:30 17:30 23:30 17:30 23:30




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 82
Default Data Conversion - times, dates & rows

Hi Joel,

This isn't a CSV file. It's downloaded straight into excel from PeopleSoft,
so I cannot edit at the source. Numbers are recognised as text.

After a lot of experimentation I've figured out the formula to make excel
recognise the dates/times as such. Is there a shorter/cleaner version of
this?
X2 being the time & W2 being the date
=VALUE(CONCATENATE(LEFT(X2,2),":",MID(X2,4,2),))+V ALUE(W2)

I want to be able to transpose the data by employee.

The sheet, simplified is
EMPLOYEE DAY START END
Jones Mon 0800 1600
Jones Tue 0800 1600
Jones Wed 0800 1600
Smith Mon 2300 0800
Smith Tue 2300 0800
Smith Wed 2300 0800

I need this to convert to something like
Employee MonStart MonEnd TuesStart TuesEnd WedStart WedEnd
Jones 0800 1600 0800 1600 0800 1600
Smith 2300 0800 2300 0800 2300
0800

I need something like a PivotTables but have the data item to not be a
calculation

"joel" wrote:

The data look like CSV which is comma seperated data because there is a comma
between the date and times. Text to columns (or importing) will place the
date and time in two diffferent columns.

The date 2009-04-13 is the international standard which shouldn't require
any changes. the time you will need to replace the period with the dot.

Once the date and time are corrrect to combinat them is simply adding the
two numbers together.

A macro can bewritten to modify the data automatically. Not sure if it
better to modify the worksheet or modify the text file before importing the
data. the information you posted need more details before I can give an
better answer.

"Sara" wrote:

Hi there,

I have a huge spreadsheet that is downloaded out of another program every
week listing all staff and their rosters for the week.

The dates and times are imported in these format 2009-04-13,
14.55.00.000000. Is there a way to convert to 13/04/2009 & 14:55 or similiar
so excel recognises as dates and times, other than find/replace?

The data lists each employee as follows:
ID Surname Start Date Start Time Attnd Type End Date End Time
1 Smith 14/04/2009 14:55 STD 14/04/2009 22:30
1 Smith 15/04/2009 14:55 STD 15/04/2009 22:30
1 Smith 16/04/2009 14:55 STD 16/04/2009 22:30
2 Jones 14/04/2009 17:30 STD 14/04/2009 23:30
2 Jones 15/04/2009 17:30 STD 15/04/2009 23:30
2 Jones 16/04/2009 17:30 STD 16/04/2009 23:30



Is it possible to change this to:

Start End Start End Start End
ID Surname 14/04 14/04 15/04 15/04 16/04 16/04
1 Smith 14:55 22:30 14:55 22:30 14:55 22:30
2 Jones 17:30 23:30 17:30 23:30 17:30 23:30




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9,101
Default Data Conversion - times, dates & rows

Your formula is good. You could split the data using Text-To-column and
using delimited with a comma seperator. the only thing that would be shorter
is to replace "CONCATENATE" with the "&"

=VALUE(LEFT(X2,2)&":"&MID(X2,4,2))+VALUE(W2)


"Sara" wrote:

Hi Joel,

This isn't a CSV file. It's downloaded straight into excel from PeopleSoft,
so I cannot edit at the source. Numbers are recognised as text.

After a lot of experimentation I've figured out the formula to make excel
recognise the dates/times as such. Is there a shorter/cleaner version of
this?
X2 being the time & W2 being the date
=VALUE(CONCATENATE(LEFT(X2,2),":",MID(X2,4,2),))+V ALUE(W2)

I want to be able to transpose the data by employee.

The sheet, simplified is
EMPLOYEE DAY START END
Jones Mon 0800 1600
Jones Tue 0800 1600
Jones Wed 0800 1600
Smith Mon 2300 0800
Smith Tue 2300 0800
Smith Wed 2300 0800

I need this to convert to something like
Employee MonStart MonEnd TuesStart TuesEnd WedStart WedEnd
Jones 0800 1600 0800 1600 0800 1600
Smith 2300 0800 2300 0800 2300
0800

I need something like a PivotTables but have the data item to not be a
calculation

"joel" wrote:

The data look like CSV which is comma seperated data because there is a comma
between the date and times. Text to columns (or importing) will place the
date and time in two diffferent columns.

The date 2009-04-13 is the international standard which shouldn't require
any changes. the time you will need to replace the period with the dot.

Once the date and time are corrrect to combinat them is simply adding the
two numbers together.

A macro can bewritten to modify the data automatically. Not sure if it
better to modify the worksheet or modify the text file before importing the
data. the information you posted need more details before I can give an
better answer.

"Sara" wrote:

Hi there,

I have a huge spreadsheet that is downloaded out of another program every
week listing all staff and their rosters for the week.

The dates and times are imported in these format 2009-04-13,
14.55.00.000000. Is there a way to convert to 13/04/2009 & 14:55 or similiar
so excel recognises as dates and times, other than find/replace?

The data lists each employee as follows:
ID Surname Start Date Start Time Attnd Type End Date End Time
1 Smith 14/04/2009 14:55 STD 14/04/2009 22:30
1 Smith 15/04/2009 14:55 STD 15/04/2009 22:30
1 Smith 16/04/2009 14:55 STD 16/04/2009 22:30
2 Jones 14/04/2009 17:30 STD 14/04/2009 23:30
2 Jones 15/04/2009 17:30 STD 15/04/2009 23:30
2 Jones 16/04/2009 17:30 STD 16/04/2009 23:30



Is it possible to change this to:

Start End Start End Start End
ID Surname 14/04 14/04 15/04 15/04 16/04 16/04
1 Smith 14:55 22:30 14:55 22:30 14:55 22:30
2 Jones 17:30 23:30 17:30 23:30 17:30 23:30




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 82
Default Data Conversion - times, dates & rows

Awesome

Any ideas on the other part?

"joel" wrote:

Your formula is good. You could split the data using Text-To-column and
using delimited with a comma seperator. the only thing that would be shorter
is to replace "CONCATENATE" with the "&"

=VALUE(LEFT(X2,2)&":"&MID(X2,4,2))+VALUE(W2)


"Sara" wrote:

Hi Joel,

This isn't a CSV file. It's downloaded straight into excel from PeopleSoft,
so I cannot edit at the source. Numbers are recognised as text.

After a lot of experimentation I've figured out the formula to make excel
recognise the dates/times as such. Is there a shorter/cleaner version of
this?
X2 being the time & W2 being the date
=VALUE(CONCATENATE(LEFT(X2,2),":",MID(X2,4,2),))+V ALUE(W2)

I want to be able to transpose the data by employee.

The sheet, simplified is
EMPLOYEE DAY START END
Jones Mon 0800 1600
Jones Tue 0800 1600
Jones Wed 0800 1600
Smith Mon 2300 0800
Smith Tue 2300 0800
Smith Wed 2300 0800

I need this to convert to something like
Employee MonStart MonEnd TuesStart TuesEnd WedStart WedEnd
Jones 0800 1600 0800 1600 0800 1600
Smith 2300 0800 2300 0800 2300
0800

I need something like a PivotTables but have the data item to not be a
calculation

"joel" wrote:

The data look like CSV which is comma seperated data because there is a comma
between the date and times. Text to columns (or importing) will place the
date and time in two diffferent columns.

The date 2009-04-13 is the international standard which shouldn't require
any changes. the time you will need to replace the period with the dot.

Once the date and time are corrrect to combinat them is simply adding the
two numbers together.

A macro can bewritten to modify the data automatically. Not sure if it
better to modify the worksheet or modify the text file before importing the
data. the information you posted need more details before I can give an
better answer.

"Sara" wrote:

Hi there,

I have a huge spreadsheet that is downloaded out of another program every
week listing all staff and their rosters for the week.

The dates and times are imported in these format 2009-04-13,
14.55.00.000000. Is there a way to convert to 13/04/2009 & 14:55 or similiar
so excel recognises as dates and times, other than find/replace?

The data lists each employee as follows:
ID Surname Start Date Start Time Attnd Type End Date End Time
1 Smith 14/04/2009 14:55 STD 14/04/2009 22:30
1 Smith 15/04/2009 14:55 STD 15/04/2009 22:30
1 Smith 16/04/2009 14:55 STD 16/04/2009 22:30
2 Jones 14/04/2009 17:30 STD 14/04/2009 23:30
2 Jones 15/04/2009 17:30 STD 15/04/2009 23:30
2 Jones 16/04/2009 17:30 STD 16/04/2009 23:30



Is it possible to change this to:

Start End Start End Start End
ID Surname 14/04 14/04 15/04 15/04 16/04 16/04
1 Smith 14:55 22:30 14:55 22:30 14:55 22:30
2 Jones 17:30 23:30 17:30 23:30 17:30 23:30






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9,101
Default Data Conversion - times, dates & rows

the other parts can't be simplified.

"Sara" wrote:

Awesome

Any ideas on the other part?

"joel" wrote:

Your formula is good. You could split the data using Text-To-column and
using delimited with a comma seperator. the only thing that would be shorter
is to replace "CONCATENATE" with the "&"

=VALUE(LEFT(X2,2)&":"&MID(X2,4,2))+VALUE(W2)


"Sara" wrote:

Hi Joel,

This isn't a CSV file. It's downloaded straight into excel from PeopleSoft,
so I cannot edit at the source. Numbers are recognised as text.

After a lot of experimentation I've figured out the formula to make excel
recognise the dates/times as such. Is there a shorter/cleaner version of
this?
X2 being the time & W2 being the date
=VALUE(CONCATENATE(LEFT(X2,2),":",MID(X2,4,2),))+V ALUE(W2)

I want to be able to transpose the data by employee.

The sheet, simplified is
EMPLOYEE DAY START END
Jones Mon 0800 1600
Jones Tue 0800 1600
Jones Wed 0800 1600
Smith Mon 2300 0800
Smith Tue 2300 0800
Smith Wed 2300 0800

I need this to convert to something like
Employee MonStart MonEnd TuesStart TuesEnd WedStart WedEnd
Jones 0800 1600 0800 1600 0800 1600
Smith 2300 0800 2300 0800 2300
0800

I need something like a PivotTables but have the data item to not be a
calculation

"joel" wrote:

The data look like CSV which is comma seperated data because there is a comma
between the date and times. Text to columns (or importing) will place the
date and time in two diffferent columns.

The date 2009-04-13 is the international standard which shouldn't require
any changes. the time you will need to replace the period with the dot.

Once the date and time are corrrect to combinat them is simply adding the
two numbers together.

A macro can bewritten to modify the data automatically. Not sure if it
better to modify the worksheet or modify the text file before importing the
data. the information you posted need more details before I can give an
better answer.

"Sara" wrote:

Hi there,

I have a huge spreadsheet that is downloaded out of another program every
week listing all staff and their rosters for the week.

The dates and times are imported in these format 2009-04-13,
14.55.00.000000. Is there a way to convert to 13/04/2009 & 14:55 or similiar
so excel recognises as dates and times, other than find/replace?

The data lists each employee as follows:
ID Surname Start Date Start Time Attnd Type End Date End Time
1 Smith 14/04/2009 14:55 STD 14/04/2009 22:30
1 Smith 15/04/2009 14:55 STD 15/04/2009 22:30
1 Smith 16/04/2009 14:55 STD 16/04/2009 22:30
2 Jones 14/04/2009 17:30 STD 14/04/2009 23:30
2 Jones 15/04/2009 17:30 STD 15/04/2009 23:30
2 Jones 16/04/2009 17:30 STD 16/04/2009 23:30



Is it possible to change this to:

Start End Start End Start End
ID Surname 14/04 14/04 15/04 15/04 16/04 16/04
1 Smith 14:55 22:30 14:55 22:30 14:55 22:30
2 Jones 17:30 23:30 17:30 23:30 17:30 23:30




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
Dates-Conversion Lisa12 Excel Worksheet Functions 11 July 2nd 08 03:44 PM
Conversion of dates Vjee Excel Discussion (Misc queries) 3 December 17th 07 12:24 PM
Charting and analyzing Times' times data for trends Johnny Excel Discussion (Misc queries) 1 May 5th 05 01:36 AM
Dates and times again Martin B Excel Worksheet Functions 13 April 26th 05 10:25 PM
Times and Dates rob1972 Excel Discussion (Misc queries) 0 March 7th 05 04:40 AM


All times are GMT +1. The time now is 11:30 PM.

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"