Reputation: 3
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
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.
Upvotes: 3