Subtracting in Excel with Hour and Minutes

gobi21

New Member
Joined
Jan 19, 2016
Messages
2
Hi,

How can I subtract the below rows using the excel formulas to get the correct answers.

201601081026 201601081107 --- Producing wrong answer as 81
201601081040 201601081128 --- Producing wrong answer as 88

Please help me on this.

Thanks
Gobi
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
If the dates are the same then

=TIME(MID(B1,9,2),RIGHT(B1,2),0)-TIME(MID(A1,9,2),RIGHT(A1,2),0)
and format as Time with example 13:30:55
 
Upvote 0
[TABLE="class: grid"]
<tbody>[TR]
[TD][/TD]
[TD]
a
[/TD]
[TD]
b
[/TD]
[TD]
c
[/TD]
[/TR]
[TR]
[TD]
1
[/TD]
[TD]
201601081026​
[/TD]
[TD]
201601081107​
[/TD]
[TD]
0:41:00​
[/TD]
[/TR]
[TR]
[TD]
2
[/TD]
[TD]
201601081040​
[/TD]
[TD]
201601081128​
[/TD]
[TD]
0:48:00​
[/TD]
[/TR]
</tbody>[/TABLE]


HI

c1 =TEXT(B1,"0000-00-00 00\:00")+0-TEXT(A1,"0000-00-00 00\:00")+0 copy down

format c1:c2 as [h]:mm:ss
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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
Back
Top