Formatting Date Field

W

whatzzup

Good day, i have a problem where i have imported some data with dates and
time, the problem is i need to modify the time part of the date to a specific
time like 18:00:00. The dates came in as follows 05/09/2008 18:00:00
10/10/2008 18:00:00
23/10/2008 18:00:00
05/12/2008 16:01:00
28/11/2008 18:00:00
05/12/2008 10:00:00
06/06/2008 18:00:00
27/06/2008 18:00:00
18/07/2008 12:35:00
22/08/2008 18:00:00

How can i change them to all have a finish time of 18:00:00? Please note
that this is a sample from over 2,000 dates i have to modify.

Help Please!!!
 
S

Stefi

incoming dates beeing in column A
=INT(A2)+0.75
and format result cells as date/time
Regards,
Stefi


„whatzzup†ezt írta:
 
W

whatzzup

Thanks Stefi, but the entire date string is in on cell, all i need to do is
to change the time section, i can do this easily in search and replace but
because they are random times i would have to know what they are in the first
place to change them to 18:00:00
 
S

Stefi

I see, if they are strings instead of Excel date/time values, then use this
formula:
=LEFT(A2,11)&"18:00:00"
You can overwrite the original values with Copy/PasteSpecial-Values, if
necessary.

Regards,
Stefi

„whatzzup†ezt írta:
 
W

whatzzup

Thanks Stefi, it work a charm

Stefi said:
I see, if they are strings instead of Excel date/time values, then use this
formula:
=LEFT(A2,11)&"18:00:00"
You can overwrite the original values with Copy/PasteSpecial-Values, if
necessary.

Regards,
Stefi

„whatzzup†ezt írta:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

vlookup or Match 6
Determine if night shift by start & end time 2
Sumproduct 1
Pls help for Simple Calculation 1
Subtraction formula 7
Group Time 3
Formatting time 2
Average Time for Specific Item 9

Top