从选择中获取具有数值的第一个单元格的公式? [英] Formula to get the first cell with a numerical value from a selection?

查看:296
本文介绍了从选择中获取具有数值的第一个单元格的公式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Microsoft Excel 2013中:

In Microsoft Excel 2013:

我有一个电子表格(从另一个程序每月导出)。我的目标是获取最后一行数据,并将其从第一行数据中减去(电子表格中的所有值都是数字)。行数每月更改。

I have a spreadsheet (exported monthly from another program). My goal is to take the last row of data and subtract it from the first row of data (all values in the spreadsheet are numeric). The number of rows changes each month.

我可以通过以下方式获取最后一行数据,以便在列中选择数值最后一个单元格它使用: = INDEX(B:B,MATCH(9.999999999999E + 307,B:B))

I was able to get the last line of data by using the following to select the last cell in the column with a numerical value in it using : =INDEX(B:B,MATCH(9.99999999999999E+307,B:B))

我需要的是从列中获取第一个单元格的另一个方程式,以便我可以编写一个公式从第一个单元格中减去最后一个值。

What I need is another equation to get the first cell with a numerical value from the columns, so that I can then write a formula to subtract the last values from the first ones.

推荐答案

您可以使用 LOOKUP 简化最后的数字公式,即

You can simplify the last number formula by using LOOKUP, i.e.

= LOOKUP(9.999999999999E + 307,B:B)

,第一个数字尝试这个

= INDEX(B:B,MATCH(1,INDEX(ISNUMBER B)+0,0),0))

这篇关于从选择中获取具有数值的第一个单元格的公式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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