2016-03-02 103 views
1

Chart Example在Excel中刪除重複使用或不VBA

您好所有,

我期待在清理的組織結構圖,我在Excel中一些幫助。現在,鏈接圖片顯示了很多重複內容。我需要刪除所有重複項,並將唯一值轉移到空白區

(即Bill G,Bill G,Fred K,Fred K,Joe X ---> Bill G,Fred K,Joe X)。

我一直在嘗試使用Excel公式(=IF(A1=B1, B1, A1))來完成它,但它不能在整個表格中正確重複,尤其是因爲不同的行具有不同數量的佔用列。

我很感激任何幫助,我可以得到。謝謝!

+0

複製單元格至新的位置與特殊粘貼,轉置。刪除每列上的重複項。使用轉置複製它們。 – Jeeped

+0

請參閱[爲什麼不顯示代碼和示例數據圖像](http://tinyurl.com/kdxb7le)。 – Jeeped

回答

1

不需要VBA。使用DataAdvanced filter,選擇Copy to another location檢查Unique records only

0

第一個公式,只會帶來獨一無二的。公式顯示重複爲0

enter image description here

後,一邊選擇配方範圍,打開 「去特」 對話框

enter image description here

選擇公式>數字

enter image description here

所有式輸出零將被選擇

enter image description here

按`按Ctrl +減號( - )到刪除單元,選擇 「移動單元格左」

enter image description here

最終結果

enter image description here

1

選擇範圍 轉到數據標籤 在數據工具窗格中,選擇「刪除重複項」