看板 Office 關於我們 聯絡資訊
軟體:Excel 版本:2010 A B 1 123124 312 2 11234412 3 B欄的值是從A欄取值而來的,取值邏輯為: 由左而右,遇到首個字串"12"後面開始取值,撞到首個4時停止 請問版上的高手B1的公式要怎麼寫? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.228.173.51 ※ 文章網址: https://www.ptt.cc/bbs/Office/M.1434092301.A.0C4.html ※ 編輯: pavlov (61.228.173.51), 06/12/2015 14:59:47
newton41: =Mid(字串,Find(12,字串)+2,Find(4,字串)-Find(12,字串) 06/12 15:08
newton41: -2) 試試看 06/12 15:08
soyoso: 遇到首個字串"12"後面開始取值,撞到首個4時停止來看是否 06/12 17:31
soyoso: 4有可能出現12前呢? 06/12 17:31
soyoso: 有可能的話可將n大的find(4,a1,find(12,a1))加上start_num 06/12 17:34
soyoso: 抱歉是將find(4,a1)調整為find(4,a1,find(12,a1))試試 06/12 17:37
newton41: 感謝S大!我沒想到這麼仔細! 06/12 18:27