A6- =IF(OR($B$3=T(OFFSET(基础表!$A$3,LOOKUP(ROW()/1%+COLUMN(),{601;603;605;1101;1103;1105},{2;3;4;1;6;5})+ROW($1:$5)*6-6,))),"日宫","")
复制代码 B6- =VLOOKUP(ROW()/1%+COLUMN(),IF({1,0},VLOOKUP(N(IF({1},MOD(ROW($1:$6)+MIN(IF(COUNTIF(OFFSET($A$5,{1;6},{0,2,4}),"日宫"),{2,3,4;1,6,5}))-2,6)+1)),{1,1102;2,602;3,604;4,606;5,1106;6,1104},2,),INDEX(T(OFFSET(基础表!$F$3,IF(MOD(MATCH($D$3,时间,),2),-1,)+ROW($1:$6)*2,)),N(IF(1,MOD(ROW($1:$6)+INT((MATCH($D$3,时间,)+1)/2)-MOD(MATCH($D$3,时间,)-1,6)-2,6)+1)))),2,)
复制代码 A7
- =VLOOKUP(ROW()/1%+COLUMN(),IF({1,0},VLOOKUP(N(IF({1},MOD(ROW($1:$6)+MIN(IF(COUNTIF(OFFSET($A$5,{1;6},{0,2,4}),"日宫"),{2,3,4;1,6,5}))-2,6)+1)),{1,1201;2,701;3,703;4,705;5,1205;6,1203},2,),基础表!$G$4:$G$9),2,)
复制代码 选中A6:B7,右拉。可复制到A11。
|