Macro to Convert Only mm:ss to hh:mm:ss

Status
Not open for further replies.

squeakums

Well-known Member
Joined
May 15, 2007
Messages
823
Office Version
  1. 365
I need a macro that will only find formats mm:ss and not format hh:mm:ss and then convert mm:ss to hh:mm:ss.

For example:

Calculation'S
01:00:03
01:00:54
01:03:27
58:46

It searches each and then only finds the 58:46 and then converts it by taking 58:46/60 and giving 00:58:46. I need to do this since some are in hh:mm:ss format, while others are in hh:mm format. Unless there is an easier way to convert just the mm:ss format - and right clicking and formating isn't working.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Status
Not open for further replies.

Forum statistics

Threads
1,196,457
Messages
6,015,368
Members
441,889
Latest member
balolaptopgiaolong

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