Link to home
Start Free TrialLog in
Avatar of cpatte7372
cpatte7372Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Convert Items in Excel Cells to Numbers

Hi Experts,

Can tell me if its possible to convert the items in cells (in the attached spreadsheet) to numbers? Let me explain.

Each cell contains the minutes and seconds for my vodafone bill. I would like help converting the minutes and seconds into just seconds. So far example you'll see in cell A54, 19m 13s. I would like that converted to 1153 seconds.

If it makes it easier for you to help me I don't need the letter s (seconds) after the conversion.

As always experts, I appreciate your help

Cheers

Carlton
remove-items.xls
ASKER CERTIFIED SOLUTION
Avatar of barry houdini
barry houdini
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
=LEFT(A1,FIND("m",A1)-1)*60+SUBSTITUTE(RIGHT(A1,3),"s","")
Avatar of jimyX
jimyX

Start from B1 put:
=(LEFT(A1,FIND("m",A1)-1)*60)+MID(A1,FIND("m",A1)+1,FIND("s",A1)-FIND("m",A1)-1)

And copy down for the rest of the cells.
If you want to include "s" at the end of that value:
=(LEFT(A1,FIND("m",A1)-1)*60)+MID(A1,FIND("m",A1)+1,FIND("s",A1)-FIND("m",A1)-1) & " s"
Avatar of cpatte7372

ASKER

Thanks, that's great. I honestly didn't think anyone was going to respond as I thought it was such a silly request.
Thanks again.
Great buddy!..keep it up!..