EXCEL 根据 first raw 的值选择列,增量为 1
EXCEL selecting columns according to value of first raw with increasing increment of 1
我有一个 2 列的非常长的数字数据。资料图片为here. I am in need of sampling/selecting rows with respect to column A for each integer interval of "1". for example 1 row from <1, another row from integer value 1, another from integer value: 2. etc. going through 1700 and so forth. A sample of what is literally meant is here。
我应该使用什么类型的宏才能获得这种选择方法?
提前谢谢你,
您可以使用 index(match())
来做到这一点。只需创建一个从 1 开始到最大值结束的整数列表。然后,假设您的列表在 A1:B27
中并且您的 INT 列表从 D1
开始,然后在 E1
:
=INDEX(B1:B27,MATCH(D1,A1:A27,1),1)
并抄下来。 Match 的第二个参数将检测 D1
中整数值之前的最后一个值。这是 1,所以最终你必须从每个整数中减去一个来纠正列表,但它应该给你一个样本。
我有一个 2 列的非常长的数字数据。资料图片为here. I am in need of sampling/selecting rows with respect to column A for each integer interval of "1". for example 1 row from <1, another row from integer value 1, another from integer value: 2. etc. going through 1700 and so forth. A sample of what is literally meant is here。 我应该使用什么类型的宏才能获得这种选择方法?
提前谢谢你,
您可以使用 index(match())
来做到这一点。只需创建一个从 1 开始到最大值结束的整数列表。然后,假设您的列表在 A1:B27
中并且您的 INT 列表从 D1
开始,然后在 E1
:
=INDEX(B1:B27,MATCH(D1,A1:A27,1),1)
并抄下来。 Match 的第二个参数将检测 D1
中整数值之前的最后一个值。这是 1,所以最终你必须从每个整数中减去一个来纠正列表,但它应该给你一个样本。