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

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

anglais428

Well-known Member
Joined
Nov 23, 2009
Messages
634
Office Version
  1. 2016
Platform
  1. Windows
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
 

TC123

New Member
Joined
Dec 14, 2010
Messages
32
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?
 

j_latendre

Board Regular
Joined
Jan 21, 2011
Messages
101

ADVERTISEMENT

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
 

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
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
 

TC123

New Member
Joined
Dec 14, 2010
Messages
32

ADVERTISEMENT

Thanks Anglais, that's worked perfectly!
 

TC123

New Member
Joined
Dec 14, 2010
Messages
32
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,600
Messages
5,832,650
Members
430,151
Latest member
Kacbear

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