I have a list of numerical values in a single column that are sorted from largest to smallest.
I need a macro that will loop through this list looking for "groups" of values that are within "x" points of each other AND whose total range is less than "Y" points or a "MaxRange".
The screenshot below is an example of a list and highlights the groups of values that meet both of these criteria. i.e. In the first group 74 is < 3 points from 72 and 72 is < 3 points from 70, AND the total range of 74-70 < 6 points.
The "Output Range" (C6-C8) is my desired result from the macro.
Thank you for any help!
I need a macro that will loop through this list looking for "groups" of values that are within "x" points of each other AND whose total range is less than "Y" points or a "MaxRange".
The screenshot below is an example of a list and highlights the groups of values that meet both of these criteria. i.e. In the first group 74 is < 3 points from 72 and 72 is < 3 points from 70, AND the total range of 74-70 < 6 points.
The "Output Range" (C6-C8) is my desired result from the macro.
Thank you for any help!