Just have to add ' in front of Time to make it text. Then can be used in the
formula as desired outcome

  _____  

From: excel-macros@googlegroups.com [mailto:excel-mac...@googlegroups.com]
On Behalf Of Amitabh Bose
Sent: Friday, August 07, 2009 3:45 PM
To: VBA_ Google
Subject: $$Excel-Macros$$ Urgent help required with Date/Time Format




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

 


  _____  

Match 'n' Make new friends with the cool match-meter. Join the Planet with
you Hotmail ID. Drag n <http://www.WindowsLivePlanet.com> ' drop







DISCLAIMER:The information contained in this electronic message and in any 
attachments to this message is
           confidential, legally privileged and intended only for the person or 
entity to which this electronic
           message is addressed. If you are not the intended recipient, please 
notify the system manager and 
           you are hereby notified that any distribution, copying, review, 
retransmission, dissemination or 
           other use of this electronic transmission or the information 
contained in it is strictly prohibited.
           Please accordingly also note that any views or opinions presented in 
this email are solely those of 
           the author and may not represent those of the Company or bind the 
Company. This message has been 
           scanned for viruses and dangerous content by Mail Scanner, and is 
believed to be clean. 
           The Company accepts no liability for any damage caused by any virus 
transmitted by this email.
           
--~--~---------~--~----~------------~-------~--~----~
----------------------------------------------------------------------------------
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to