I can't get my head round this! Please help!

lukeflegg

New Member
Joined
Aug 11, 2011
Messages
4
Hello,

I've scoured the web and can't find any solution that works or makes sense to me:

I'm trying to work out how many hours I've worked each day from this:

START FINISH DAY TOTAL
0930 1715


I want day total to be the amount of hours i worked that day.
Is there any way of doing this??

Thanks so much :]
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Code:
      -A- -B-- -C- -------------------------------D--------------------------------
  1   930 1715 745 C1: =DOLLARFR(DOLLARDE(B1/100,60) - DOLLARDE(A1/100,60), 60)*100

You're making a rod for your back by not entering convential times with a colon .
 
Upvote 0
Try =TIME(LEFT(B1,2),RIGHT(B1,2),0)-TIME(LEFT(A1,2),RIGHT(A1,2),0) and format as hh:mm
 
Upvote 0
Your example showed 0930 as the start and your actual data is 930. If all start times are 3 digits then try: =TIME(LEFT(B1,2),RIGHT(B1,2),0)-TIME(LEFT(A1,1),RIGHT(A1,2),0)

If they are a mixture try: =TIME(LEFT(B1,LEN(B1)-2),RIGHT(B1,2),0)-TIME(LEFT(A1,LEN(A1)-2),RIGHT(A1,2),0)
 
Upvote 0
<!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:DoNotOptimizeForBrowser/> </w:WordDocument> </xml><![endif]--> Here's a couple things you might try:
Start time in A1, End time in B1.
Your formula (in C1? - Formatted as Custom & [h]:mm):
Code:
=( B 1 + ( B 1 < A 1 ) - A 1 )

Now, for the format used on entry, by using an extra 2 columns you can use (say column A) for the actual entry and column B for your return. Enter this formula in B1 (& copy down):
Code:
=TEXT(A1,"00\:00")+0
Format this cell as Time & 1:30 PM

With that you can enter your time as 0930 in A1 and have it return 9:30 AM in B1. (or enter 1425 and get 2:25 PM, etc.)

Hope it helps.

EDIT:
I don't know why that first formula won't post normally so I added a space between each character...

 
Last edited:
Upvote 0
Hurrah!

That did it :]

=MOD(TEXT(C3,"00\:00")-TEXT(B3,"00\:00"),1)

and the DAY TOTALS add up bueatifully.
Thank you so much
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,299
Members
452,904
Latest member
CodeMasterX

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