如何在excel中找到范围连续值? [英] How to find the range continuous value in excel ?

查看:113
本文介绍了如何在excel中找到范围连续值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一列中有一张excel表格,我有一个文件名。



栏目A



A1 abc

A2 abc

A3 abc

A4 abc

A5 xyz

xyz

xyz

A8 xyz

A9 ytz

ytz

ytz

A12 ytz

从上面的excel我必须得到数组中的值

(abc,1,4)

(xyz,5,8)

(ytz,8,11)



请帮帮我。谢谢。



我尝试了什么:



使用vb.net在该hashset中包含count然后值,但我不知道在我得到新的文件名值时存储在数组中。

I have an excel sheet in one column i have a filename.

column A

A1 abc
A2 abc
A3 abc
A4 abc
A5 xyz
xyz
xyz
A8 xyz
A9 ytz
ytz
ytz
A12 ytz
From above excel i have to get the value in array
(abc,1,4)
(xyz,5,8)
(ytz,8,11)

Please help me.Thanks in advance.

What I have tried:

using vb.net in that hashset contains count then value but i dont know to store in array when new filename value i got.

推荐答案

您只需要一个循环和一些列表列表。主List将按文件名索引,每个子列表将包含这些字符串的行号。这样你就可以捕获每个条目,即使它们不是顺序的。
You just need a loop and a number of Lists of Lists. The main List will be indexed by the filename, and each sublist will contain the row number for those strings. That way you can capture every entry, even if they are not in sequence.


这篇关于如何在excel中找到范围连续值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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