iT邦幫忙

0

EXCEL解決重複資科~能幫幫我嗎

  • 分享至 

  • xImage

想請問大神們....
有工作表1固定輸入資料 輸入完後工作表2自動抓取部份資料後集中(如圖範例-左)
想請問可以用公式在工作表2把工作表1要得資料集中後.再把重複的資料篩選出來 留重複的只剩一個嗎?(如圖-右)
能幫幫我嗎 資料大筆 想哭>< 感謝
https://ithelp.ithome.com.tw/upload/images/20210621/20138696Kgyh6TMTgM.png!

看更多先前的討論...收起先前的討論...
tuogjlbm iT邦新手 5 級 ‧ 2021-06-21 13:56:42 檢舉
你是要類似這樣的方法嗎?
https://ez3c.tw/8612
xx0301520 iT邦新手 5 級 ‧ 2021-06-21 14:23:38 檢舉
先感謝你的回答唷~
但是你說的那個我用不出來\好像只能單一欄位使用
tuogjlbm iT邦新手 5 級 ‧ 2021-06-21 14:25:18 檢舉
你的畫面是幾版的excel呢~? 那個網址有三種方法 三種都試過了嗎~
xx0301520 iT邦新手 5 級 ‧ 2021-06-21 14:33:25 檢舉
我的是2010的>< 還在試試看第三種方式
感謝你
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中
1
blanksoul12
iT邦研究生 5 級 ‧ 2021-06-21 17:05:41
最佳解答
Sub test()

Set d = CreateObject("Scripting.Dictionary")

For Each Rng In [a1].CurrentRegion
    d(Rng.Value) = d(Rng.Value) + 1
Next
k = d.keys

[h1].Resize(UBound(k) + 1, 1) = Application.Transpose(k)

End Sub
xx0301520 iT邦新手 5 級 ‧ 2021-06-21 17:36:16 檢舉

非常感謝你 但可以告訴我這個要在哪打上嗎><

blanksoul12 iT邦研究生 5 級 ‧ 2021-06-22 08:23:23 檢舉

這是 vba 來的

2
Neish
iT邦研究生 1 級 ‧ 2021-06-21 13:59:02

https://ithelp.ithome.com.tw/upload/images/20210621/20097781UOdvoP0hSo.jpg

Excel內建有移除重複
可以勾選要判定重複的欄位

xx0301520 iT邦新手 5 級 ‧ 2021-06-21 14:24:13 檢舉

感謝你的回答~但是資料大筆
想說有辦法用公式 直接完成的嗎

3
rogeryao
iT邦超人 8 級 ‧ 2021-06-21 19:55:15

1.將 A1 儲存格塞到 H1,6 表示有 6 個欄位,公式如下 :

H1 = INDIRECT(CHAR(65+MOD(ROW()-1,6)) & INT((ROW()-1)/6)+1)

2.複製 H1
https://ithelp.ithome.com.tw/upload/images/20210621/20085021KINUTJPMUY.png
H18 表示總共有 18 個儲存格
https://ithelp.ithome.com.tw/upload/images/20210621/20085021TqDdzcnqqH.png
貼上時選【公式】
https://ithelp.ithome.com.tw/upload/images/20210621/20085021OMKgKNiuai.png
結果如下
https://ithelp.ithome.com.tw/upload/images/20210621/20085021nHLeTRrshT.png
3.選 H 欄整欄複製
https://ithelp.ithome.com.tw/upload/images/20210621/20085021F2PpuLj7Zn.png
4.直接貼在 H 欄, 貼上時選【值】
https://ithelp.ithome.com.tw/upload/images/20210621/20085021Jc5ZufFMrR.png
5.選 H 欄位去除重複
https://ithelp.ithome.com.tw/upload/images/20210621/20085021cwRAqdhh1k.png

https://ithelp.ithome.com.tw/upload/images/20210621/200850210Lovqvzjvf.png

https://ithelp.ithome.com.tw/upload/images/20210621/200850214L05CUFbmG.png

xx0301520 iT邦新手 5 級 ‧ 2021-06-21 23:37:44 檢舉

感謝你

我要發表回答

立即登入回答