在B列中选择最小值,以在A列中选择相同的值? [英] select min value in B column for same values in A columns excel?
问题描述
我想得到例如第1列中相同值的第2列中的最小值或最大值. 在我的示例中,我希望从列2获得的最大值为值A(第1列),即18,而对于B为27.
I would like to get e.g. min or max value from column2 for same value in column1. In mine example I want max value from column2 for value A (column1) and that is 18, and for B is 27.
我已经尝试过使用数组函数,但是我无法管理它正常工作.
I've tried with array function but I cannot manage it to work properly.
任何提示或解决方案的Tnx.
Tnx for any tip or solution.
示例:
Column1 Column2 Max_value
A 1 18
A 5 18
A 18 18
A 3 18
A 4 18
B 2 27
B 5 27
B 18 27
B 27 27
B 5 27
B 3 27
对不起,例子不好,但我无法发布图片,我的排名还不够高:)
Sorry for poor example, but I couldn't post picture, my rank is not high enough :)
推荐答案
对于C2,标准的数组公式"是这样的
The standard "array formula" is like this for C2
=MAX(IF(A$2:A$100=A2,B$2:B$100))
已通过CTRL+SHIFT+ENTER
确认并向下复制列-根据需要调整范围
confirmed with CTRL+SHIFT+ENTER
and copied down column - adjust ranges as required
将 MAX 替换为 MIN ,以在下一列中获取最小值
replace MAX with MIN to get the minimum values in the next column
这篇关于在B列中选择最小值,以在A列中选择相同的值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!