简体   繁体   English

在Excel中具有第二大价值的条件

[英]Second Largest Value with criteria in excel

I'm trying to find the second largest value of a given criteria in excel. 我试图在excel中找到给定条件的第二大价值。 So the formula I was trying to use was 所以我尝试使用的公式是

=LARGE(IF($B$1:$B$216=1,$F$1:$F$216,""),2) . =LARGE(IF($B$1:$B$216=1,$F$1:$F$216,""),2)

The problem is that it is returning the second largest overall value, but I want the second largest value where column B is 1. Better Answers would be helpful. 问题是它返回的是第二大的总值,但是我想要第二大的值(其中B列为1)。更好的答案会有所帮助。

You are using an array (CSE) formula and you did not enter it the key combination for array formuas. 您正在使用数组(CSE)公式 ,但未输入数组格式的组合键。 Edit the cell again and click Ctrl+Shift+Enter . 再次编辑单元格,然后单击Ctrl+Shift+Enter

Or if you want a normal (non CSE) formula, use this: 或者,如果您想要一个普通(非CSE)公式,请使用以下命令:

=AGGREGATE(14,6,$F$1:$F$216/($B$1:$B$216=1),2)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM