Solved

Convert Items in Excel Cells to Numbers

Posted on 2011-03-06
6
333 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:cpatte7372
6 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 35046297
Hello Carlton,

Try putting this formula in B1

=("0:"&SUBSTITUTE(SUBSTITUTE(A1,"m ",":"),"s",""))*86400

....then format the cell as general and copy down

see attached

regards, barry
time-conversion.xls
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 35046301
=LEFT(A1,FIND("m",A1)-1)*60+SUBSTITUTE(RIGHT(A1,3),"s","")
0
 
LVL 24

Expert Comment

by:jimyX
ID: 35046316
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.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 24

Expert Comment

by:jimyX
ID: 35046446
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"
0
 

Author Closing Comment

by:cpatte7372
ID: 35046597
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.
0
 
LVL 6

Expert Comment

by:ckivml
ID: 35046669
Great buddy!..keep it up!..
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now