如何编写一个公式,其中单元格引用的编号部分来自另一个单元格? [英] how do I write a formula where the number portion of a cell reference comes from another cell?

查看:150
本文介绍了如何编写一个公式,其中单元格引用的编号部分来自另一个单元格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在单元格G14中,我有公式 = MAX(D2:D14)

In cell G14 I have the formula =MAX(D2:D14)

我打算复制公式为列G中的所有单元格。但是,公式需要改变,因此它并不总是适用于固定范围。

I plan to copy this formula to all the cells in the column G. But, the formula needs to vary so that it is not always working against a fixed range.

我想要的是像:
= MAX(D2:D(H14))
将单元格地址的数字部分从单元格拉到右边。 / p>

What I want is something like: =MAX(D2:D(H14)) That would pull the number portion of the cell address from the cell to the right.

推荐答案

反对 INDIRECT 的大部分时间解决方案的易失性行为使用 INDEX 也是可以的。所以这里也是这样。

To work against the volatile behavior of INDIRECT most of the times solutions using INDEX are also possible. So here too.

=MAX(D2:INDEX(D:D,H14))

关于 volatile behavior
Excel支持volatile函数的概念,即一个值不能被假定为从一个时刻到下一个的值,即使没有一个参数(如果需要)已更改。每当它重新计算时,Excel会重新评估包含易失性函数的单元格以及所有的依赖关系。因此,太多依赖于易失性功能可能会使重新计算时间变慢。小心使用它们。

About volatile behavior: Excel supports the concept of a volatile function, that is, one whose value cannot be assumed to be the same from one moment to the next even if none of its arguments (if it takes any) has changed. Excel reevaluates cells that contain volatile functions, together with all dependents, every time that it recalculates. For this reason, too much reliance on volatile functions can make recalculation times slow. Use them sparingly.

这篇关于如何编写一个公式,其中单元格引用的编号部分来自另一个单元格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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