How to Convert Time to Hours in Excel (3 Methods)

Dataset Overview

Let’s consider a dataset of a trader. Here, the dataset has the Product Arrival Time. As you can see, the dataset has two columns B & C indicating Product & Arrival Time respectively. The dataset is ranging from B4 to C10.

Dataset to convert time to hours in Excel

Method 1 – Perform Arithmetic Calculation to Convert Time to Hours

In this portion of this tutorial, we will demonstrate how to Convert Time to Hours by performing Arithmetic Calculation step by step.

Steps:

  • Select cell D5.
  • Enter the following formula in D5:
=C5*24

Arithmetic Calculation to convert time to hours in Excel

  • Press the Enter button.
  • As a result, you will find the result in D5 just like the picture shown below.

Arithmetic Calculation to convert time to hours in Excel

  • To change the number format, Go to the Home tab first.
  • Select the Number.
  • Select the dropdown bar.
  • Select the General option.

Arithmetic Calculation to convert time to hours in Excel

  • You will find the result in D5 just like the picture given below.
  • Use the Fill Handle to copy the formula from D5 to D10.

Arithmetic Calculation to convert time to hours in Excel

  • You will find the result just like the picture given below.

Arithmetic Calculation to convert time to hours in Excel


Method 2 – Apply the CONVERT Function to Convert Time to Hours in Excel

Steps:

  • Select cell D5.
  • Enter the following formula in the D5 cell:
=CONVERT(C5, "day", "hr")
  • Press Enter.

CONVERT Function to convert time to hours in Excel

  • Fill Handle the formula from D5 to D10 to apply it to the entire range.

CONVERT Function to convert time to hours in Excel

Result:

  • The converted time values will be displayed, as illustrated in the picture below.

CONVERT Function to convert time to hours in Excel


Method 3 – Convert Time to Hours by Combining HOUR, MINUTE, & SECOND Functions

Overview:

  • In this method, we’ll use the HOUR, MINUTE, and SECOND functions to convert time to hours.
  • Consider a dataset of a trader with columns B (Product) and C (Arrival Time), ranging from B4 to C10.

Steps:

  • Select cell D5.
  • Enter the following formula in D5:
=HOUR(C5)+MINUTE(C5)/60+SECOND(C5)/3600
  • Press Enter.

  • The result in D5 will show the converted time in hours.
  • Fill Handle the formula from D5 to D10 to apply it to the entire range.

Result:

  • The converted time values will appear as shown in the picture below.


Convert Decimal Time to Hours and Minutes in Excel

For this method, we are considering the Product Arrival time in Decimal. I will apply the TEXT Function to Convert Decimal Time to Hours and Minutes in Excel.

TEXT Function to convert Decimal time to hours & minutes in Excel

Steps: 

  • Consider the same dataset with Product Arrival Time in decimal format.
  • Select cell D5.
  • Insert the following formula:
=TEXT(C5/24,"h:mm")
  • Press Enter.

TEXT Function to convert Decimal time to hours & minutes in Excel

  • Fill Handle the formula from D5 to D10 to apply it to the entire range.

TEXT Function to convert Decimal time to hours & minutes in Excel

Result:

  • The converted time values will be displayed, as illustrated in the picture below.


Things to Remember

  • After applying any formula, if the result is in a custom number format, change the format to General to display the desired result

Download Practice Workbook

Please download the practice workbook to practice yourself.


Convert Time to Hours in Excel: Knowledge Hub


<< Go Back to Time Conversion | Date-Time in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Souptik Roy
Souptik Roy

Souptik Roy, a BSc graduate in Naval Architecture and Marine Engineering from Bangladesh University of Engineering and Technology, dedicated 1.5 years to the ExcelDemy project. During this time, he authored 50+ articles and reviewed 20+ for ExcelDemy. Presently, he is a designer and content developer at YouHaveGotThisMath and Brainor, sister concerns of ExcelDemy. His educational content spans science, mathematics, and grammar. Roy's interests include developing creative ideas, visualizing concepts with tools like Adobe Illustrator, and problem-solving within Microsoft... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo