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

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Status
Not open for further replies.

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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