I'm running a test through a number of temperature set points repeatedly and need to separate the data of the rising temperature segments from the falling temperatures so I can analyse the hysteresis.
I've worked out a function that allows me to do this (somewhat inelegantly) but it seems to be quite memory intensive and often results in excel crashing or getting hung up for extended periods of time on larger files (they can sometimes be up to 100-200k rows). It also cuts out the 1st and last blocks of data (but I can live with this if I have to).
I've attached a part of a data set I'm using and included the function I worked out:
=IF($C5<INDEX($C$5:$C$21679,ROWS($C$5:C5)+$E$2*($F$2*$G$2+1)),INDEX($C$5:$C$21679,ROWS($C$5:C5)+$E$2*($F$2*$G$2+1)),"-")
There has to be a better way to do this (more efficient function or a macro). I'd really appreciate any help on this.
Bookmarks