Hi,
I am trying to use the trapezium rule on the top of a cyclic loading curve like that attached here; cycliccurve.png
I have used a function like;
=IF(Q21>(MAX($Q$20:Q20)),Q21,NA())
to put #N/A into the blue cycles in the loading, so that the result column only contains the pink region of the graph, and has #N/A wherever the loops occur in the record. In order to integrate the area under the pink curve using the trapezium rule, I will need to subtract one "real" value from another in this column, so I'd like to find a way to formulate these into a column of just the "real" values.
i.e. i'd like to go from column a to column b below;
a b
na() 20
na() 35
na() 10
20 60
na()
35
na()
na()
na()
10
na()
na()
60
I suspect this would involve the match or lookup functions, but i can't work out how to do it. Any ideas?
Thanks for any help.
Bookmarks