公式解析- =MID(TEXT(MID("鼠豬狗雞猴羊馬蛇龍兔虎牛鼠",MIN(FIND(A2:C2&TRANSPOSE(A2:C2),"鼠豬狗雞猴羊馬蛇龍兔虎牛鼠a"&A2:C2&TRANSPOSE(A2:C2))),2),"@@@@的下一個生肖是@無相鄰"),8,9)
复制代码 fangjianp老師的解極為接近預設解,再轉個彎就一樣了,考量13X俱樂部成員皆大幅領先技術分2分之字元數門檻,擬予以3分技術分,餘如附件給分,若有疑義請儘速提出。
核心思想一=MID("甲乙丙丁",4,2)="丁"
=MID("甲乙丙丁",5,2)=""
MID在取數時,若參數1之字元數不足,將預設取回空白
核心思想二=TEXT("豆花","@@好好吃")="豆花豆花好好吃"
=TEXT("豆花","@@好好吃@")="豆花豆花好好吃豆花"
=TEXT("","@@好好吃@")="好好吃"
TEXT的@參數為重複第一參數全部字串,一個@重複一次,二個@則重複兩次,空白字串不管有多少@仍傳回空白
解析一- FIND(A2:C2&TRANSPOSE(A2:C2),"鼠豬狗雞猴羊馬蛇龍兔虎牛鼠a"&A2:C2&TRANSPOSE(A2:C2))
复制代码 A2至C2之任意兩兩組合,有無符合題意,若符合題意則FIND必傳回1至12,未符合題意則預設傳回15
解析二- MIN(FIND(A2:C2&TRANSPOSE(A2:C2),"鼠豬狗雞猴羊馬蛇龍兔虎牛鼠a"&A2:C2&TRANSPOSE(A2:C2)))
复制代码 解析一將傳回9組數字,取極小值
解析三- MID("鼠豬狗雞猴羊馬蛇龍兔虎牛鼠",MIN(FIND(A2:C2&TRANSPOSE(A2:C2),"鼠豬狗雞猴羊馬蛇龍兔虎牛鼠a"&A2:C2&TRANSPOSE(A2:C2))),2)
复制代码 利用解析二之結果,從"鼠豬狗雞猴羊馬蛇龍兔虎牛鼠"字串取出需要的子字串(此字串係倒取,以與TEXT之@結合
若解析二為1至12,則依序取出為"鼠豬","豬狗","狗雞","雞猴","猴羊","羊馬","馬蛇","蛇龍","龍兔",...,"牛鼠";若解析二為15,則取出空白字串(參核心思想一)
解析四- TEXT(解析三,"@@@@的下一個生肖是@無相鄰")
复制代码 =TEXT("鼠豬","豬狗","狗雞","雞猴","猴羊","羊馬","馬蛇","蛇龍","龍兔",...,"牛鼠"或空白,"@@@@的下一個生肖是@無相鄰")
="鼠豬鼠豬鼠豬鼠豬的下一個生肖是鼠豬無相鄰",...,或"的下一個生肖是無相鄰"(參核心思想一及二)
解析五即為所求(參核心思想一)
[ 本帖最后由 wangg913 于 2011-3-20 13:27 编辑 ] |