在Excel中的单列中以某些特定的间隔找到最大



我需要在一个开始的300行中找到一列中的最大值11次,然后在下一220行中找到最大值,然后继续此模式(11倍在300中找到最大值排和一段220行)?应该使用" if"或" while"?

没有最好的编写代码的方法,这取决于您喜欢什么和正在寻找的执行时间。

我要么使用时或用于。

pseudo代码段:

offset = first cell
int j = 0
While (1){
//First 300
int i = 0
While i <> 12{
offset = range (offset + 299)
Cell[j] = Max offset
i = i+1 }
//next 220
offset = offset + 1
offset = range(offset + 219)
Cell[j+1] = Max offset
j = j + 1
offset = offset + 1
}

最新更新