我在Excel中的Excel:使用公式長於255個字符
=CONCATENATE("insert into #UpdateData (mondayopenhour, mondayopenmin,mondayclosehour, mondayclosemin,tuesdayopenhour, tuesdayopenmin,tuesdayclosehour, tuesdayclosemin,wednesdayopenhour, wednesdayopenmin, wednesdayclosehour, wednesdayclosemin,thursdayopenhour, thursdayopenmin,thursdayclosehour, thursdayclosemin, fridayopenhour, fridayopenmin, fridayclosehour, fridayclosemin, saturdayopenhour, saturdayopenmin, saturdayclosehour, saturdayclosemin, sundayopenhour, sundayopenmin, sundayclosehour, sundayclosemin values ('",TRIM(A2),"',",MID(B2,1,2),",",MID(B2,3,2),",",MID(C2,1,2),",",MID(C2,3,2),",",MID(D2,1,2),",",MID(D2,3,2),",",(MID(E2,1,2),",",MID(E2,3,2),",",MID(F2,1,2),",",MID(F2,3,2),",",MID(G2,1,2),",",MID(G2,3,2),",",MID(H2,1,2),",",MID(H2,3,2),",",MID(I2,1,2),",",MID(I2,3,2),",",MID(J2,1,2),",",MID(J2,3,2),",",MID(K2,1,2),",",MID(K2,3,2),",",MID(L2,1,2),",",MID(L2,3,2),",",MID(M2,1,2),",",MID(M2,3,2),",",MID(N2,1,2),",",MID(N2,3,2),",",MID(O2,1,2),",",MID(O2,3,2),")")
下面的公式,當我嘗試運行它,我得到的公式以下錯誤
文本值被限定在255個字符。要在公式中創建長度超過255個字符的文本 值,請使用CONCATENATE 函數或連接運算符(&)。
我一直在網上尋找這個,但沒有得到真正的解決方案!有誰知道如何解決這個問題?
林不知道如果'= PART'工作,但我設法打破文本塊,然後通過使用'= C2&C3細胞拼湊回來一起細胞來解決這個問題&C4&C5' –
@HipHipArray yes - 您也可以使用'&',但不必將文本分隔爲單個單元格,也可以在字符串中使用'&'。但我相信,分離將有助於進一步審查。你也可以命名你的單元格(例如'MONDAYS'而不是'C2'),這可能會幫助你進一步瞭解'C2'的背後。 – Jook
這個問題被問到很長時間了,但什麼是「= PART()」函數?我無法在任何地方找到它......? – Sancarn