ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Change time h:mm to a decimal number based on hours (https://www.excelbanter.com/excel-worksheet-functions/144725-change-time-h-mm-decimal-number-based-hours.html)

Snort5525

Change time h:mm to a decimal number based on hours
 
We have a spreadsheet with columns for time started and time finished. The
data shows up as hh:mm. A third column is the difference between these first
two, showing total hours and minutes spent on the task. How can I show the
data in the third column as hours to two decimal places?

DazzaData

Change time h:mm to a decimal number based on hours
 
Hi,

Just multiply it by 24 and format as a regular number

Cheers

"Snort5525" wrote:

We have a spreadsheet with columns for time started and time finished. The
data shows up as hh:mm. A third column is the difference between these first
two, showing total hours and minutes spent on the task. How can I show the
data in the third column as hours to two decimal places?


Pete_UK

Change time h:mm to a decimal number based on hours
 
Try this:

=(B1-A1)*24

and format the cell as Number with 2dp. Copy down as necessary.

Hope this helps.

Pete



On May 31, 4:56 pm, Snort5525
wrote:
We have a spreadsheet with columns for time started and time finished. The
data shows up as hh:mm. A third column is the difference between these first
two, showing total hours and minutes spent on the task. How can I show the
data in the third column as hours to two decimal places?




Toppers

Change time h:mm to a decimal number based on hours
 


=ROUND((Finish-Start)*24,2)

"Snort5525" wrote:

We have a spreadsheet with columns for time started and time finished. The
data shows up as hh:mm. A third column is the difference between these first
two, showing total hours and minutes spent on the task. How can I show the
data in the third column as hours to two decimal places?


Snort5525

Change time h:mm to a decimal number based on hours
 
Thanks to all for their help! I did not anticipate such a quick response, and
you saved me a lot of time.

"Pete_UK" wrote:

Try this:

=(B1-A1)*24

and format the cell as Number with 2dp. Copy down as necessary.

Hope this helps.

Pete



On May 31, 4:56 pm, Snort5525
wrote:
We have a spreadsheet with columns for time started and time finished. The
data shows up as hh:mm. A third column is the difference between these first
two, showing total hours and minutes spent on the task. How can I show the
data in the third column as hours to two decimal places?





Snort5525

Change time h:mm to a decimal number based on hours
 
Thank you for your assistance.
Your quick answer was right on point.

"DazzaData" wrote:

Hi,

Just multiply it by 24 and format as a regular number

Cheers

"Snort5525" wrote:

We have a spreadsheet with columns for time started and time finished. The
data shows up as hh:mm. A third column is the difference between these first
two, showing total hours and minutes spent on the task. How can I show the
data in the third column as hours to two decimal places?


Snort5525

Change time h:mm to a decimal number based on hours
 
Your help is greatly appreciated.

"Toppers" wrote:



=ROUND((Finish-Start)*24,2)

"Snort5525" wrote:

We have a spreadsheet with columns for time started and time finished. The
data shows up as hh:mm. A third column is the difference between these first
two, showing total hours and minutes spent on the task. How can I show the
data in the third column as hours to two decimal places?



All times are GMT +1. The time now is 03:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com