Time format in excel

abugharibh

New Member
Joined
May 16, 2019
Messages
10
I have extracted some data from a healthcare system at work. It includes time differences that appear like this : 1h 04m or 25h 35m
I need to know how many entries are >24 hours and how many < 24 but the problem icouldnt deal with that kind of format.
Please how can i change that to a regular time format: 1:04 and 25:35
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
I presume the colon is not part of the data; that is, "1h 04m", not ": 1h 04m".

Use an formula of the form:

=--TRIM(SUBSTITUTE(SUBSTITUTE(A1,"h",":"),"m",""))

format as Custom [h]:mm to convert to numeric time.

If that formula is in B1:B10, use the following to count how many are less than 24 hours:

=COUNTIF(B1:B10, "<1")

Excel stores time as a fraction of a day. So 1 = 24 hours.
 
Upvote 0
Solution

Forum statistics

Threads
1,214,958
Messages
6,122,475
Members
449,087
Latest member
RExcelSearch

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