display 0,45 as 0:45

robertvdb

Active Member
Joined
Jan 10, 2021
Messages
327
Office Version
  1. 2016
Platform
  1. Windows
I have a sheet which calculates time differences.

So 10:45 minus 10:00 equals 0:45

But my spreadsheet shows 0,45 (European format, so US would be 0.45)

How can I display 0:45 ?
 

Attachments

  • time.png
    time.png
    9.9 KB · Views: 12

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Wouldn't it work for you to do something along the lines of:

Excel Formula:
=B3-B2

And, if the auto-formatting does not pick this up as time by itself, use a number format yourself: u:mm
 
Upvote 0
no this doesn't work properly, because for input reasons, B2 and B3 are formatted as Custom 0\:00. So eg 11:05 - 10:00 would give 0:65
 
Upvote 0
Ah, right, I see what you did there. Makes no sense to me the input isn't actually timevalues, but in C6 then use:

Excel Formula:
=(B3-B2)/24

And then use the appropriate number formatting.
 
Upvote 0
I am reopening this because I'm still having issues. I am enclosing a new example.
 

Attachments

  • time.png
    time.png
    11.7 KB · Views: 9
Upvote 0
What is the value without formatting you need to show that, because a simple c3 - b3 would get you your answer.
 
Upvote 0
if I do C3-B3 , and I format the result as Custom hh:mm, then I get 00:00 instead of 0:10
 
Upvote 0
Hi,

have you tested for your custom format: h:mm ?
 
Upvote 0

Forum statistics

Threads
1,216,487
Messages
6,130,944
Members
449,608
Latest member
jacobmudombe

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top