Excel中 - 在一列是不是一个错误或空白找到最后一个值 [英] Excel - find last value in a column which is not an error or blank

查看:177
本文介绍了Excel中 - 在一列是不是一个错误或空白找到最后一个值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Excel US preadsheet的最后一个非错误,非空值的列找到。列可以有#N / A它们与实际值交替几个instaces。有查找最后非空单元格几种解决方案,但解决方案不考虑错误,特别是当最后一个非空单元得到了一个错误。

I need to find in a column of an excel spreadsheet the last non-error, non-blank value. The column can have several instaces of #N/A which are alternating with actual values. There are several solutions for finding the last non-empty cell, but the solutions do not consider errors, in particular if the last non-empty cell has got an error.

的解决方案将是3在这种情况下。

The solution would be 3 in this case.

推荐答案

试试这个公式

= LOOKUP(2,1 /(A1:A100<>中),A1:A100)

根据需要扩大覆盖范围。在Excel 2007和更高版本可以使用整列

extend range as required. In Excel 2007 and later you can use the whole column

这篇关于Excel中 - 在一列是不是一个错误或空白找到最后一个值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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