Calculating hours between two timestamps

Bilingual

Board Regular
Joined
Oct 1, 2010
Messages
186
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi , i have a data set where my assignment is to create a graph which shows the number of timestamps for every hour during the day.
The resolution so far is to create a column for every hour for a day(example shown)and formulas which validates whether the time is within the singular timestamp .

So far its working, but as i need to use the results for the timestamps in a Pivot as a categories NOT values for every single one, it creates problems, has any a good idea out of the box?

[TABLE="width: 500"]
<tbody>[TR]
[TD]Start time[/TD]
[TD]End time [/TD]
[TD]Time stamp 0900[/TD]
[TD]Time stamp 1000[/TD]
[TD]Time stamp 1100[/TD]
[/TR]
[TR]
[TD]0800[/TD]
[TD]1600[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]1000[/TD]
[TD]2300[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hey Bilingual,

I am not seeing what you want. From 0800 to 1600 there are 09, 10, 11, 12, 13, 14, 15, and 16 hours. But you only show the first 3. Is that an example of the worksheet?

And from 1000 to 2300 there are more hours, but 09 is not one of them?!

From 0800 to 1600, you have no value between 0800 and 0900, but in 1000 to 2300 you have a 1 for the 100 hour?

Every single one... what does one refer to?
 
Upvote 0

Forum statistics

Threads
1,223,705
Messages
6,173,989
Members
452,541
Latest member
haasro02

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