gpt4 book ai didi

excel - 检索字段的最大值,用于由另一个单元格动态指定的单元格范围

转载 作者:行者123 更新时间:2023-12-04 20:43:41 25 4
gpt4 key购买 nike

以下是我必须使用的数据的粗略类比:

|SKU|   |Master SKU|    |Weight|
0000
0001 0000 5.6
0002 0000 2
0003 0000 4
0004
0005 0004 1
0006 0004 3
0007 0004 0.5

在名为 Master's Greatest Weight 的新列中;我需要一个公式,对于没有 Master SKU 的每一行, 返回与其自己匹配的每一行的最大权重 SKUMaster SKU field 。

简单地说,这是想要的结果:
|SKU|   |Master SKU|    |Weight|    |Master's Greatest Weight|
0000 5.6
0001 0000 5.6
0002 0000 2
0003 0000 4
0004 3
0005 0004 1
0006 0004 3
0007 0004 0.5

我有一种感觉,这个 Filter an array using a formula (without VBA)问题是相关的,但如果是,我不确定如何使其适应我想要实现的目标。

最佳答案

请在 SKU 0000 中尝试行(假定为 Row2)并复制下来:

 =IF(B2<>"","",MAX(IF(B:B=A2,C:C)))  

使用 Ctrl+Shift+Enter。

关于excel - 检索字段的最大值,用于由另一个单元格动态指定的单元格范围,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25723241/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com