Excel:在数组中查找最后一个值 [英] Excel: Find last value in an array

查看:253
本文介绍了Excel:在数组中查找最后一个值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个

> A b c d...AA,BB
>1,2,3,4 
> apple apple apple
> orange pear pear apple pear
> grapefruit,grape, grape,grape

是否可以通过Excel中的公式自动找到数组中特定水果的最终出现?

Is there a way to find the final occurence of a particular fruit in the array automatically via formula in Excel?

推荐答案

您需要使用counta告诉您数组中有多少项,并使用index来获取最后一个元素的值.

You need to use counta to tell you how many items are in the array and index to get the value of the last element.

您可以尝试

=INDEX(1:1,0,COUNTA(1:1))

这将在1:1数组中找到最后一个值.

This will find the last value in the 1:1 array.

这篇关于Excel:在数组中查找最后一个值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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