Tme

Brutium

Board Regular
Joined
Mar 27, 2009
Messages
188
Hello all,

I have a problem which I am sure some of you must have already an answer for me.

I need to add times. I have two columns in which I have added times. In one column I calculated the time that for example goes from 10:00 to 13:30, in a second column I have other times expressed in minutes only. My problem is how do I add the 3:30 I get from the first cell, to the 95 minutes I get from the second column?

Any help would be GREATLY appreciated.

Brutium
 

AlphaFrog

MrExcel MVP
Joined
Sep 2, 2009
Messages
16,166
Try something like this...

<br /><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>C</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style="font-weight: bold;text-align: center;;">Time </td><td style="font-weight: bold;text-align: center;;">Minutes (integer)</td><td style="font-weight: bold;text-align: center;;">Total time</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: center;;">13:30</td><td style="text-align: center;;">95</td><td style="text-align: center;;">15:05</td></tr></tbody></table><br /><br /><table cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">C2</th><td style="text-align:left">=A2+TIME(<font color="Blue">0,B2,0</font>)</td></tr></tbody></table></td></tr></table><br />

Note: format the cell with the formula (C2 in this case) as Time.
 

Gary's Student

Well-known Member
Joined
Aug 4, 2012
Messages
1,013
If A1 contains 95, then in another cells, enter:
=A1/(24*60) to display
0.065972

If you format this as time you will see:

1:35:00 AM

<tbody>
</tbody>

<tbody>
</tbody>
 

Brutium

Board Regular
Joined
Mar 27, 2009
Messages
188
Hello AlfaFrog,
Thank you for your prompt reply.The formula seems to be working almost perfectly, the only problem is that instead of giving me the total number of hours and minutes, it tells me that the total is 12:30 PM. what can I do to avoid getting the AM or PM in my answers and instead get the total number of hours passed?
 

Brutium

Board Regular
Joined
Mar 27, 2009
Messages
188
Thank you Gary's Student. Again the same as per AlfaFrog answer.
 

AlphaFrog

MrExcel MVP
Joined
Sep 2, 2009
Messages
16,166
Hello AlfaFrog,
Thank you for your prompt reply.The formula seems to be working almost perfectly, the only problem is that instead of giving me the total number of hours and minutes, it tells me that the total is 12:30 PM. what can I do to avoid getting the AM or PM in my answers and instead get the total number of hours passed?
Format the result (C2) as Time and select the 13:30 type of time formatting in the Cell Formatting dialog or a Custom format [h]:mm
 
Last edited:

Brutium

Board Regular
Joined
Mar 27, 2009
Messages
188
Thank you AlfaFrog,
It worked great....

Much appreciated.
Brutium
 

Forum statistics

Threads
1,082,017
Messages
5,362,697
Members
400,686
Latest member
Aakash

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top