从Excel行中选择前n个值 [英] Select Top n Values from Excel Row

查看:314
本文介绍了从Excel行中选择前n个值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对这个问题非常困扰。我有一个整数行(B14:CW15),它计算每个唯一字符串在原始字符串中出现的次数。它的结构是这样的。

I'm struggling tremendously with this problem. I have a row (B14:CW15) of integers that count how many times each unique string occurs within the original string. It is structured like so.

Biagrams:        +h hb bl I) )m mj jk km mm mk k^ mm +h
Unique Biagrams: +h hb bl I) )m mj jk km mm mk k^
Biagram Count:   2  1  1  1  1  1  1  1  2  1  1

我不能为我的生活,如何我可以从这个提取的前n个biagrams没有excel选择重复的biagrams。

I can't for the life of my figure out how I can extract the top n biagrams from this without excel selecting duplicate biagrams. The Large() function has not worked as it will return the same biagram for each number, not unique biagrams for the same number.

推荐答案

公式:

B16 到右侧:

=COUNTIF($14:$14,B$15)

$ b b

B17 右侧:

=RANK.EQ(B$16,$B$16:$CW$16)

c> B18 到右侧:

in B18to right:

{=INDEX($A$15:$CW$15,,--RIGHT(SMALL(RANK.EQ($B$16:$CW$16,$B$16:$CW$16,0)*10^5+COLUMN($B$16:$CW$16),COLUMNS($A:A)),5))}

最后一个公式是数组公式。将其输入不带大括号的单元格,然后按[Ctrl] + [Shift] + [Enter]确认。大括号将自动出现。

The last formula is an array formula. Input it into the cell without the curly brackets and press [Ctrl]+[Shift]+[Enter] to confirm. The curly brackets will then appear automatically.

这篇关于从Excel行中选择前n个值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆