如何在Excel中添加多个countif语句?

如何在Excel中添加多个countif语句?,excel,excel-formula,countif,Excel,Excel Formula,Countif,我当前的公式将任何dup计算为“2X”,但如果它有3个dup,我希望看到“3X”和 “4X”表示4次重复,以此类推。我怎样才能添加到我的公式中 =IF(COUNTIF($A$2:$A$14736,$A2)>1,“2X”和“)那么您正在这样做: Count the number of occurences If the count is larger than 1, print "2X" 你为什么不这样做: Count the number of occurences Con

我当前的公式将任何dup计算为“2X”,但如果它有3个dup,我希望看到“3X”和 “4X”表示4次重复,以此类推。我怎样才能添加到我的公式中

=IF(COUNTIF($A$2:$A$14736,$A2)>1,“2X”和“)

那么您正在这样做:

Count the number of occurences
If the count is larger than 1, print "2X"
你为什么不这样做:

Count the number of occurences
Concatenate that number with "X"
因此,您正在这样做:

Count the number of occurences
If the count is larger than 1, print "2X"
你为什么不这样做:

Count the number of occurences
Concatenate that number with "X"
尝试一下:

=IF(COUNTIF($A$2:$A$14736, $A2)<2,"",COUNTIF($A$2:$A$14736, $A2)-1 & "X")
=IF(COUNTIF($A$2:$A$14736$A2)试试看:

=IF(COUNTIF($A$2:$A$14736, $A2)<2,"",COUNTIF($A$2:$A$14736, $A2)-1 & "X")

=IF($A$2:$A$14736,$A2)不要将COUNTIF与IF一起使用。只需使用COUNTIF,然后在末尾添加“X”。尝试
=COUNTIF($A$2:$A$14736,$A2)和“X”
不要将COUNTIF与IF一起使用。只需使用COUNTIF,然后在末尾添加“X”。尝试
=COUNTIF($A$2:$A$14736,$A2)和“X”
我想他不需要
-1
我想他不需要
-1
我想。如果没有重复项,Poster的原始公式为空。如果没有重复项,Poster的原始公式为空。