Previous in Forum: Red Lion Controls CL20 - Image File Needed   Next in Forum: Electronic Medical Record (EMR) Software
Close
Close
Close
5 comments
Rate Comments: Nested
Associate

Join Date: Aug 2008
Location: Nigeria, West Africa (+1 GMT)
Posts: 46

Excel Formulas

02/24/2009 4:23 AM

Hi,

Kindly educate me on how to use excel formula to compute the following as per the table shown below.

1. The Alarm Duration (cell: H2) which is the difference of Alarm End Date/Time (Cell: G2) and Alarm Start Date/Time (Cell:F2). The Date/Time format is MM/DD/YY, Hour:Min

2. The Percentage Outage per day (Cell:J2) ie Daily Alarm Duration (Cell:H2) in Seconds divide by (24 x 60 x 60) x 100%

1

A

B

C

Date

E

F

G

H

I

J

K

L

2Site IDSite AdressRegionDateAlarm statusAlarm Start Date and Time (Date, Hours:Min)Alarm End Date and Time (Date, Hours:Min)Alarm Duration (Hours:Min)Remarks% outage per day% power unavailabilty per week% power availability per week

Thanks as you assist.

__________________
One good Thing deserves Another
Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Power-User
New Zealand - Member - Member Australia - Member - Member

Join Date: Oct 2008
Location: Auckland, New Zealand
Posts: 463
Good Answers: 43
#1

Re: Excel Formulas

02/24/2009 5:52 AM

Hi EnB,

Was that you as Guest earlier with identical question? I am sure you will have improved responses now you have shown your registration.

For your time data entry cells F2 & G2, Format as Time HH:MM:SS. The time duration difference H2 is simply cell formula; =sum(G2-F2). Format cell H2 the same as cells F2 & G2.

The % per day, cell J2, is; =sum(H2/24) with the cell formatted as Percentage. i.e. Menu Format/Cell/Number/Percentage.

Register to Reply Score 1 for Good Answer
Associate

Join Date: Aug 2008
Location: Nigeria, West Africa (+1 GMT)
Posts: 46
#2
In reply to #1

Re: Excel Formulas

02/24/2009 8:53 AM

Hi AussieBob,

Your hint will work when the two events happened on same date. Am looking at a scenario where the two events happened on different dates. Let say the Start date&time is 22/02/2009 10:25:45 and the end date&time is 24/02/2009 11:03:22.

I want the Equation to return the difference of the two events in minutes or seconds.

Thanks for the assistance.

__________________
One good Thing deserves Another
Register to Reply Off Topic (Score 4)
Guru

Join Date: Nov 2007
Location: Sherwood Park, Alberta, Canada
Posts: 1212
Good Answers: 74
#3
In reply to #2

Re: Excel Formulas

02/24/2009 6:59 PM

Date A - Date B gives the difference in days.

Time A - Time B gives the time difference in a fraction of a day (can be negative).

Date A - Date B + Time A - Time B gives difference in days. Store in general format.

For difference in hours, multiply by 24.

For difference in minutes, multiply by 24*60.

For difference in seconds, multiply by 24*3600.

__________________
Bruce
Register to Reply
Guru
Popular Science - Biology - life lover Hobbies - Musician - music lover Safety - Hazmat - better safe than sorry United Arab Emirates - Member - desert trek Technical Fields - Procurement - procurement

Join Date: Sep 2008
Location: Dubai, UAE
Posts: 744
Good Answers: 58
#4

Re: Excel Formulas

02/25/2009 2:29 AM

Hi EnB,

Here's a step-by-step, how-to-do-it:

1. Click on Cell H2.

2. Type everything inside the quotes: "=(G2-F2)". Press Enter.

3. Right Click on Cell H2 again, and format the cell to your desired format.

4. Click on Cell J2.

5. Type "=(H2/(24*60*60))*100" and press Enter.

DONE! You can simply copy the cell to the rest of the cells below it in the column to calculate the other values you may have in the rows beneath.

Hope that helps.

__________________
Now the darkness only stays the night-time, in the morning it will fade away. -- George Harrison (All Things Must Pass)
Register to Reply
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 5826
Good Answers: 322
#5

Re: Excel Formulas

02/25/2009 4:52 AM
__________________
If you spend all your time looking for people and things to complain about: trust me, you will find plenty to complain about.
Register to Reply
Register to Reply 5 comments

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

AussieBob (1); ba/ael (1); EnB (1); langyaw (1); Randall (1)

Previous in Forum: Red Lion Controls CL20 - Image File Needed   Next in Forum: Electronic Medical Record (EMR) Software

Advertisement