根据Excel中的频率表生成原始数据列 [英] Generate Column of raw data based on frequency table in Excel
问题描述
我有一列数字,第二列数字.数字的第二列包含左栏中数字的频率.
I have a column of numbers and a second column of numbers. The second column of numbers contains the frequency of the numbers in the left column.
我想创建包含原始数据的第三列数字.
I want to create a third column of numbers that has the raw data.
示例:
A B
1 5
3 2
4 4
C列如下:
C
1
1
1
1
1
3
3
4
4
4
4
如何在Excel中做到这一点?谢谢!
How can I do that in Excel? Thanks!
推荐答案
基于 A1:B3
中的数据, C1
中的数据,数组公式** :
Based on data in A1:B3
, in C1
, array formula**:
= IF(ROWS(A $ 1:A1)> SUM(B $ 1:B $ 3),",INDEX(A $ 1:A $ 3,MATCH(TRUE,MMULT(0+(ROW(A $ 1:A $ 3)> = TRANSPOSE(ROW(A $ 1:A $ 3))),B $ 1:B $ 3)> = ROWS(A $ 1:A1),0))))
,然后向下复制,直到您开始为结果空白为止.
and copied down until you start to get blanks for the results.
致谢
**输入数组公式的方式与使用标准"公式的方式不同.您不仅要按ENTER键,还需要先按住CTRL和SHIFT键,然后再按ENTER键.如果操作正确,您会注意到Excel在公式周围放置了大括号{}(尽管不要尝试自己手动插入大括号).
这篇关于根据Excel中的频率表生成原始数据列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!