#### caracol

##### New Member

--------------------------------------------------------------------------------

I need to find a formula that tells me how many hours fall in a determinate shift and how many hours fall in another.

I explain…

A1= Starting Time--------------------------------------------------14:00
B1= Finishing Time-------------------------------------------------22:00
C1= Total hours------------------------------------------------------8:00
D1= How many hours between 06:00 to 18:00-------------?????????????
E1= How many hours between 18:00 to 06:00-------------?????????????

Please can anybody help me before a pull all my hairs out of my head…

THANKS.

### Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Chip does a pretty thorough job here explaining how to do that. He's even got a downloadable example you can use for reference. Hope that helps!

Replies
12
Views
298
Replies
1
Views
585
Replies
9
Views
278
Replies
3
Views
83
Replies
1
Views
169

1,203,665
Messages
6,056,636
Members
444,879
Latest member
suzndush

### 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.

### Which adblocker are you using?

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

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