How to return line number from a list?

gonnacai

Новичок
Регистрация
09.08.2013
Сообщения
6
Благодарностей
3
Баллы
1
Dears, thanks for your help in advance. Here is the problem.

There is a random list:
d
e
z
b
u
a

If give a value "e", how to return the line number 2?
If give a value "b", how to return the line number 4?

Thanks for your help!
 

gonnacai

Новичок
Регистрация
09.08.2013
Сообщения
6
Благодарностей
3
Баллы
1
Aha, I reply this questions myslef :-)

After some time research, I found the method.

1. Save below data to List1.
d
e
z
b
u
a

2. Create a table (called table2) like below:
1
2
3
4
5
6

3. Table Processing > Add list. Write List1 to Column B of Table2, like below:
1|d
2|e
3|z
4|b
5|u
6|a

4. Table processing > get lines (contains text what I want, such as "e"), to variables.
Clomn A data to Varable1
Clomn B data to Varable2

Varable1 is what I want.

Thank to ZennoLab to create this excellent product!
 
  • Спасибо
Реакции: VladZen

LightWood

Moderator
Регистрация
04.11.2010
Сообщения
2 382
Благодарностей
916
Баллы
113
Aha, I reply this questions myslef :-)

After some time research, I found the method.

1. Save below data to List1.
d
e
z
b
u
a

2. Create a table (called table2) like below:
1
2
3
4
5
6

3. Table Processing > Add list. Write List1 to Column B of Table2, like below:
1|d
2|e
3|z
4|b
5|u
6|a

4. Table processing > get lines (contains text what I want, such as "e"), to variables.
Clomn A data to Varable1
Clomn B data to Varable2

Varable1 is what I want.

Thank to ZennoLab to create this excellent product!
Thank you for sharing the solution with the community after you found it.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)