简体   繁体   English

如何在Excel中使用带偏移功能的命名范围

[英]How to use named range with offset function in excel

i have created named range using the offset function but i want to show all the lists in my named range in cell A1. 我已经使用偏移函数创建了命名范围,但是我想在单元格A1中显示我的命名范围中的所有列表。 The named range is dynamic, i can have 5 item or 10 items but i always want to display whatever items i have in the named range in the first column. 命名范围是动态的,我可以有5项或10项,但是我一直想在第一列中显示命名范围内的所有项。 How would i do this? 我该怎么办? I have tried to use the offset function but i always get the first item only and i want to show all the items that i have in my named range. 我尝试使用偏移功能,但我始终只获得第一项,并且我想显示我在命名范围内拥有的所有项目。 i have tried and researched but could not find solution. 我已经尝试和研究,但找不到解决方案。 Thanks 谢谢

I'm not sure I follow exactly what you want to do but here is one method. 我不确定我是否完全按照您的意愿进行操作,但这是一种方法。

If your named range is something like this: 如果您的命名范围是这样的:

在此处输入图片说明

And you want to display this in Col A, enter the following formula in A1 and drag down. 您想在Col A中显示它,在A1中输入以下公式并向下拖动。

=MYRANGE

Column A output: A列输出:

在此处输入图片说明


If your range is dynamic and you don't want to show an error, modify the equation to look like this: 如果您的范围是动态范围,并且不想显示错误,请修改公式,使其看起来像这样:

=IFERROR(MYRANGE,"") = IFERROR(MYRANGE,“”)

Below is the result. 结果如下。 Column A has the new equation down to row 7 and column B has the first equation to show the error. A列直到第7行都有新方程,B列有第一个方程显示误差。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM