Excel Digest

  Excel help for the rest of us

Archive for the 'Date and Time' Category

29 Nov

How to some times greater than 24 hours in Excel 2007

To sum times you usually use Excel built-in function SUM. If you have three cells A1, A2 and A3 formatted as time (hh:mm), and you have :
A1 = 02:30
A2 = 10:15
A3 has the formula: =SUM(A1:A2)
then A3 will have the correct values of 12:45.
However if your total times are greater than 24 hours then things get [...]

28 Feb

Convert time in decimals to a standard time

If you have a time in a decimal format, i.e. an integer and a fraction, e.g. 2.5 hours (2 and a half hours) and you want to convert to a standard time format 02:30 (2 hours and 30 minutes), then you can use a formula based on the TIME function with the following syntax:
TIME(hours,minutes,seconds)
Example:
We have [...]

12 Feb

Add hours or minutes to a standard time

If you have a standard time, current time for example, and you want to add to it hours, minutes or seconds to get to a new time, then what you need to do is to convert the hours or minutes to a standard time format using the TIME function. After that you can add [...]

08 Feb

How to add or sum times

If you have a number of time values you want to add together, e.g. total hours worked by an employee in the week, then you can list those hours in a standard time format (hh:mm or hh:mm:ss) and sum them together.
Example 1 : total hours less than 24.
Cells B1, B2, B3 and B4 contains the [...]

27 Jan

How to insert current date in worksheet footer

To insert the current date in worksheet footer, follow these steps:
1. In the File menu click Page Setup. The Page Setup window will open.
2. Select the Header/Footer tab.
3. Click the Custom Footer button. The Footer window will open.

As you can notice the footer is divided into three sections; left, center and right. Above those sections there is a [...]

26 Jan

Calculate the difference between two times

The way you calculate the difference between two times depends on the way you want to present your results:
1. Present the result in standard time format (hh:mm:ss).
Simply subtract the two times from each other and format the result cell as time.
Examples:
A1 = 9:15:00
B1 = 14:07:20
Difference = B1-A1 = 4:52:20 (4 hours, 52 minutes and 20 [...]

12 Jan

How to calculate the number of days between two dates

To calculate the difference or the number of days between two dates, you simply subtract one date from the other.
Example (using format:dd/mm/yyyy):
Suppose you have the date 25/11/2007 in cell A1 and the date 15/01/2008 in cell B1 (both cells formatted as date). To calculate the difference between these two dates you use the following formula:
=B1 [...]

08 Jan

How to extract day, month or year from a date

To extract day, month or year from a date, you use the corresponding Excel built in function for each one of these date parts.

Day: Day(mydate).

Month: Month(mydate).

Year: Year(mydate).

Examples:
Suppose you have in cell A1 (formatted as date), the date:15/11/2009 (ddmmyyyy), Then:

Day(A1) will result in 15

Month(A1) will result in 11

Year(A1) will result in 2009

Applies [...]

27 Dec

Calculate the number of months between two dates – knowledgebase article

This step-by-step article shows you how to calculate the number of months between any two dates.
To calculate the number of months between any two dates, use one of the following methods. Note that both methods use the following information:
• EDate = Earlier Date
• LDate = Later Date
NOTE: If you type LDate or EDate directly into this formula [...]

13 Dec

How to get the current date and time

If you want to get the current date and time in a cell then you can do one of the following:
1. To get the current date only use the TODAY() function.
Syntax
=TODAY()
2. To get the current date and time use the NOW() function.
Syntax
=NOW()
3. To get the current time only use the NOW() function, and then format [...]

© 2010 Excel Digest | Entries (RSS) and Comments (RSS)

GPS Reviews and news from GPS Gazettewordpress logo