Excel add one hour

ExcelExcel 2003

Excel Problem Overview


I have in cel A1 with the following contents:

7:30:43 which is a time.

But now i want to use a formula to add one hour. What is the best way or how can i do this?

Excel Solutions


Solution 1 - Excel

=A1+TIME(1,0,0)

Although, maybe this should be posted on Super User.

Solution 2 - Excel

In cell A1, enter the time.
In cell B2, enter =A1+1/24

Solution 3 - Excel

This may help you as well. This is a conditional statement that will fill the cell with a default date if it is empty but will subtract one hour if it is a valid date/time and put it into the cell.

=IF((Sheet1!C4)="",DATE(1999,1,1),Sheet1!C4-TIME(1,0,0))

You can also substitute TIME with DATE to add or subtract a date or time.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionsandersView Question on Stackoverflow
Solution 1 - ExcelleonigmigView Answer on Stackoverflow
Solution 2 - ExceljennyView Answer on Stackoverflow
Solution 3 - ExcelWugglesView Answer on Stackoverflow