---
title: "TIME function in Excel: syntax and examples | PracticeExcel"
description: "How to use TIME in Excel and Google Sheets: build times from hours and minutes, add minutes to a start time and format the result."
canonical_url: "https://practiceexcelonline.com/functions/time"
locale: en
meta:
  "og:description": "How to use TIME in Excel and Google Sheets: build times from hours and minutes, add minutes to a start time and format the result."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~VElNRSBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBUSU1FIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBidWlsZCB0aW1lcyBmcm9tIGhvdXJzIGFuZCBtaW51dGVzLCBhZGQgbWludXRlcyB0byBhIHN0YXJ0IHRpbWUgYW5kIGZvcm1hdCB0aGUgcmVzdWx0Lg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~VElNRShob3VyLCBtaW51dGUsIHNlY29uZCk%2Cp_Ii9mdW5jdGlvbnMvdGltZSI%2Cs_KfB12aRC7TFGXIpM.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "TIME function in Excel: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~VElNRSBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBUSU1FIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBidWlsZCB0aW1lcyBmcm9tIGhvdXJzIGFuZCBtaW51dGVzLCBhZGQgbWludXRlcyB0byBhIHN0YXJ0IHRpbWUgYW5kIGZvcm1hdCB0aGUgcmVzdWx0Lg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~VElNRShob3VyLCBtaW51dGUsIHNlY29uZCk%2Cp_Ii9mdW5jdGlvbnMvdGltZSI%2Cs_KfB12aRC7TFGXIpM.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **The TIME function**

Builds a time from an hour, a minute and a second. The result is a fraction of a day, so TIME(12,0,0) is 0.5.

=

TIME(

## **Syntax**

```
TIME(hour, minute, second)
```

<dl><dt>**hour **</dt>
<dd>The hour, 0 to 23. Larger numbers wrap around the day.</dd>
<dt>**minute **</dt>
<dd>The minute. 60 or more carries over into hours.</dd>
<dt>**second **</dt>
<dd>The second. 60 or more carries over into minutes.</dd></dl>

## **Examples**

B1=TEXT(TIME(14,30,0),"h:mm AM/PM")

|  | A | B |
| --- | --- | --- |
| 1 |  | **2:30 PM** |

B1`=TIME(<sup>1</sup>12,<sup>2</sup>0,<sup>3</sup>0)`

|  | A | B |
| --- | --- | --- |
| 1 |  | **0.5** |

**In plain words:** The time <sup>1</sup>12 hours, <sup>2</sup>0 minutes and <sup>3</sup>0 seconds into the day.

B1=TEXT(TIME(8,0,0)+TIME(0,450,0),"h:mm")

|  | A | B |
| --- | --- | --- |
| 1 |  | **15:30** |

## **Questions**

<details>

<summary>

### Why does my time show as a decimal number?

</summary>

Times are fractions of a day, so 12:00 PM is 0.5. Format the cell as a time (Ctrl+1 &gt; Time) to see it as a clock time.

</details>

<details>

<summary>

### How do I add hours or minutes to a time?

</summary>

Add a TIME to it, as in =A2+TIME(3,0,0) for three hours later or =A2+TIME(0,45,0) for 45 minutes.

</details>

## **Related functions**

- [**HOUR**](https://practiceexcelonline.com/functions/hour)
- [**NOW**](https://practiceexcelonline.com/functions/now)
- [**DATE**](https://practiceexcelonline.com/functions/date)
- [**TEXT**](https://practiceexcelonline.com/functions/text)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":{"@id":"https://excelopgaver.dk/#website"}},{"@id":"https://practiceexcelonline.com/functions/time#webpage","description":"How to use TIME in Excel and Google Sheets: build times from hours and minutes, add minutes to a start time and format the result.","name":"TIME function in Excel: syntax and examples","url":"https://practiceexcelonline.com/functions/time","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/functions/time#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/functions/time#/schema/question/1"},{"@id":"https://practiceexcelonline.com/functions/time#/schema/question/2"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/functions/time"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/functions/time#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Excel functions","item":"https://practiceexcelonline.com/functions","position":2},{"@type":"ListItem","name":"TIME function in Excel: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/functions/time#article","description":"How to use TIME in Excel and Google Sheets: build times from hours and minutes, add minutes to a start time and format the result.","headline":"TIME function in Excel: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~VElNRSBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBUSU1FIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBidWlsZCB0aW1lcyBmcm9tIGhvdXJzIGFuZCBtaW51dGVzLCBhZGQgbWludXRlcyB0byBhIHN0YXJ0IHRpbWUgYW5kIGZvcm1hdCB0aGUgcmVzdWx0Lg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~VElNRShob3VyLCBtaW51dGUsIHNlY29uZCk%2Cp_Ii9mdW5jdGlvbnMvdGltZSI%2Cs_KfB12aRC7TFGXIpM.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/functions/time#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/functions/time#webpage"},"publisher":{"@id":"https://practiceexcelonline.com/#identity"}},{"@id":"https://practiceexcelonline.com/functions/time#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"Why does my time show as a decimal number?","acceptedAnswer":{"@type":"Answer","text":"Times are fractions of a day, so 12:00 PM is 0.5. Format the cell as a time (Ctrl+1 > Time) to see it as a clock time."}},{"@id":"https://practiceexcelonline.com/functions/time#/schema/question/2","@type":"Question","inLanguage":"en-US","name":"How do I add hours or minutes to a time?","acceptedAnswer":{"@type":"Answer","text":"Add a TIME to it, as in =A2+TIME(3,0,0) for three hours later or =A2+TIME(0,45,0) for 45 minutes."}},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"},{"@id":"https://practiceexcelonline.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~VElNRSBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBUSU1FIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBidWlsZCB0aW1lcyBmcm9tIGhvdXJzIGFuZCBtaW51dGVzLCBhZGQgbWludXRlcyB0byBhIHN0YXJ0IHRpbWUgYW5kIGZvcm1hdCB0aGUgcmVzdWx0Lg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~VElNRShob3VyLCBtaW51dGUsIHNlY29uZCk%2Cp_Ii9mdW5jdGlvbnMvdGltZSI%2Cs_KfB12aRC7TFGXIpM.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~VElNRSBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBUSU1FIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBidWlsZCB0aW1lcyBmcm9tIGhvdXJzIGFuZCBtaW51dGVzLCBhZGQgbWludXRlcyB0byBhIHN0YXJ0IHRpbWUgYW5kIGZvcm1hdCB0aGUgcmVzdWx0Lg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~VElNRShob3VyLCBtaW51dGUsIHNlY29uZCk%2Cp_Ii9mdW5jdGlvbnMvdGltZSI%2Cs_KfB12aRC7TFGXIpM.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
