Excel:某些行内的动态范围 + 数据验证更新 [英] Excel: Dynamic range within certain rows + data validation update

查看:31
本文介绍了Excel:某些行内的动态范围 + 数据验证更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里拥有的是我的大数据集的一小部分,有很多下拉菜单和函数可以计算周围的一切.我只是超越了这张桌子,并试图让它比以前更自动,但我坚持了我放绿色的那部分.

What I have here is small part of my big data set, with lot of drop downs and functions that are calculating everything around. I am just exceeding this table and trying to make it more automatically than it was before, but I stuck on that part that I put in green.

当我想在右侧(右表)添加一些名为 Model Options > 的新单元格而不是 Reserviert 但一些其他名称(将是稍后填充),但要在左侧下拉参考单元格(模型)上自动识别它?我会有一些额外的工作簿,它会经常更新,我必须从那个工作簿中查找所有新"的东西,并像这两个小例子一样按特定顺序在此处填充它..

Which function might be suitable when I wanna add some new cells on the right (right table) named Model Options > instead of Reserviert but some another name (will be populated later), but to automatically recognize it on left drop down reference cell (Model)? I will have some additional workbook which is gonna be updated frequently, and from that workbook I have to lookup everything what is "new" and to populate it here in certain order like in this two small examples..

到目前为止,我设法找到了 OFFSET 和 INDEX 函数:

Up till now I managed to find OFFSET and INDEX functions:

=OFFSET(Sheet1!$B$1;1;0;COUNTA(Sheet1!$B:$B)-1;2) or `=$A$2:INDEX($A:$A,COUNTA($A:$A))`

..但它没有用.我的数据集(T 列和 U 列)不是从顶行开始,而是从中间的某处开始(其他数据在它之前和之后),这给我带来了麻烦,尤其是当我包含新行时...

..but it didnt work. My Data set (Columns T and U) are not starting from the top rows, but somewhere in the middle (other data is before and after it), and that gives me trouble especially when I am including new rows...

希望我对问题很清楚.

推荐答案

好吧,您不必使用完整的列范围.

Well, you dont have to use full column ranges.

对于第一个列表,您只需在 OFFSET 中添加一个 COUNTBLANK,以便该列表跳过空白单元格.这不适用于数据条目之间的空白单元格.

For the first list you just have to add a COUNTBLANK in the OFFSET, so that list skips the blank cells. This won't work for blank cells in between the data entries.

=OFFSET(T14:T18,COUNTBLANK(T14:T18),,COUNTA(T14:T18)) 

至于您可以使用的第二个列表

As for the second list you can use

=OFFSET(Tabelle1!T20:T26,,,COUNTA(Tabelle1!U20:U26))

这里我用代码列来统计条目的数量.您可以通过修改 COUNTA 函数中的范围将其转移到端点列.这只是为了展示一些进一步的可能性.

Here I used the code column to count the number of entries. You can shift it over to the endpoint column by modifying the ranges in the COUNTA-function. This is just to show of some further possibilities.

希望我的回答很清楚.:) 如果我没有到达现场,请告诉我.

Hopefully i was clear with my answer. :) If i didn't hit the spot, let me know.

这篇关于Excel:某些行内的动态范围 + 数据验证更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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