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?

Start timeEnd time Time stamp 0900Time stamp 1000Time stamp 1100
08001600111
10002300010

<tbody>
</tbody>
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
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,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

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