Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I have cells with dates in this format: DD/MM/YYYY 00:00:00 and I want to add 3 hours because I'm in a different GMT zone.

Is possible to use dates in a formula?

Something like: 30/12/2012 22:15:00 should become: 31/12/2012 01:15:00

share|improve this question
add comment

3 Answers 3

up vote 8 down vote accepted

All date/time values in spreadsheets are internally handled as floating point values. To add 3 hours to a date/time just add (3/24) to the original date/time.

=F3+(3/24)

This also works in MS Excel.

share|improve this answer
    
Thanks, I did't knew that... One more thing, I'm using importrange to brin that dates... And I can't figure out how to do it with that... =importrange("xxxMyKeyxxx";"Archive!E2:E") ... Where should I add "+(3/24)"? Thanks again –  Santiago Jul 11 '12 at 22:14
add comment

I do this for my work schedule to track different projects:

Three columns A B C where column A is text, B is hours, C is minutes.

In Time 8:00 AM is B2

WLI     3   15

ADMS2   2    0

O&M     2   30

Break   0   15

Total   7   45

Out Time 3:45 PM

Total: =SUM(B3:B6) for hours, =SUM(C3:C6) for minutes

Out Time: =SUM(B2,(B7+C7/60)/24)

share|improve this answer
    
There is help available for the editor. Just click the question mark to the upper right of the editor. In this case, though, with tabular data, code format works reasonably well. –  Al E. Jan 7 at 16:46
add comment

See also: Convert a date in Google Spreadsheet?

=A1+Time(3,0,0)

Adds 3 'Hours', 0 'Minutes', 0 'Seconds' to the date/time value of A1

Additionally if only you use the main sheet you can go into the sheet settings and change it's timezone accordingly.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.