Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default tough cookie

Hi everyone

I have readings (hourmeters of water pumps) in random days. In column A i
have all days of the year, which means i have holes in my table. column B has
the hours when the readings were made and column C has the readings.

In column D i have the reading of a certain day minus the previous reading.
D169=IF(C169=0;"";(C169-INDEX($C$6:C168;MATCH(9,99999999999999E+307;$C$6:C 168))))

My problems are in column E. This column is the average per day since last
reading.
It should have this formula: E169=(D169/(2+(B169-B167)))
2 is the number of days between readings in this example.

My real problem is to get a formula that counts the number of gaps between
readings.

I´ve tried this to find the number of days between readings:

=IF(C169="";"";(MATCH(C169;$C$6:C169))-MATCH((INDEX($C$6:C168;MATCH(9,99999999999999E+307 ;$C$6:C168)));$C$6:C168))

Unfortunately, when a pump doesn´t work, i have readings with the same value
and the function above will be equal to zero altough many days have passed.
Thats because it found an exact match above.

HELP!
Thanks everyone
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tough one Ben Excel Discussion (Misc queries) 3 December 11th 06 05:13 PM
Tough one: Imba Excel Discussion (Misc queries) 7 November 15th 06 08:19 PM
OK tough one ! [email protected] Excel Worksheet Functions 4 September 20th 06 09:11 PM
Tough one... Peter1999 Excel Discussion (Misc queries) 4 May 2nd 06 11:18 AM
Tough one famdamly Excel Discussion (Misc queries) 2 February 22nd 06 04:36 PM


All times are GMT +1. The time now is 05:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"