I need a formula please

TC123

New Member
Joined
Dec 14, 2010
Messages
32
Hello,

I have created a spreadsheet which is recording start and finish times. The planned start time is 9:00 and the planned finish time is 12:30. In A2 someone has recorded the start time to be 09:05 and in column B2 they have recorded the finish time to be 12:35. In column C2 I need a formula that will work out the difference in time from the planned times (in minutes). For example, with the new times we can see we have gone 10 minutes over in total so in column C2, I would like the answer to be 00:10. Can anyone help me please?

Thank you in advance
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
In cell C2 enter

=(B2-$B$1)+(A2-$A$1)

Assuming 09:00 is in A1, 12:30 is in B1, 09:05 is in A2, 12:35 is in B2
 
Upvote 0
Thank you for that but I'm afraid it's not working. I am getting a message from Excel correcting the formula by adding another bracket on the end and when I accept the correction I am just getting #### in the cell. Any ideas?
 
Upvote 0
That should be fine, now just adjust your column width, it is just telling you there isn't enough room to show the full number.

Jesse
 
Upvote 0
THis is what I get but it will fail if the difference is negative

Excel Workbook
ABC
209:0512:4500:10
Sheet5


Maybe

Excel Workbook
ABC
209:0512:00-35
Sheet5
 
Upvote 0
Thanks to everyone. Could somebody advise what I should do if the number is going to be negative as I'd also like to display this in column C aswell. So, for example, if the start time was 08:55 and finish time is 11:55. Thanks
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,733
Members
452,939
Latest member
WCrawford

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