# Convert h:m:s to just minutes in Excel

I have a list of time values in Excel which are formatted in hours, minutes and seconds as h:m:s, e.g. 1:01:21

I need to convert them all to minutes so that I can perform a calculation on the cells using a formula in a new column.

the Convert function doesn't seem to work as this just converts (say) hours to minutes, but my cells contain hours minutes and seconds.

Is there another way of doing this??

In the attached file, column B needs converting so that I can divide cost by minutes in column C
Book1.xlsx
HaiFai

if your time is in a1 then you can do it with this
=A1*24*60
MPWOOD

Hi HaiFai, that formula doesn't work for me, I think it's to do with the formatting of the cells - see in the attached sample.
How is column B being created?  Its not is proper DATE format...
Saqib Husain

THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.

Coumn B is derived from Column A, replacing the notation of H, M and S with colons... excel is seeing it as text I think instead of as a time field.

the column isn't an actual time however e.g. 13:40:40 - being twenty to two in the afternoon but thirteen hours, forty minutes and forty seconds...hope that makes sense.  I'm trying to find out the cost per minute and to do that I need to convert the field to minutes - in this case it would be 820 minutes (and forty seconds)
``=c2/(VALUE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2," ",""),"h",":"),"m",":"),"s",""))*24*60)``

This will calculate qwhat you are looking for