Trying to plot entire timeline from start and finish times only

gothemoose

New Member
Joined
Feb 4, 2020
Messages
2
Office Version
  1. 365
  2. 2016
  3. 2013
  4. 2011
  5. 2010
  6. 2007
Platform
  1. Windows
Hey everyone, long time viewer of the forums but am new to posting...

I have a problem I am finding difficult to solve at the moment. It's time related.

I have separate cells for start times of jobs and finish times of jobs. e.g.
START TIME: 12:30 PM
FINISH TIME: 13:30 PM

My spreadsheet then has headers which shows hourly intervals across 24 hours: 12:00 PM to 12:59 PM, 13:00 PM to 13:59 etc. All across 24 hours for start times and the same for finish times.

I use a formula to check the start time: =IF(AND(START TIME>=12:00PM,START TIME<=12:59PM),"1","0"). This then plots a 1 or a 0 where the time falls into each specific hour across the headers. I do the same for FINISH TIMEs.

When the start time and the finish time are in adjacent (or the same) hours then I can see the 1 or two hour long job plotted next to each other BUT, when the job START TIME is at say 12PM but the FINISH TIME is at 4PM then the hours of 1300-1359, 1400-1459, and 1500-1559 do not get a 1 returned against them. They get a zero which is in fact correct, but I need to show where the hours of the job go across multiple hours.

I really need to show the total time across the whole job for all of the hours that were taken to complete it.

Is there any way of doing this outside of a Macro? I can supply a copy of the spreadsheet if that's easiest! I have however uploaded a screenshot...

I'm really looking forward to your expert opinions!

Cheers,
Jimmy
 

Attachments

  • Capture.PNG
    Capture.PNG
    28.3 KB · Views: 6

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
So, I fixed it!

It was a simple formula but the logic took me a bit to get around. Thanks for anyone who took it upon themselves to take a look.

Cheers,
Jimmy
 
Upvote 0

Forum statistics

Threads
1,214,428
Messages
6,119,420
Members
448,895
Latest member
omarahmed1

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