PC Review


Reply
Thread Tools Rate Thread

average difference without a helper column

 
 
david_g
Guest
Posts: n/a
 
      24th Jan 2011
I have a considerable amount of data which is already in excel
A is the date, B is the final meter reading and C is the number of
hours the pump was operating
date meter1 hours
01-Jan-10 0 0
02-Jan-10 222 4
03-Jan-10 1419 2
04-Jan-10 2009 3
05-Jan-10 3081 5
06-Jan-10 4360 10

I want to calculate the average flow per day i.e. b2-b1 through to
b365
similarly the average pump time i.e. c2-c1

Of course there is a way to do this with helper columns (I think that
is the correct term) but I have over 300 excel sheets and hope that
there is an easier way
 
Reply With Quote
 
 
 
 
joeu2004
Guest
Posts: n/a
 
      25th Jan 2011
On Jan 24, 2:47*am, david_g <da...@gts.co.uk> wrote:
> I want to calculate the average flow per day i.e. b2-b1
> through to b365
> similarly the average pump time i.e. c2-c1


Both of the following formulas do what you want, I believe. I think
the array formula is more efficient; it also can be easily modified to
compute other statistics (e.g. std dev). But array formulas are error-
prone: sometimes they return a number instead of an error even though
you enter them incorrectly (i.e. press Enter instead of ctrl+shift
+Enter). So you might overlook your mistake.

Normal non-array formula:

=SUMPRODUCT(B2:B365-B1:B364)/COUNT(B1:B364)

Of course, you could use 364 instead of COUNT(B1:B364) if you wish.

Array formula[*]:

=AVERAGE(B2:B365-B1:B364)
[*] Enter an array formula by pressing ctrl+shift+Enter instead of
just Enter. Excel will display an array formula surrounded by curly
braces in the Formula Bar. You cannot type the curly braces
yourself. If you make a mistake, select the cell, press F2 and edit
as needed, then press ctrl+shift+Enter.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto update helper column tommcbrny Microsoft Excel Misc 1 7th Nov 2008 03:49 AM
Doing away with helper column? Jay Microsoft Excel Discussion 2 18th Jul 2007 01:30 AM
help creating helper column Allen Clark Microsoft Excel Programming 1 28th Jun 2006 05:18 AM
Changing the Helper Column =?Utf-8?B?YXBwbGVzNzI=?= Microsoft Excel Misc 12 13th Nov 2005 10:22 PM
What is a helper column? =?Utf-8?B?Uk1QUE9E?= Microsoft Excel Misc 3 28th Jan 2005 07:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:20 AM.