Shreeuday Kasat
Shreeuday Kasat

Reputation: 3

Excel functions to covert X days, x hours, X minutes in actual minutes

I've some data in excel in the following manner.

I need to convert the data in the minute's format. I tried excel's find, left, right, mid functions but couldn't able to fetch the desired result.

Can anyone help?

Upvotes: 0

Views: 723

Answers (1)

Scott Craner
Scott Craner

Reputation: 152450

Use the following array formula:

=SUM(IFERROR(TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",999)),(ROW($1:$4)-1)*2*999+1,999))*CHOOSE(MATCH(TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",999)),(ROW($1:$4)-1)*2*999+999,999))&"*",{"days","hours","minutes","seconds"},0),(60*24),60,1,(1/60)),0))

Being an array formula it needs to be confirmed with Ctrl-Shift-Enter instead of Enter.

enter image description here

Upvotes: 3

Related Questions