Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sql-server-2005/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google sheets 谷歌表格中的列比较_Google Sheets - Fatal编程技术网

Google sheets 谷歌表格中的列比较

Google sheets 谷歌表格中的列比较,google-sheets,Google Sheets,我有一个有宽度和高度的项目集合 A B C Item Width Height I1 1 1 I2 1 1 I3 1.25 1 I4 1 1.25 我想确定每个维度有多少 Width 1 1.25 1.5 ...

我有一个有宽度和高度的项目集合

A         B           C
Item    Width    Height
I1        1           1
I2        1           1
I3        1.25      1
I4        1           1.25
我想确定每个维度有多少

                    Width
            1       1.25        1.5 ...
            1       X           Y
            1.25    Z
Height      1.5
            ...

X = 2
Y = 1
Z = 1
我需要知道在X、Y和Z等单元格中要寻找什么函数

寻找类似于

X = Count row 2:5 where B(row) = 1 and C(row) = 1
Y = Count row 2:5 where B(row) = 1.25 and C(row) = 1
Z = Count row 2:5 where B(row) = 1 and C(row) = 1.25

我不确定我是否理解您的问题,但请尝试以下方法:

对于x:

=countifs (B2:B ,"=1",C2:C ,"=1")
对于y:

=countifs (B2:B ,"=1",C2:C ,"=1.25")
对于z:

=countifs (B2:B ,"=1.25",C2:C ,"=1")

如果你有很多可能的组合,考虑做这样的东西

从这样的长度和宽度中获取唯一值

宽度

=INDEX(UNIQUE(B2:B))
高度

=TRANSPOSE(UNIQUE(C2:C))
网格

第一次查找的公式(1:1)

=COUNTIFS($B$2:$B,$E4,$C$2:$C,F$3)