In the column A there are data.
I'm asking for advice.
I need to extract data between two expressions in a string and the condition is met that three lines in a row contain:
1st line "<CATEGORY_ID>"
2nd line "<CATEGORY_NAME>"
3rd line "<CATEGORY_FULLNAME>"
If there are three consecutive rows with values, then write them down, otherwise do not include them. Simply put, you need data only if the conditions of three rows are met.
Thanks
I'm asking for advice.
I need to extract data between two expressions in a string and the condition is met that three lines in a row contain:
1st line "<CATEGORY_ID>"
2nd line "<CATEGORY_NAME>"
3rd line "<CATEGORY_FULLNAME>"
Zošit1 | ||||
---|---|---|---|---|
A | B | |||
1 | <SOMETHING> | 456 | ||
2 | <CATEGORY> | Snow chains2 | ||
3 | <CATEGORY_ID>123</CATEGORY_ID> | Something .com | Auto-moto | Snow chains | ||
4 | <CATEGORY_NAME>Snow chains</CATEGORY_NAME> | 789 | ||
5 | <CATEGORY> | LCD to cars | ||
6 | <CATEGORY_ID>456</CATEGORY_ID> | Something .com | Auto-moto | LCD | ||
7 | <CATEGORY_NAME>Snow chains2</CATEGORY_NAME> | |||
8 | <CATEGORY_FULLNAME>Something .com | Auto-moto | Snow chains</CATEGORY_FULLNAME> | |||
9 | </CATEGORY> | |||
10 | <CATEGORY> | |||
11 | <CATEGORY_ID>789</CATEGORY_ID> | |||
12 | <CATEGORY_NAME>Auto</CATEGORY_NAME> | |||
13 | <CATEGORY> | |||
14 | <CATEGORY_ID>789</CATEGORY_ID> | |||
15 | <CATEGORY_NAME>LCD to cars</CATEGORY_NAME> | |||
16 | <CATEGORY_FULLNAME>Something .com | Auto-moto | LCD</CATEGORY_FULLNAME> | |||
17 | </CATEGORY> | |||
Sheet1 |
If there are three consecutive rows with values, then write them down, otherwise do not include them. Simply put, you need data only if the conditions of three rows are met.
Thanks