Solved

How to calculate when system is down between datestamp

Posted on 2011-09-14
6
393 Views
Last Modified: 2012-05-12
Hi,
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
sample.xlsx
0
Comment
Question by:karinos57
  • 3
  • 3
6 Comments
 
LVL 50

Accepted Solution

by:
teylyn earned 500 total points
ID: 36540706
Hello,

add a column to your data with a formula like

=IF(C2=0,MINUTE(A1-A2),0)

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


sample--2-.xlsx
0
 
LVL 50

Expert Comment

by:teylyn
ID: 36540726
Or, for better precision, use this as the formula:

=IF(C2=0,1440*(A1-A2),0)

cheers,
0
 

Author Comment

by:karinos57
ID: 36543019
teylyn:
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
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:karinos57
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
0
 

Author Closing Comment

by:karinos57
ID: 36544590
thnx
0
 
LVL 50

Expert Comment

by:teylyn
ID: 36545596
Hello,

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
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
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…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now