我想到的可以说是懒得算的办法,思路如下:楼主要的其实是斐波拉契数列,鉴于excel一共只有1048576行,而该数列的第32个值已经达到1346269,所以只用前31个值就够了。因此
理论上公式为
B1=IF(SUM(--(ROW()=({0,1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181,6765,10946,17711,28657,46368,75025,121393,196418,317811,514229,832040}+{1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30}))),A1,"")
以下是出于简短考虑,将后数组用公式代替
B1=IF(SUM(--(ROW()=({0,1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181,6765,10946,17711,28657,46368,75025,121393,196418,317811,514229,832040}+IF(COLUMN(A:AE)-2<=0,0,COLUMN(A:AE)-2)+1))),A1,"")
数组输入,下拉。
|