Programming

# I'm trying to get a formula to calculate the time in seconds…

Customer Question
Hi, I'm trying to get a...
Hi,
I'm trying to get a formula to calculate the time in seconds to the third decimal place from the following data.
It's an export from a video editing program.
The marker start time is calculated by dividing the number after the first " by the number after the /
eg, on the first line reads <marker start="29/15s" - result is 1.933
It's duration is calculated by doing the same process on the line below <marker start="56/15s" - result is 3.733
Duration is obviously the difference between the two.
I've added three columns on the end to indicate how I would like the result to display.
:)
Alan
Result
Start Duration End
1.933 1.800 3.733
Submitted: 2 years ago.Category: Programming
Show More
Show Less
2/25/2016
Programmer: Ingo U, Software Engineer replied 2 years ago
Ingo U, Software Engineer
Category: Programming
Satisfied Customers: 785
Experience: Over 25 years experience in software development. Expert in Microsoft .Net, C#, C++, VB, SQL
Verified

Are you looking for an excel formula?

Customer reply replied 2 years ago
were you able to look at the sample?
Programmer: Ingo U, Software Engineer replied 2 years ago

I didn't see a sample file attached, just your text posted here.

You just want a formula that can take a string like

"56/15s" and turn it into a fractional number?

Customer reply replied 2 years ago
Customer reply replied 2 years ago
I've just uploaded the excel fileThanks
Programmer: Ingo U, Software Engineer replied 2 years ago

OH, I see. It's all just one XML document in column A of the sheet then?

That'll take some more doing than a simple formula. I will have to take some time to study it.

Customer reply replied 2 years ago
that's correct.I look forward to hearing from you :)
Programmer: Ingo U, Software Engineer replied 2 years ago

Here's something to head you in the right direction. You can see how the working cells extract the parts of the string needed and convert the numbers.

http://dl.dropbox.com/u/7895834/Video+Export+Sample.fcpxml-V1.xlsx

There are some cases where the input string doesn't have a denominator, you can just add a "/1" after the number manually to get it to work.

Programmer: Ingo U, Software Engineer replied 2 years ago

Hi,
just following up, were you able to use my solution?
Please feel free to post any additional questions, comments or concerns you may have regarding this issue.

If you're not yet satisfied with the result, please let me know what is missing.
I will do my best to make it right for you.

Otherwise, please don't forget to rate my service - I don't get paid for my work until your rating is received.

Regards,
Ingo U

Ingo U, Software Engineer
Category: Programming
Satisfied Customers: 785
785 Satisfied Customers
Experience: Over 25 years experience in software development. Expert in Microsoft .Net, C#, C++, VB, SQL

Ingo U is online now

A new question is answered every 9 seconds

• Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
• Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

## What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

## Meet the Experts:

ATLPROG

Computer Software Engineer

7,677 satisfied customers

MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

LogicPro

Computer Software Engineer

7,131 satisfied customers

Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

Computer Software Engineer

1,168 satisfied customers

Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.

lifesaver

Computer Software Engineer

950 satisfied customers

Several years of intensive programming and application development experience in various platforms.

ehabtutor

Computer Software Engineer

936 satisfied customers

Bachelor of computer science, 5+ years experience in software development, software company owner

TheDoctor

Software Engineer

893 satisfied customers

M.S. in Internet Information Systems

The-PC-Guy

Software Engineer

800 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
Need some help with excel. Dont know. i have the latest
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
I am trying to open a saved excel file and get an error
I am trying to open a saved excel file and get an error message that the file cannot be found … read more
robert
Bachelor's Degree
2,594 satisfied customers
Need help with VLOOKUP. EXcel. Excel 2013 recently. Tried
need help with VLOOKUP JA: Is there a specific language you're coding in? Customer: EXcel JA: When did you last update Excel? Customer: Excel 2013 recently JA: What have you tried so far with your Exc… read more
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
The problem is with my excel program, do you cover this? I
the problem is with my excel program, do you cover this? … read more
Ricky Kresslein
Bachelor\u0027s Degree
653 satisfied customers
We currently maintain our inventory on Excel. for each grade
we currently maintain our inventory on Excel. for each grade we maintain a different tab. within each tab there can be 10-25 unique sku's. … read more
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
I would like some help with a problem on Excel. I don't
I don't remember but I think I checked to see if it needed update. … read more
Jason Jones
AAS Information Technology
6,322 satisfied customers
Lost my Excel icon on task bar. Lost my excel icon on the
lost my excel icon on the task bar. can't use excel … read more
Kamil Anwar
IT Consultant / Systems Engineer
Bachelor\u0027s Degree
448 satisfied customers
i don't know that i ever have? i think my version of office is 2007 … read more
Mike Taylor
41 satisfied customers
I have office 2013 excel, word, and outlook on my computer.
I have office 2013 excel, word, and outlook on my computer. Something happened on my desktop and 2013 word's shortcut and program disappeared. I haven't found a way to bring the program and shortcut b… read more
Kamil Anwar
IT Consultant / Systems Engineer
Bachelor\u0027s Degree
448 satisfied customers
HivAndy, Someone sent me an attachment that is an excel
someone sent me an attachment that is an excel spread sheet. I want print it out but there are about 40 cells with information and 14 pages that have cells saying 0. I want to delete all but the one page of information … read more
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
In my excel program there is a big red X on the ability to
In my excel program there is a big red X on the ability to delete rows or columns. How do I remove that so that I can delete rows? … read more
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
I use Excel for mileage tracking and it was fine fro the
I use Excel for mileage tracking and it was fine fro the first 3 weeks of January and now its changing everything I type in. Keep in mind I know nothing about computers or excel. Help … read more
JJesus Perez Gonzale
Bachelors of Science, Computer Engineering
42 satisfied customers
I am working with an Excel 2013 spreadsheet. The formula for
I am working with an Excel 2013 spreadsheet. The formula for calculating the number of days on sick leave appears when I click on previous entries by disappears when I work on current entries. I tried… read more
George Sibiya
PhD
232 satisfied customers
Not sure how to explain this...but I have an excel report
Hi! Not sure how to explain this...but I have an excel report with a field name for first name and one for last name. The report contains multiple people from the same household, one row for each. Eac… read more
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
I need some help with my excel query, I have an excel
I have an excel workbook with several sheets. One sheet (ClientTbl) is set up as the parent table and all other sheets (each on separate tab) are set up as the child tables, i.e AddressTbl, EmployTbl, etc... The reason for this is that due to the nature of our contact with clients, it is likely that their address will change from one contact to the next or they will change employer from one contact to the next. Within the child tables, the date and time the information is entered is automatically record. I need to create a query to create one CURRENT record for each client and would like to take advantage of the pre-record date/time filed to ONLY report the record from each table that is the most recent. How would I go about doing this? I have put sample tables below ClientTblID LastName FirstName 1 Doe JohnAddressTblID Address Date 1 15 N. Somewhere Ave 11/1/2017 1*****11/27/2017EmployTblID Employer Date 1 Brown Company 10/20/2017 1 Orange Group 11/21/2017Desired Query Results:ID LastName FirstName Address Date Employer Date 1 Doe John*****11/27/2017 Orange Group 11/21/2017Any help you can provide would be appreciated! Thank you!!! … read more
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
How do I write this formula correctly in excel? Excel 2010
Hello Pearl How do I write this formula correctly in excel? … read more
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
I need Excel help that is advanced in nature... In Excel, I
Hello, I need Excel help that is advanced in nature... … read more
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
Changed formatting resets every time excel is opened. Excel
changed formatting resets every time excel is opened … read more
R LAFAYETTE
Intel Technology Provider 2017 GOLD
37 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less