excel计算列的唯一组合 [英] excel count unique combinations of columns

查看:118
本文介绍了excel计算列的唯一组合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个公式来计算特定列组合的数量。我正在寻找数据的示例与此类似。

I'm looking to build a formula that counts the number of specific combinations of columns. An example of what I'm looking at for data is similar to this.

Invoice   Account
A1415     1234
A1415     4567
B1415     1234
B1415     1234
B1415     4567
A1415     4567
C1415     1234

数据我从列中有5种独特的组合。任何人都可以帮助建立同时查看两列的countif方程吗?我对此很困惑。谢谢!

Out of this data I have 5 unique combinations from the columns. Can anyone help build a countif equation that looks at both columns together? I'm stumped on this one. Thanks!

推荐答案

数组公式** ,假设数据在A1:B7中:

Array formula**, assuming data in A1:B7:

= SUM(IF(FREQUENCY(MATCH(A1:A7& |&B1:B7,A1:A7& |&B1: B7,0),ROW(A1:A7)-MIN(ROW(A1:A7))+ 1),1))

注意

****数组公式的输入方式与标准公式的输入方式不同。您不仅要按ENTER键,还需要先按住CTRL和SHIFT键,然后再按ENTER键。如果操作正确,您会注意到Excel在公式周围使用了大括号{}(尽管不要尝试自己手动插入大括号)。

这篇关于excel计算列的唯一组合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆