Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Convert Items in Excel Cells to Numbers

Posted on 2011-03-06
6
Medium Priority
?
341 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 2000 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

715 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