I have data that has a baseline value then peaks and returns to baseline (somewhat). It does not contain valleys. I need to calculate the slope at which the value returns to baseline. I know how to calculate the slope in Excel VBA but how can I determine where the range ends (ie when it returns to a baseline value) when the baseline value fluctuates quite a bit.