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

x
?
Solved

Excel conversion from days, hours, minutes

Posted on 2015-01-13
12
Medium Priority
?
105 Views
Last Modified: 2015-02-07
I have a report that has been exported from an application. There are no options to change the output format for the report. It currently outputs time duration in the following format:

36 days, 12 hours, 44 minutes

The column cells are formatted as General. How can I convert these durations to one unit? For instance how can I convert to a total in hours?

Thanks in advance.
0
Comment
Question by:isaacr25
[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
  • 3
  • 2
  • 2
  • +4
12 Comments
 
LVL 23

Assisted Solution

by:Michael Fowler
Michael Fowler earned 1760 total points
ID: 40548123
If in cell A1 always the same format then something like the following could help you

=LEFT(A1, 2) * 24 + MID(A1, 10, 2) + MID(A1, 19, 2)/60

Open in new window

0
 
LVL 11

Expert Comment

by:Wilder1626
ID: 40548124
Hi, do you have a excel file that you can share?
0
 
LVL 7

Expert Comment

by:Katie Pierce
ID: 40548126
Does it have the days, hours and minutes each in a separate column, or does it just give you "36 days, 12 hours, 44 minutes" in a single column?
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

Author Comment

by:isaacr25
ID: 40548139
It's in a single column. I have attached a sample of the xls file.
0
 
LVL 23

Expert Comment

by:Michael Fowler
ID: 40548166
@isaacr25 the attachment didn't take.
0
 

Author Comment

by:isaacr25
ID: 40548208
0
 
LVL 43

Assisted Solution

by:Saqib Husain, Syed
Saqib Husain, Syed earned 240 total points
ID: 40548226
Try

=LEFT(B2,FIND(" ",B2)-1)+MID(B2,FIND(",",B2)+2,2)/24+MID(B2,FIND("m",B2)-3,2)/24/60
0
 
LVL 23

Accepted Solution

by:
Michael Fowler earned 1760 total points
ID: 40548229
Here is a formula that will do it for you

=TRIM(LEFT(B2, 2)) * 24 + TRIM(MID(B2, FIND(",",B2)+2, 2)) + MID(B2,FIND(",",B2,FIND(",",B2,FIND(",",B2)+1))+2,2)/60

Open in new window


I have attached your example for the formula in place too
TAT-PreVine-Subtasks---Copy.xls
0
 
LVL 43

Assisted Solution

by:Saqib Husain, Syed
Saqib Husain, Syed earned 240 total points
ID: 40548246
Michael74, you need to consider more than 100 days
0
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 40549129
No Points.

Syed's formula works and returns a decimal value if unformatted.  Use [h]:mm as the custom format for these values to show hours and minutes.  The brackets around the "h" allow for hour amounts over 24.

-Glenn
0
 
LVL 49

Expert Comment

by:Martin Liss
ID: 40596426
I've requested that this question be closed as follows:

Accepted answer: 500 points for Michael74's comment #a40548123

for the following reason:

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

722 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