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

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
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
a
b
c
1
201601081026​
201601081107​
0:41:00​
2
201601081040​
201601081128​
0:48:00​

<tbody>
</tbody>


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,216,727
Messages
6,132,354
Members
449,720
Latest member
NJOO7

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