将值连接成唯一值

时间:2015-07-06 01:33:30

标签: excel unique

我正在尝试从一系列连接值中在Excel中创建一系列唯一值,但每次尝试时我都会获得Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry and just ignore them. Thanks! Warning: Unbrewed dylibs were found in /usr/local/lib. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted. Unexpected dylibs: /usr/local/lib/libatk-1.0.0.2209.1.dylib /usr/local/lib/libgdk-x11-2.0.0.1200.0.dylib /usr/local/lib/libgdk_pixbuf-2.0.0.1200.0.dylib /usr/local/lib/libgdk_pixbuf_xlib-2.0.0.1200.0.dylib /usr/local/lib/libgio-2.0.0.0.0.dylib /usr/local/lib/libGLEW.1.5.4.dylib /usr/local/lib/libglib-2.0.0.1600.0.dylib /usr/local/lib/libgmodule-2.0.0.1600.0.dylib /usr/local/lib/libgobject-2.0.0.1600.0.dylib /usr/local/lib/libgthread-2.0.0.1600.0.dylib /usr/local/lib/libgtk-x11-2.0.0.1200.0.dylib /usr/local/lib/libintl.8.0.2.dylib /usr/local/lib/libjpeg.62.dylib /usr/local/lib/libpango-1.0.0.2100.0.dylib /usr/local/lib/libpangocairo-1.0.0.2100.0.dylib /usr/local/lib/libpangoft2-1.0.0.2100.0.dylib /usr/local/lib/libpangox-1.0.0.2100.0.dylib /usr/local/lib/libpangoxft-1.0.0.2100.0.dylib /usr/local/lib/libportaudio.2.0.0.dylib /usr/local/lib/libSDL-1.2.0.dylib /usr/local/lib/libz.1.2.5.dylib Warning: Unbrewed .la files were found in /usr/local/lib. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted. Unexpected .la files: /usr/local/lib/libatk-1.0.la /usr/local/lib/libgdk-x11-2.0.la /usr/local/lib/libgdk_pixbuf-2.0.la /usr/local/lib/libgdk_pixbuf_xlib-2.0.la /usr/local/lib/libgio-2.0.la /usr/local/lib/libglib-2.0.la /usr/local/lib/libgmodule-2.0.la /usr/local/lib/libgobject-2.0.la /usr/local/lib/libgthread-2.0.la /usr/local/lib/libgtk-x11-2.0.la /usr/local/lib/libintl.la /usr/local/lib/libjpeg.la /usr/local/lib/libpango-1.0.la /usr/local/lib/libpangocairo-1.0.la /usr/local/lib/libpangoft2-1.0.la /usr/local/lib/libpangox-1.0.la /usr/local/lib/libpangoxft-1.0.la /usr/local/lib/libportaudio.la Warning: Unbrewed static libraries were found in /usr/local/lib. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted. Unexpected static libraries: /usr/local/lib/libintl.a /usr/local/lib/libjpeg.a /usr/local/lib/libportaudio.a /usr/local/lib/libz.a 。我究竟做错了什么?我正在使用这个公式:#Name error

是的,我确实拥有102,916行数据。

2 个答案:

答案 0 :(得分:1)

您可以通过以下方式轻松删除A列中102,916行的重复项:

= IF(COUNTIF(A$1:A1, A1)=1, A1, "")

将此公式粘贴到单元格B1中,然后一直复制到第102,916行。您将只剩下唯一的值。然后,您可以复制这些唯一值,并根据需要在其他位置按值进行粘贴。仅供参考我检查了这个公式是否适用于连接值。

答案 1 :(得分:0)

另一种方法是在VBA中使用REMOVE DUPLICATES功能。

代码看起来像这样:

Columns("A:A").Select    ' select column A
ActiveSheet.Range("$A$1:$A$102916").RemoveDuplicates Columns:=1, Header:=xlYes ' for the active range, remove the duplicates; only 1 column selected; there is a header

如果您想避免丢失连接,可以将数据复制到另一列并按照这种方式执行。