Good morning all,
I have in an Excel sheet a long vertical list of ~random positive and negative numbers.
Starting from the first number at the top, I'm looking to average 2 consecutive numbers downwards, and flag them if they average to a positive number.
I also want to check if either or both of the numbers immediately above and below these two numbers can be included and their total average remain positive.
If either number above or below can be included, I then want to check the next adjacent number(s), and again see if it/they can be included and the total average remain positive. I want to repeat this process down a column containing many thousands of numbers.
Any ideas as to how to go about this with formulas? I'm very familiar with VBA, but hope to avoid having to write an iterative code to do this which will be tedious and almost certainly slow. Any and all help greatly appreciated! Please let me know if I can clarify in any way.
Thanks so much!
I have in an Excel sheet a long vertical list of ~random positive and negative numbers.
Starting from the first number at the top, I'm looking to average 2 consecutive numbers downwards, and flag them if they average to a positive number.
I also want to check if either or both of the numbers immediately above and below these two numbers can be included and their total average remain positive.
If either number above or below can be included, I then want to check the next adjacent number(s), and again see if it/they can be included and the total average remain positive. I want to repeat this process down a column containing many thousands of numbers.
Any ideas as to how to go about this with formulas? I'm very familiar with VBA, but hope to avoid having to write an iterative code to do this which will be tedious and almost certainly slow. Any and all help greatly appreciated! Please let me know if I can clarify in any way.
Thanks so much!