Index/match if greater than

筅森魡賤 提交于 2019-12-25 09:16:19

问题


Hoping someone can help me with my trouble with an index/match formula.

Column B has a list of names, column C has the frequency of an action taken (sales made) whilst column D has the average sales value.

I've created in column G a track of the 6 highest sales which has worked great:

=LARGE($D$8:$D$13, 2)

Then I've used column F to determine the name that matches each sales average:

=INDEX($B$8:$B$13, MATCH(G4, $D$8:$D$13, 0))

So far so good! However, I'd like to only include the sales average if that individual has had more than 3 sales. IE; the value in column C is >3.

Can any one provide help or suggestions please?


回答1:


You could use an array formula:

=LARGE(IF(range=criteria,values),n)

so for your case:

=LARGE(IF($C$8:$C$13>3,$D$8:$D$13), 2)

press CTRL+SHIFT+ENTER to enter an array formula.




回答2:


I think you could use a helper column to filter out the values you don't need before applying =LARGE() in the very beginning, like this:

=IF($C8>3, $D8, "")

Then do =LARGE() to this column instead:

=LARGE($X$8:$X$13, 2)


来源:https://stackoverflow.com/questions/38971452/index-match-if-greater-than

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!