Hi All, I would be grateful if you could help me out with the following problem I am facing with regard to data formatting: The changes I need to make to the file are as follows: 1. I need to deduct one hour from the 'CaptureTime' field(column E) which is in seconds. This I have done by deducting 3600seconds. I have then divided this by 86400 to allow for the column to be formatted into hh:mm:ss 2. I then need to use this column and concatenate this field to the 'CaptureDate' field and get a field which is similar to the data in 'column G'. The problem I am facing is formatting the data to 'YYYY-MM-DD hh:mm:ss'. I have attached a file with sample data. Many thanks, Amitabh _________________________________________________________________ One stop at MSN India to catch up with what’s hot in the world around you today http://in.msn.com --~--~---------~--~----~------------~-------~--~----~ ---------------------------------------------------------------------------------- Some important links for excel users: 1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at http://www.excelitems.com 2. Excel tutorials at http://www.excel-macros.blogspot.com 3. Learn VBA Macros at http://www.vbamacros.blogspot.com 4. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com If you find any spam message in the group, please send an email to: Ayush Jain @ jainayus...@gmail.com or Ashish Jain @ 26may.1...@gmail.com <><><><><><><><><><><><><><><><><><><><><><> HELP US GROW !! We reach over 5,200 subscribers worldwide and receive many nice notes about the learning and support from the group. Our goal is to have 10,000 subscribers by the end of 2009. Let friends and co-workers know they can subscribe to group at http://groups.google.com/group/excel-macros/subscribe -~----------~----~----~----~------~----~------~--~---
SampleData.xls
Description: Binary data