Return prior values that repeat at least 3 times consecutively.

NiftyTrader

New Member
Joined
Jul 31, 2015
Messages
15
I have a fluctuating data in column A:A, a Fast MA in column B:B, Slow MA in C:C.



I'm going to start with the first formula to compute in Column E:E, which
1. needs to display a prior value repeated at least 3 times consecutively (not in order of occurrence just needs to be in the formula like $B$3:C100 that meets additional criteria)
2. value in both columns that must be less than or equal to the current fluctuating value in A:A, starting with 5.

Column D:D formula should be the next >=3x consecutively repeated number less than the value of E:E equation of the same same.

Column F:F formula should be the >=3x consecutively repeated number that is greater than (not equal to) the current fluctuating number in column A:A of the same row.

Column G:G formula should be the next >=3x consecutively repeated number greater than the value in column F:F of the same row.


I put the results of the values for each Repeated Values that I want for each formula to equate



[TABLE="width: 747"]
<tbody>[TR]
[TD]Fluctuating Points[/TD]
[TD]Fast Moving Avg.[/TD]
[TD]Slow Moving Avg.[/TD]
[TD][/TD]
[TD]Repeated Value 1[/TD]
[TD]Repeated Value 2[/TD]
[TD]Repeated Value 3[/TD]
[TD]Repeated Value 3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
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]
[TD]15[/TD]
[TD]17[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]11[/TD]
[TD]8[/TD]
[TD][/TD]
[TD]8[/TD]
[TD]10[/TD]
[TD]15[/TD]
[TD]17[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]11[/TD]
[TD]8[/TD]
[TD][/TD]
[TD]8[/TD]
[TD]10[/TD]
[TD]15[/TD]
[TD]17[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]10[/TD]
[TD]9[/TD]
[TD][/TD]
[TD]7[/TD]
[TD]8[/TD]
[TD]15[/TD]
[TD]17[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,223,275
Messages
6,171,121
Members
452,381
Latest member
Nova88

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