• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Flagging trigger points in a row

Garuda

New Member
Hi,


I have a row of values in which I need to identify when a value changes by +/-5% compared to the first value; I also need to identify when another value changes by +/-5% compared to the previous time it changed by 5%.


For eg,


Values = 0.91 0.97 0.95 0.94 0.96 1.02 1.04 0.96


The formula should identify 0.97 (compared to initial value), then 1.02 (compared to 0.97) and then 0.96 (compared to 1.02)


Any ideas?
 
First, I'd build a helper row in row 3. In A3, just put:

=1

This formula in B3:

=IF(ABS(B2-INDEX(2:2,MAX($A3:A3)))/INDEX(2:2,MAX($A3:A3))>5%,COLUMN(),A3)

Copy to the right as needed.


Then, your Conditional Format formula would be:

=ABS(B2-INDEX(2:2,MAX($A3:A3)))/INDEX(2:2,MAX($A3:A3))>5%
 
Back
Top