Problem in calculating difference between two times

Malhoosh

New Member
Joined
Jan 13, 2014
Messages
2
Hi,
I have a google spreadsheet with :
A1 => 08:00
A2 => 12:00
A3 => formula: = TEXT((A2-A1),"hh"" : ""mm")

The displayed data in A3 is: <style type="text/css"><!-- br {mso-data-placement:same-cell;} --></style>04" : "12

Where did the 12 minutes come from ?
 

Some videos you may like

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

shyy

Well-known Member
Joined
Nov 6, 2008
Messages
1,484
Cant seem to replicate your problem

<b>Excel 2010</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #BBB"><colgroup><col width="25px" style="background-color: #DAE7F5" /><col /></colgroup><thead><tr style=" background-color: #DAE7F5;text-align: center;color: #161120"><th></th><th>A</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">24</td><td style="text-align: right;;">8:00</td></tr><tr ><td style="color: #161120;text-align: center;">25</td><td style="text-align: right;;">12:00</td></tr><tr ><td style="color: #161120;text-align: center;">26</td><td style=";">04 : 00</td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #BBB;border-top:none;text-align: center;background-color: #DAE7F5;color: #161120">Sheet1</p><br /><br /><table width="85%" 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: #BBB"><thead><tr style=" background-color: #DAE7F5;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: #DAE7F5;color: #161120">A26</th><td style="text-align:left">=TEXT(<font color="Blue">(<font color="Red">A25-A24</font>),"hh"" : ""mm"</font>)</td></tr></tbody></table></td></tr></table><br />
 

Malhoosh

New Member
Joined
Jan 13, 2014
Messages
2
Thank you for your reply.
This problem doesn't occur in excel application, it happens in google spreadsheet.
Am I posting in the wrong forum ? :)
 

shyy

Well-known Member
Joined
Nov 6, 2008
Messages
1,484
I only use a real spreadsheet app, JK

Maybe Google's formula or parameters is different from Excel.

Curious why are you using google spreadsheet? There are better alternatives that are free.
 

Watch MrExcel Video

Forum statistics

Threads
1,123,156
Messages
5,600,033
Members
414,356
Latest member
death20

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top