简体   繁体   中英

Excel Vba column with unique date value to array

How to save the a column of values into array with the column is in datetime format and i need to get only the unique values in to the array by omiting the time. that is i need to compare only the date.

 1/1/2014 9:30 1/1/2014 14:03 1/1/2014 9:56 1/1/2014 9:57 1/1/2014 11:11 1/1/2014 16:45 1/1/2014 12:31 1/1/2014 14:04 1/1/2014 15:16 1/1/2014 14:10 1/1/2014 14:17 1/1/2014 14:52 1/1/2014 16:26 1/1/2014 17:08 1/1/2014 17:00 1/1/2014 17:44 1/1/2014 17:41 1/1/2014 18:32 1/1/2014 19:00 1/1/2014 21:06 1/1/2014 19:37 1/1/2014 19:22 1/1/2014 23:08 1/2/2014 0:30 1/2/2014 1:57 1/2/2014 5:16 

Thanks

如果没有VBA,则使用空格作为定界符来“文本到列”,并为ROWS创建带有ColumnA的数据透视表。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM