How to calculate when system is down between datestamp

Posted on 2011-09-14
Last Modified: 2012-05-12
i want to calculate when duration is zero based on the datestamp and would like to group it by Date and Hour.  Pls. see attached sample for the desired results.  thanks
Question by:karinos57
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 50

Accepted Solution

Ingeborg Hawighorst (Microsoft MVP / EE MVE) earned 500 total points
ID: 36540706

add a column to your data with a formula like


copy down. Now you can build a pivot table with the date stamp in the row headers, grouped by day and hour.

See attached, on Sheet2

cheers, teylyn

LVL 50
ID: 36540726
Or, for better precision, use this as the formula:



Author Comment

ID: 36543019
this is working great but one quesiton for you, where did you get the Days field in the pivot?  i don't see it in the data source.  I only see DateStamp.  thanks
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.


Author Comment

ID: 36543222
i like the way you formatted like the DateStamp by just showing hours and grouped by a day  but it is not clear.  Can you post antother sheet where i can see all the formatting or if you can explain - i will appreciate that. thanks

Author Closing Comment

ID: 36544590
LVL 50
ID: 36545596

I used Excel 2010 to create the pivot table. Right-click on any date in the pivot table and select Group - then tick the day and hour.

After that, I used the buttons on the pivot table layout tab to play with the appearance of the table. Some of these options are new to 2010,  but I don't think I used any of the new ones.

cheers, teylyn

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question