# Convert Unconventional D:H:M Counter to Total Minutes

#### jkerekgyarto

##### New Member
I need to convert these cells that contain elapsed time in the format shown, to total minutes.

The data in the cell is texts and numbers – there is a space on both sides of each number.

The formula is a Value function with a nested Find – it’s not working for me, however.

=VALUE(LEFT(A2,FIND("D",A2)-2))*24*60 + VALUE(LEFT(A2,FIND("D",A2)-3))*24*60 + VALUE(MID(A2,FIND(":",A2)+2,FIND("H",A2)-2))*60 + VALUE(LEFT(A2,FIND("M",A2)-2))

The position of the characters in the cells is not static – see the difference between A2 and A3.

Any help is very appreciated.

#### Attachments

• Screenshot 2021-01-05 151313.png
5.2 KB · Views: 6

#### Peter_SSs

##### MrExcel MVP, Moderator
Welcome to the MrExcel board!

Do you have the LET function in your Excel 365?

21 01 06.xlsm
AB
1StatusTotal Minutes
2DOWN for 7 D : 13 H : 8 M10868
3Sector for 12 D : 2 H : 16 M17416
DHM
Cell Formulas
RangeFormula
B2:B3B2=LET(lng,RIGHT(SUBSTITUTE(A2," ",REPT(" ",20)),160),LEFT(lng,20)*1440+MID(lng,60,20)*60+MID(lng,120,20))

### Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Replies
27
Views
297
Replies
10
Views
140
Replies
10
Views
321
Replies
4
Views
46
Replies
3
Views
527

1,129,587
Messages
5,637,228
Members
416,963
Latest member
samfuge

### 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.

### Which adblocker are you using?

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

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