---
title: "HOUR function in Excel: syntax and examples | PracticeExcel"
description: "How to use HOUR in Excel and Google Sheets: the hour of a time, shift times and how to turn a time into decimal hours."
canonical_url: "https://practiceexcelonline.com/functions/hour"
locale: en
meta:
  "og:description": "How to use HOUR in Excel and Google Sheets: the hour of a time, shift times and how to turn a time into decimal hours."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~SE9VUiBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBIT1VSIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiB0aGUgaG91ciBvZiBhIHRpbWUsIHNoaWZ0IHRpbWVzIGFuZCBob3cgdG8gdHVybiBhIHRpbWUgaW50byBkZWNpbWFsIGhvdXJzLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_HOUR(serial__number)%2Cp_Ii9mdW5jdGlvbnMvaG91ciI%2Cs_Z3okVGohYkZl7whQ.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "HOUR function in Excel: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~SE9VUiBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBIT1VSIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiB0aGUgaG91ciBvZiBhIHRpbWUsIHNoaWZ0IHRpbWVzIGFuZCBob3cgdG8gdHVybiBhIHRpbWUgaW50byBkZWNpbWFsIGhvdXJzLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_HOUR(serial__number)%2Cp_Ii9mdW5jdGlvbnMvaG91ciI%2Cs_Z3okVGohYkZl7whQ.png"
---

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

# **The HOUR function**

Returns the hour of a time as a number from 0 to 23. Times are fractions of a day, so 0.75 is 6:00 PM and HOUR(0.75) is 18.

=

HOUR(

## **Syntax**

```
HOUR(serial_number)
```

<dl><dt>**serial_number **</dt>
<dd>The time, or date and time, to take the hour from.</dd></dl>

## **Examples**

B1=HOUR(TIME(14,30,0))

|  | A | B |
| --- | --- | --- |
| 1 |  | **14** |

B1=HOUR(0.75)

|  | A | B |
| --- | --- | --- |
| 1 |  | **18** |

B1=HOUR("9:45 PM")

|  | A | B |
| --- | --- | --- |
| 1 |  | **21** |

## **Questions**

<details>

<summary>

### How do I get the minutes and seconds of a time?

</summary>

MINUTE and SECOND work just like HOUR, so =MINUTE(A2) returns 0 to 59.

</details>

<details>

<summary>

### How do I turn a time into decimal hours?

</summary>

Multiply by 24, as in =A2\*24, and format the cell as a number. 2:30 becomes 2.5.

</details>

## **Related functions**

- [**TIME**](https://practiceexcelonline.com/functions/time)
- [**NOW**](https://practiceexcelonline.com/functions/now)
- [**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/hour#webpage","description":"How to use HOUR in Excel and Google Sheets: the hour of a time, shift times and how to turn a time into decimal hours.","name":"HOUR function in Excel: syntax and examples","url":"https://practiceexcelonline.com/functions/hour","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/functions/hour#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/functions/hour#/schema/question/1"},{"@id":"https://practiceexcelonline.com/functions/hour#/schema/question/2"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/functions/hour"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/functions/hour#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":"HOUR function in Excel: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/functions/hour#article","description":"How to use HOUR in Excel and Google Sheets: the hour of a time, shift times and how to turn a time into decimal hours.","headline":"HOUR function in Excel: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~SE9VUiBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBIT1VSIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiB0aGUgaG91ciBvZiBhIHRpbWUsIHNoaWZ0IHRpbWVzIGFuZCBob3cgdG8gdHVybiBhIHRpbWUgaW50byBkZWNpbWFsIGhvdXJzLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_HOUR(serial__number)%2Cp_Ii9mdW5jdGlvbnMvaG91ciI%2Cs_Z3okVGohYkZl7whQ.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/functions/hour#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/functions/hour#webpage"},"publisher":{"@id":"https://practiceexcelonline.com/#identity"}},{"@id":"https://practiceexcelonline.com/functions/hour#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"How do I get the minutes and seconds of a time?","acceptedAnswer":{"@type":"Answer","text":"MINUTE and SECOND work just like HOUR, so =MINUTE(A2) returns 0 to 59."}},{"@id":"https://practiceexcelonline.com/functions/hour#/schema/question/2","@type":"Question","inLanguage":"en-US","name":"How do I turn a time into decimal hours?","acceptedAnswer":{"@type":"Answer","text":"Multiply by 24, as in =A2*24, and format the cell as a number. 2:30 becomes 2.5."}},{"@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_~SE9VUiBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBIT1VSIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiB0aGUgaG91ciBvZiBhIHRpbWUsIHNoaWZ0IHRpbWVzIGFuZCBob3cgdG8gdHVybiBhIHRpbWUgaW50byBkZWNpbWFsIGhvdXJzLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_HOUR(serial__number)%2Cp_Ii9mdW5jdGlvbnMvaG91ciI%2Cs_Z3okVGohYkZl7whQ.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~SE9VUiBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBIT1VSIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiB0aGUgaG91ciBvZiBhIHRpbWUsIHNoaWZ0IHRpbWVzIGFuZCBob3cgdG8gdHVybiBhIHRpbWUgaW50byBkZWNpbWFsIGhvdXJzLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_HOUR(serial__number)%2Cp_Ii9mdW5jdGlvbnMvaG91ciI%2Cs_Z3okVGohYkZl7whQ.png"}]}
```

## Sitemap

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