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

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
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,031
Messages
6,128,420
Members
449,449
Latest member
Quiet_Nectarine_

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