1樓:匿名使用者
而論如何,二樓的回答是很有新意的,贊一個!
為你寫個函式,使用起來會比較簡潔,而且可以處理非數字字元。
function intersect(text1 as string, text2 as string) as string
dim result as string, shorter as string, longer as string
result = ""
if len(text1) <= len(text2) then
shorter = text1
longer = text2
else
shorter = text2
longer = text1
end if
dim i as integer
for i = 1 to len(shorter)
dim searchchar as string
searchchar = mid(shorter, i, 1)
if instr(1, longer, searchchar) > 0 then
if instr(1, result, searchchar) = 0 then '重複的字元只輸出一次。
result = result & searchchar
end if
end if
next
intersect = result
end function
使用方法:
在t2單元格中輸入 = intersect(m2, s2)
2樓:匿名使用者
a列有而b列沒有的顯示在e,否則顯示在d列,是這樣嗎?還是針對同一行而言。
excel函式問題!求,求Excel高手請教函式問題!
if k10 茶葉 q10 1 if p10 s o10 l10,l10 o10 if k10 咖啡 q10 0.2 if p10 s o10 l10,l10 o10 q10 1 if p10 s o10 l10,l10 o10 公式表示,有三種情況 如果k10是茶葉,q10 1 if p10 s ...
excel問題請教,高手請進
跟那個問題一樣,裡面我回答了 a2輸入 9 0 公式以ctrl shift enter三鍵結束。補充 那你就加分等人來寫vba 吧!這個我還沒用過。不過應該可以設定的。我多數用的是公式。在原單元格不好實現 給你下面的方法 假設a1 80579 b1輸入公式 text substitute sum i...
請教高手excel中函式的問題請教高手一個EXCEL中函式的問題。
這個函bai 數實在讓人du無語.if g5 1,if and f7 1 if and f11 1 if and f8 1 if and f12 1 if and f10 1 if and g5 0 0,510 510 510 510 510 510 這裡每層只zhi有一個判斷條件dao,沒有必要使...