Содержание
- Преобразование секунд в минуты / часы / время — Excel и Google Таблицы
- Преобразование секунд в минуты и секунды в Excel
- Преобразование в часы, минуты и секунды в Excel
- Преобразование в дни, часы, минуты и секунды в Excel
- Преобразование секунд в минуты и секунды в Google Таблицах
- Преобразование в часы, минуты и секунды в Google Таблицах
- Преобразование в дни, часы, минуты и секунды в Google Таблицах
- Convert Seconds to Minutes / Hours / Time – Excel & Google Sheets
- Convert Seconds to Minutes and Seconds
- Convert to Hours, Minutes and Seconds
- Convert to Days, Hours, Minutes and Seconds in Excel
- Convert Seconds to Minutes and Seconds in Google Sheets
- Convert to Hours, Minutes and Seconds in Google Sheets
- Convert to Days, Hours, Minutes and Seconds in Google Sheets
- How to convert seconds to time value in Excel
- Basics of date and time values in Excel
- Converting seconds into time values in Excel
- Convert Seconds to Time in Excel
- How to Convert Seconds to Time in Excel
- Examples of how to Convert Seconds to Time in Excel
- Formatting Cells to Display Times in Excel
- Method 1 — Formatting Through the Ribbon Options
- Method 2 — Formatting Through the ‘Format Cells’ Dialog Box
- Formatting Cells to Display More Than 24 Hours
Преобразование секунд в минуты / часы / время — Excel и Google Таблицы
Загрузите образец книги
В этом руководстве будет показано, как преобразовать секунды во время в дни, минуты и часы в Excel и Google Таблицах.
Преобразование секунд в минуты и секунды в Excel
Первый шаг к преобразованию прошедшей секунды во время — это разделить значение на 86400. Причина в том, что в сутках 86400 секунд, то есть: в 24 часах.
Как только вы это сделаете, вы получите значение времени в виде числа. Чтобы отображать значение времени как действительное время, то есть в минутах и секундах, вам необходимо отформатировать ячейку с помощью настраиваемого форматирования.
- Выделите ячейки, которые вы хотите отформатировать, например: D3: D10.
- На ленте выберите Главная> Номер и затем щелкните маленькую стрелку справа от группы номеров.
- Откроется диалоговое окно «Формат ячеек».
- Нажмите на Обычай внизу списка, а затем введите мм: сс в текстовое поле настраиваемого формата.
Преобразование в часы, минуты и секунды в Excel
Вы используете ту же формулу для преобразования секунд во время, разделив значение на 86400.
Затем вы используете настраиваемое форматирование для отображения часов, а также минут и секунд.
Преобразование в дни, часы, минуты и секунды в Excel
Вы используете ту же формулу для преобразования секунд во время, разделив значение на 86400.
Затем вы используете настраиваемое форматирование для отображения дней, а также часов, минут и секунд.
Преобразование секунд в минуты и секунды в Google Таблицах
Как и в случае с Excel, первым шагом к преобразованию прошедшей секунды во время является деление значения на 86400.
- Чтобы отформатировать ячейки для мм: сс, Выбрать Формат> Число> Дополнительные форматы> Дополнительные форматы даты и времени из меню.
- Удалите 3 показанных формата, щелкнув каждый формат и выбрав Удалить.
- Прокрутите список вниз и найдите формат с минутами и секундами.
- Щелкните этот формат, чтобы добавить его на панель вверху настраиваемого поля.
- Удалите формат «Час» из настраиваемого формата.
- Нажмите Применить, чтобы применить форматирование к вашему рабочему листу.
Преобразование в часы, минуты и секунды в Google Таблицах
Вы используете ту же формулу в Google Таблицах, что и в Excel, чтобы преобразовать секунды во время, разделив значение на 86400.
Затем вы используете настраиваемое форматирование для отображения часов, а также минут и секунд.
Преобразование в дни, часы, минуты и секунды в Google Таблицах
Вы используете ту же формулу в Google Таблицах, что и в Excel, чтобы преобразовать секунды во время, разделив значение на 86400.
Затем вы используете настраиваемое форматирование для отображения дней, а также часов, минут и секунд.
- Удалите форматирование в поле «Пользовательские форматы даты и времени», а затем щелкните раскрывающийся список справа от поля пользовательского формата, чтобы отобразить все параметры даты и времени.
- Выбирать День а затем введите «дни», выберите Час а затем введите «часы», выберите Минуты а затем введите «минуты» и выберите Второй и введите «секунды»
Источник
Convert Seconds to Minutes / Hours / Time – Excel & Google Sheets
Download the example workbook
This tutorial will demonstrate how to convert seconds to days, hours, and minutes in Excel and Google Sheets.
Convert Seconds to Minutes and Seconds
First divide the number of seconds by 86400 (the number of seconds in a day).
Once you have done this, you will get the time value as a number. To display the time value as a valid time (i.e. in minutes and seconds) format the cell with custom formatting.
- Highlight the cells you wish to format eg: D3:D10.
- In the Ribbon, select Home > Number and then click on the little arrow on the right-hand side of the number group.
- The Format Cells dialog box will be shown.
- Click on Custom at the bottom of the list, and then type mm:ss into the custom format text box.
Convert to Hours, Minutes and Seconds
Use hh:mm:ss format to display in hours, minutes, and seconds.
Convert to Days, Hours, Minutes and Seconds in Excel
To display days as well, you can create custom formatting like below.
Convert Seconds to Minutes and Seconds in Google Sheets
As with Excel, the first step to converting elapsed second to time is to divide the value by 86400.
- To format the cells for mm:ss, select Format > Number > More Formats > More date and time formats from the Menu.
- Delete the 3 formats shown by clicking on each format and selecting Delete.
- Scroll down the list and find a format with minutes and seconds.
- Click on that format to add it to the bar at the top of the custom box.
- Delete the Hour format from the custom format.
- Click Apply to apply the formatting to your worksheet.
Convert to Hours, Minutes and Seconds in Google Sheets
You use the same formula in Google Sheets as you do in Excel to convert the seconds to time by dividing the value by 86400.
You then use custom formatting to display the hours as well as the minutes and seconds.
Convert to Days, Hours, Minutes and Seconds in Google Sheets
You use the same formula in Google Sheets as you do in Excel to convert the seconds to time by dividing the value by 86400.
You then use custom formatting to display the days as well as the hours, minutes and seconds.
- Delete the formatting in the Custom date and time formats box, and then click on the drop-down box to the right of the custom format box to display all the date and time options.
- Select Day and then type “days’, select Hour and then type “hours”, select Minute and then type “minutes” and then select Second and type “seconds”
Источник
How to convert seconds to time value in Excel
When it comes to date and time values, Excel evaluates them a bit differently than how we process them. For Excel, date and time values are numbers in a date or time display. Although this behavior allows making date and time calculations easier, it can be helpful to know your way around converting time values like seconds, into Excel time format. In this guide, we are going to show you how to convert seconds to time value in Excel.
Basics of date and time values in Excel
Excel stores date and time as numbers. Excel assumes that the date 1/1/1900 is “1″, and increases this number by 1 for each day. In a similar way, the time values can be any number between 0 and 0.999999999. For example; 6:00 AM is equal to 0.25.
Converting seconds into time values in Excel
Since time values are numbers in Excel, there are basically no restrictions in using a mathematical operation to convert seconds to time values in Excel. As mentioned in the previous section, Excel assumes that time values are distributed in 1 day. So, we know that 1 day is equal to to 24 hours, 1 hour is equal to 60 minutes and 1 minute is equal to 60 seconds. With this idea, 1 day is equal to 86400 seconds. All you need to do is to divide the seconds value by 86400 to convert seconds into 1-day base.
Here is table that shows what you would see when you divide some numbers by 86,400. Also, the third column shows the same value in a time number format «[h]:mm:ss;@».
Источник
Convert Seconds to Time in Excel
How to Convert Seconds to Time in Excel
If you want to convert a number of seconds to a time in Excel, the easiest way is to:
- Divide the number of seconds by 86400 (the number of seconds in a day);
Format the result as a time.
(To format an Excel cell to display a time, select the cell and then select the ‘Time’ format from the drop-down menu in the Home tab of the Excel ribbon).
This method of converting a number of seconds to a time works because dates and times in Excel are stored as simple decimal values, with one day represented by the decimal value 1.0, and one second represented by the decimal value 1/86400 (i.e. 1.0 divided by the number of seconds in a day).
Therefore, any number of seconds can be converted into an Excel time using the formula:
Examples of how to Convert Seconds to Time in Excel
A | B | |
---|---|---|
1 | Seconds | Time |
2 | 145 | =A2 / 86400 |
3 | 5460 | =A3 / 86400 |
4 | 84532 | =A4 / 86400 |
5 | 8 | =A5 / 86400 |
|
|
Note that, in order to display the values in column B of above spreadsheet as times, the cells must be formatted as times.
Formatting Cells to Display Times in Excel
If the result of your time calculation is displayed as a decimal, you need to set the cell’s formatting to an Excel time format. This can be done using one of the following methods:
Method 1 — Formatting Through the Ribbon Options
The easiest way to change cell formatting to a simple ‘Time’ format is to select the cell(s) to be formatted and then select the Time option from the drop-down menu in the ribbon. This is found in the ‘Number’ group on the Home tab (see below):
Method 2 — Formatting Through the ‘Format Cells’ Dialog Box
If you require a greater selection of time formats, you may prefer to apply cell formatting using the ‘Format Cells’ dialog box:
- Select the cell(s) to be formatted;
Open up the ‘Format Cells’ dialog box by either:
- Clicking on the dialog box launcher in the ‘Number’ grouping, on the Home tab of the Excel ribbon (see right above ).
or
- Using the keyboard shortcut Ctrl + 1 (i.e. press the Ctrl key and while holding this down press 1).
From the Category: list, select the option Time.
(If you want a time other than the default, you can then select one of the options from the list on the right hand side of the ‘Format Cells’ dialog box).
Formatting Cells to Display More Than 24 Hours
It is likely that the standard time format (applied when you use the ribbon option to format a time) will only display times up to 24 hours.
However, If you use the ‘Format Cells’ dialog box to format your cell(s), when you select the Time option from the ‘Categories:’ list, a further ‘Type’ list will appear on the right hand side of the dialog box (shown below).
From within the ‘Type’ list, select a time format that displays an hour value that is greater than 24, before clicking on the OK button, to close the dialog box.
Источник
Return to Excel Formulas List
Download Example Workbook
Download the example workbook
This tutorial will demonstrate how to convert seconds to days, hours, and minutes in Excel and Google Sheets.
Convert Seconds to Minutes and Seconds
First divide the number of seconds by 86400 (the number of seconds in a day).
=$B3/86400
Once you have done this, you will get the time value as a number. To display the time value as a valid time (i.e. in minutes and seconds) format the cell with custom formatting.
- Highlight the cells you wish to format eg: D3:D10.
- In the Ribbon, select Home > Number and then click on the little arrow on the right-hand side of the number group.
- This brings up the Format Cells dialog box.
- Click on Custom at the bottom of the list, and then type mm:ss into the custom format text box.
- Click OK.
Convert to Hours, Minutes and Seconds
Use hh:mm:ss format to display in hours, minutes, and seconds.
Convert to Days, Hours, Minutes and Seconds in Excel
To display days as well, you can create custom formatting like below.
Convert Seconds to Minutes and Seconds in Google Sheets
As with Excel, the first step to converting elapsed second to time is to divide the value by 86400.
=$B3/86400
- To format the cells for mm:ss, select Format > Number > More Formats > More date and time formats from the Menu.
- Delete the 3 formats shown by clicking on each format and selecting Delete.
- Scroll down the list and find a format with minutes and seconds.
- Click on that format to add it to the bar at the top of the custom box.
- Delete the Hour format from the custom format.
- Click Apply to apply the formatting to your worksheet.
Convert to Hours, Minutes and Seconds in Google Sheets
You use the same formula in Google Sheets as you do in Excel to convert the seconds to time by dividing the value by 86400.
=$B3/86400
You then use custom formatting to display the hours as well as the minutes and seconds.
Convert to Days, Hours, Minutes and Seconds in Google Sheets
You use the same formula in Google Sheets as you do in Excel to convert the seconds to time by dividing the value by 86400.
=$B3/86400
You then use custom formatting to display the days as well as the hours, minutes and seconds.
- Delete the formatting in the Custom date and time formats box, and then click on the drop-down box to the right of the custom format box to display all the date and time options.
- Select Day and then type “days’, select Hour and then type “hours”, select Minute and then type “minutes” and then select Second and type “seconds”
- Click Apply.
When it comes to date and time values, Excel evaluates them a bit differently than how we process them. For Excel, date and time values are numbers in a date or time display. Although this behavior allows making date and time calculations easier, it can be helpful to know your way around converting time values like seconds, into Excel time format. In this guide, we are going to show you how to convert seconds to time value in Excel.
Download Workbook
Basics of date and time values in Excel
Excel stores date and time as numbers. Excel assumes that the date 1/1/1900 is “1″, and increases this number by 1 for each day. In a similar way, the time values can be any number between 0 and 0.999999999. For example; 6:00 AM is equal to 0.25.
You can see the numeric value of a date or time value by changing number format of a cell contains a date or number.
Converting seconds into time values in Excel
Since time values are numbers in Excel, there are basically no restrictions in using a mathematical operation to convert seconds to time values in Excel. As mentioned in the previous section, Excel assumes that time values are distributed in 1 day. So, we know that 1 day is equal to to 24 hours, 1 hour is equal to 60 minutes and 1 minute is equal to 60 seconds. With this idea, 1 day is equal to 86400 seconds. All you need to do is to divide the seconds value by 86400 to convert seconds into 1-day base.
Time value = Seconds / 86400
Here is table that shows what you would see when you divide some numbers by 86,400. Also, the third column shows the same value in a time number format «[h]:mm:ss;@».
The last several posts have shown how to convert and aggregate a given number of seconds that represent song duration. A simple example because song duration never exceeded one hour.
But what if your data has values greater than 3600 seconds? How would you convert those seconds into an hour:minute:second format?
Luckily, the previously mentioned functions: TIME, INT, MOD still work. However, the arguments get a little more complicated.
To simplify things we’ll look individually at the three TIME Function arguments: Hours, Minutes, Seconds. Going so far as to create a formula for each, then combining into one big formula.
A Short Review
The INT Function returns the integer portion of a division and the MOD Function returns the remainder. If I divide 7 by 2, then INT(7/2) = 3 and MOD(7,2) = 1. Two goes into seven, three times, with one left over.
Additionally, there are two conversion factors.
- 1 hour = 60 minutes/hour x 60 seconds/minute = 3600 seconds
- 1 minute = 60 seconds/minute = 60 seconds
The TIME Function Arguments
In the following example, the value in cell A2 is 3661 seconds, which is 1 hour, 1 minute and 1 second.
Hours Argument
Getting the number of hours is easy, just use A2/3600 for the INT Function argument.
Minutes Argument
We need the remainder of A2/3600, which is MOD(A2,3600) = 61, but still have to convert these seconds to minutes. The answer is to divide MOD(A2,3600) by 60 and get the integer portion for the number of minutes.
In other words, 3600 goes into 3661 once, with 61 seconds left over. The MOD function gives us the 61 seconds. The INT function argument then reduces to INT(61/60), which gives us one (1), because 60 goes into 61 once.
Seconds Argument
MOD(A2/3600) gives us 61 seconds, so we need to divide by 60 and get the remaining seconds by using the MOD function again.
Since the inside MOD function equals 61 seconds, MOD(61,60) gives the us one (1), because after you divide 61 by 60 there is one (1) second left.
TIME Function
Putting all of these together inside the TIME Function makes the formula rather large.
Yet knowing how the functions work in each argument makes things a little more understandable.
Another TIME Function Example
Since 1:01:01 was easy math, but lousy use of too many 1’s I’ll use the value in cell A3, 7510, as a second example.
- Hours: INT(7510/3600) = 2 hours
- Remainder: MOD(7510, 3600) = 510 seconds
- Minutes: INT(510/60) = 5 minutes
- Seconds: MOD(510,60) = 10 seconds
- TIME(2,5,10) = 2:5:10
Notice the Remainder of the first division (7510/3600) is the central argument for Minutes and Seconds.
=A2/(24*60*60) OR =A2/86400
=TEXT(A2/(24*60*60),«hh:mm:ss») // to store result as a TEXT value
=TEXT(A2/(86400),«hh:mm:ss») // to store result as a TEXT value
A2 = data cell
Check below for a detailed explanation with pictures and how to use formulas in Excel and Google Sheets.
Convert seconds to time format in Excel
Convert seconds to time format in Excel
How to convert seconds to time format in Excel?
CONVERT SECONDS TO TIME FORMAT — EXCEL FORMULA AND EXAMPLE
CONVERT SECONDS TO TIME FORMAT — EXCEL FORMULA AND EXAMPLE
-
=A2/(24*60*60)
-
=A3/86400
-
=TEXT(A2/(24*60*60),«hh:mm:ss») // result will be stored as a TEXT value
-
=TEXT(A2/(86400),«hh:mm:ss») // result will be stored as a TEXT value
-
A2 = date cell
-
C2 = cell formatted as a time
-
C3 = raw number
Convert seconds to time format in Google Sheets
Convert seconds to time format in Google Sheets
How to convert seconds to time format in Google Sheets?
CONVERT SECONDS TO TIME FORMAT — GOOGLE SHEETS FORMULA AND EXAMPLE
CONVERT SECONDS TO TIME FORMAT — GOOGLE SHEETS FORMULA AND EXAMPLE
-
=A2/(24*60*60)
-
=A3/86400
-
=TEXT(A2/(24*60*60),«hh:mm:ss») // result will be stored as a TEXT value
-
=TEXT(A2/(86400),«hh:mm:ss») // result will be stored as a TEXT value
-
A2 = date cell
-
C2 = cell formatted as a time
-
C3 = raw number
Coming | Subscribe here for the custom Excel/Sheets formulas E-book (PDF) >