для всего списка:
=INDEX(TRANSPOSE(IMPORTXML(
"https://www.iatatravelcentre.com/international-travel-document-news/1580226297.htm",
"//div/div/div/div/div/div/div/div")),,1)
для использования в Канаде:
=QUERY(QUERY(INDEX(TRANSPOSE(IMPORTXML(
"https://www.iatatravelcentre.com/international-travel-document-news/1580226297.htm",
"//div/div/div/div/div/div/div/div")),,1), "limit "&
MATCH("CAYMAN ISL.", INDEX(TRANSPOSE(IMPORTXML(
"https://www.iatatravelcentre.com/international-travel-document-news/1580226297.htm",
"//div/div/div/div/div/div/div/div")),,1), 0)-
MATCH("CANADA", INDEX(TRANSPOSE(IMPORTXML(
"https://www.iatatravelcentre.com/international-travel-document-news/1580226297.htm",
"//div/div/div/div/div/div/div/div")),,1), 0)&" offset "&
MATCH("CANADA", INDEX(TRANSPOSE(IMPORTXML(
"https://www.iatatravelcentre.com/international-travel-document-news/1580226297.htm",
"//div/div/div/div/div/div/div/div")),,1), 0)-1, 0), "where Col1 is not null", 0)
для Коста Изменение рики:
CANADA
до COSTA RICA
CAYMAN ISL.
до COTE D'IVOIRE
ОБНОВЛЕНИЕ:
полный список:
=ARRAYFORMULA(QUERY(TRIM(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY("♦"&TRANSPOSE(IMPORTXML(
"https://www.iatatravelcentre.com/international-travel-document-news/1580226297.htm",
"//div[@id='contentwrapper']//p[01]|//div[@id='contentwrapper']//p[02]|
//div[@id='contentwrapper']//p[03]|//div[@id='contentwrapper']//p[04]|
//div[@id='contentwrapper']//p[05]|//div[@id='contentwrapper']//p[06]|
//div[@id='contentwrapper']//p[07]|//div[@id='contentwrapper']//p[08]|
//div[@id='contentwrapper']//p[09]|//div[@id='contentwrapper']//p[10]|
//div[@id='contentwrapper']//p[11]|//div[@id='contentwrapper']//p[12]|
//div[@id='contentwrapper']//p[13]|//div[@id='contentwrapper']//p[14]"))
,,9^9)),,9^9), "♦"))), "where Col1 is not null", 0))
часть:
=ARRAYFORMULA(QUERY(
QUERY(TRIM(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY("♦"&TRANSPOSE(IMPORTXML(
"https://www.iatatravelcentre.com/international-travel-document-news/1580226297.htm",
"//div[@id='contentwrapper']//p[01]|//div[@id='contentwrapper']//p[02]|
//div[@id='contentwrapper']//p[03]|//div[@id='contentwrapper']//p[04]|
//div[@id='contentwrapper']//p[05]|//div[@id='contentwrapper']//p[06]|
//div[@id='contentwrapper']//p[07]|//div[@id='contentwrapper']//p[08]|
//div[@id='contentwrapper']//p[09]|//div[@id='contentwrapper']//p[10]|
//div[@id='contentwrapper']//p[11]|//div[@id='contentwrapper']//p[12]|
//div[@id='contentwrapper']//p[13]|//div[@id='contentwrapper']//p[14]"))
,,9^9)),,9^9), "♦"))), "where Col1 is not null", 0), "limit "&
MATCH("PALAU",
QUERY(TRIM(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY("♦"&TRANSPOSE(IMPORTXML(
"https://www.iatatravelcentre.com/international-travel-document-news/1580226297.htm",
"//div[@id='contentwrapper']//p[01]|//div[@id='contentwrapper']//p[02]|
//div[@id='contentwrapper']//p[03]|//div[@id='contentwrapper']//p[04]|
//div[@id='contentwrapper']//p[05]|//div[@id='contentwrapper']//p[06]|
//div[@id='contentwrapper']//p[07]|//div[@id='contentwrapper']//p[08]|
//div[@id='contentwrapper']//p[09]|//div[@id='contentwrapper']//p[10]|
//div[@id='contentwrapper']//p[11]|//div[@id='contentwrapper']//p[12]|
//div[@id='contentwrapper']//p[13]|//div[@id='contentwrapper']//p[14]"))
,,9^9)),,9^9), "♦"))), "where Col1 is not null", 0), 0)-
MATCH("PAKISTAN",
QUERY(TRIM(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY("♦"&TRANSPOSE(IMPORTXML(
"https://www.iatatravelcentre.com/international-travel-document-news/1580226297.htm",
"//div[@id='contentwrapper']//p[01]|//div[@id='contentwrapper']//p[02]|
//div[@id='contentwrapper']//p[03]|//div[@id='contentwrapper']//p[04]|
//div[@id='contentwrapper']//p[05]|//div[@id='contentwrapper']//p[06]|
//div[@id='contentwrapper']//p[07]|//div[@id='contentwrapper']//p[08]|
//div[@id='contentwrapper']//p[09]|//div[@id='contentwrapper']//p[10]|
//div[@id='contentwrapper']//p[11]|//div[@id='contentwrapper']//p[12]|
//div[@id='contentwrapper']//p[13]|//div[@id='contentwrapper']//p[14]"))
,,9^9)),,9^9), "♦"))), "where Col1 is not null", 0), 0)&" offset "&
MATCH("PAKISTAN",
QUERY(TRIM(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY("♦"&TRANSPOSE(IMPORTXML(
"https://www.iatatravelcentre.com/international-travel-document-news/1580226297.htm",
"//div[@id='contentwrapper']//p[01]|//div[@id='contentwrapper']//p[02]|
//div[@id='contentwrapper']//p[03]|//div[@id='contentwrapper']//p[04]|
//div[@id='contentwrapper']//p[05]|//div[@id='contentwrapper']//p[06]|
//div[@id='contentwrapper']//p[07]|//div[@id='contentwrapper']//p[08]|
//div[@id='contentwrapper']//p[09]|//div[@id='contentwrapper']//p[10]|
//div[@id='contentwrapper']//p[11]|//div[@id='contentwrapper']//p[12]|
//div[@id='contentwrapper']//p[13]|//div[@id='contentwrapper']//p[14]"))
,,9^9)),,9^9), "♦"))), "where Col1 is not null", 0), 0)-1, 0))
более короткая формула:
=ARRAYFORMULA(QUERY(QUERY(TRIM(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY("♦"&TRANSPOSE(IMPORTXML(
"https://www.iatatravelcentre.com/international-travel-document-news/1580226297.htm",
JOIN("|", "//div[@id='contentwrapper']//p["&ROW(A1:A15)&"]"))),,9^9)),,9^9), "♦"))),
"where Col1 !=''", 0), "limit "&
MATCH("PALAU", QUERY(TRIM(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY("♦"&TRANSPOSE(IMPORTXML(
"https://www.iatatravelcentre.com/international-travel-document-news/1580226297.htm",
JOIN("|", "//div[@id='contentwrapper']//p["&ROW(A1:A15)&"]"))),,9^9)),,9^9), "♦"))),
"where Col1 !=''", 0), 0)-
MATCH("PAKISTAN", QUERY(TRIM(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY("♦"&TRANSPOSE(IMPORTXML(
"https://www.iatatravelcentre.com/international-travel-document-news/1580226297.htm",
JOIN("|", "//div[@id='contentwrapper']//p["&ROW(A1:A15)&"]"))),,9^9)),,9^9), "♦"))),
"where Col1 !=''", 0), 0)&" offset "&
MATCH("PAKISTAN", QUERY(TRIM(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY("♦"&TRANSPOSE(IMPORTXML(
"https://www.iatatravelcentre.com/international-travel-document-news/1580226297.htm",
JOIN("|", "//div[@id='contentwrapper']//p["&ROW(A1:A15)&"]"))),,9^9)),,9^9), "♦"))),
"where Col1 !=''", 0), 0)-1, 0))