Formula to Fire When Last 10 Values Are Within 0.03

rob51852

Board Regular
Joined
Jun 27, 2016
Messages
190
Office Version
  1. 2016
Platform
  1. Windows
Hi guys,

I have a list of data in column A which updates automatically with new values being inserted in the next row in the column.

Is there a formula that will return the word "stable" when the last 10 values are within 0.03 of each other?

For example, the last 10 values may fluctuate between 2.50 and 2.52 and it is in situations like these that I would like the formula to fire.

Thanks
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hi,

The following is the first approximation. It returns an error when there are less than 10 values in column A. It can be changed when you tell me what the result should be then.

Book1
AB
11STABLE
22
33
44
55
66
77
88
99
1010
1110
1210
1310
1410.01
1510
1610
179.99
189.99
1910
Sheet3
Cell Formulas
RangeFormula
B1B1=IF(ABS(MAX(OFFSET($A$1,COUNTA($A:$A)-10,0,10,1))-MIN(OFFSET($A$1,COUNTA($A:$A)-10,0,10,1)))<0.03,"STABLE","")
 
Upvote 0
Hi J.Ty.

Thanks. This is great. I'm not bothered about the error.

Thanks again!
 
Upvote 0
Please test it carefully if it really does what you want. Please test corner cases. In particular, as of now the formula assumes that all values in column A form a contiguous block, starting in A1 (i.e., there is no header), that there are no blanks among data values, etc.

J.Ty.
 
Upvote 0

Forum statistics

Threads
1,215,056
Messages
6,122,907
Members
449,096
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top