Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding dates and times

Status
Not open for further replies.

athomas236

Mechanical
Joined
Jul 1, 2002
Messages
607
Location
GB
Hello,

If I have 2007 in cell A1, 8 in cell B1, 12 in cell C1 and 6 in cell D1, how can I add these together to give 12 August 2007 0600 in cell cell E1/

Regards,

athomas236
 
In cell E1, type "=DATE(A1;B1;C1)" then apply format "d mmmm yyyy h:mm" to it. This should works.

Cyril Guichard
Mechanical Engineer Consultant
France
 
FrenchCAD,

Many thanks, I did make slight adjustments as shown below:

type "=DATE(A1,B1,C1)+D1/24" then apply format "d mmmm yyyy h:mm"

Best regards,

athomas236
 
Hi athomas236:

You may aldo try ...
Code:
=TEXT(DATE(A1,B1,C1)+(D1&":"),"dd mmmm yyyy hhmm")

Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
ANAND Enterprises LLC
 
oh, nice combo there Yogi =)

Cyril Guichard
Mechanical Engineer Consultant
France
 
yogia,

I wish I had been brave enough to say that, but maybe I will one day.

athomas236
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top