由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - count unique values in file with 1 million rows (转载)
相关主题
SQL fast search in a 10 million records table求助:关于DATABASE 和EXCEL
问个sql问题如何实现hashMap里value的unique
请帮忙回答一个SQL问题Looking for Trader Assistant /Analyst @ Stamford CT
matrix questionLooking for Junior Trader Assistant /Analyst @ Stamford CT
大雪天裸体跪问关于young tableau的几道题目~~~这个版上电脑高手多,借地儿请教个Excel问题,谢谢!
如何用R处理大文件 (转载)我编程会不如烙印???放屁
大牛们看看这题:Find Peak Element II请教一个问题:C++直接操作Excel
VBA Programming 的前景怎么样?加州三藩,银行职位 Quantitative Analyst, SAS Developer, Data (转载)
相关话题的讨论汇总
话题: excel话题: values话题: unique话题: a5389579话题: count
进入JobHunting版参与讨论
1 (共1页)
l******9
发帖数: 579
1
【 以下文字转载自 Statistics 讨论区 】
发信人: light009 (light009), 信区: Statistics
标 题: count unique values in file with 1 million rows
发信站: BBS 未名空间站 (Sat Apr 12 16:11:22 2014, 美东)
I need to count the unique values in one column in EXCEL 2010.
The worksheet has 1 million rows and 10 columns. All cell values are string
or numbers.
I used the solution at Count unique values in a column in Excel
=SUMPRODUCT((A2:A1000000<>"")/COUNTIF(A2:A100000,A2:A1000000&""))
But, it runs so long time that the EXCEL is almost frozen. And, it generates
25 processes in Win 7.
Are there more efficient ways to do it ?
Also, in the column, all values have for format of
AX_Y
here, A is a character, X is an integer, Y is an integer from 1 to 10.
For example, A5389579_10
I need to cut off the part after (including) undersocre. for the example,
A5389579
This is what I need to count as unique values in all cells in one column.
For example, A5389579_10
A1543848_6
A5389579_8
here, the unique value has 2 after removing the part after underscore.
How to do it in EXCEL VBA and R (if no efficient solution for EXCEL) ?
Thanks !
1 (共1页)
进入JobHunting版参与讨论
相关主题
加州三藩,银行职位 Quantitative Analyst, SAS Developer, Data (转载)大雪天裸体跪问关于young tableau的几道题目~~~
Looking for Overnight Junior Analyst / Execution Trader如何用R处理大文件 (转载)
工作机会,请站内联系大牛们看看这题:Find Peak Element II
紧急求助,职位被取消了!VBA Programming 的前景怎么样?
SQL fast search in a 10 million records table求助:关于DATABASE 和EXCEL
问个sql问题如何实现hashMap里value的unique
请帮忙回答一个SQL问题Looking for Trader Assistant /Analyst @ Stamford CT
matrix questionLooking for Junior Trader Assistant /Analyst @ Stamford CT
相关话题的讨论汇总
话题: excel话题: values话题: unique话题: a5389579话题: count