[英]Excel formula to count a number in first column and output in corresponding column in same row?
Hello guys I was trying to achieve the following in Excel 大家好,我试图在Excel中实现以下目标
A B C D E
1 1 0 0 0
0 0 0 0 0
2 0 1 0 0
1 2 0 0 0
2 0 2 0 0
So if I enter a number in A column the corresponding column to that number counts how many times the number occurred in A and outputs the same in the same row at the corresponding column. 因此,如果我在A栏中输入数字,则与该数字对应的列会计算该数字在A中出现的次数,并在同一列的同一行中输出相同的数字。 I ve tried B = COUNTIF(A1:A1000, 1)
but this is useless if you know what I mean. 我已经尝试过B = COUNTIF(A1:A1000, 1)
但是如果您知道我的意思,这是没有用的。 Any ideas on how to achieve the result? 关于如何获得结果的任何想法?
Try this formula in B1 copied down and across 尝试在B1中向下复制的公式
=IF($A1=COLUMNS($B1:B1),COUNTIF($A$1:$A1,COLUMNS($B1:B1)),0)
That will give the results you showed 那会给你显示的结果
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.