попробуйте:
=ARRAYFORMULA(FILTER(A1:C, REGEXMATCH(VLOOKUP(A1:A&C1:C,
SORT({A1:A&C1:C, B1:B}, 1, 1, 2, 1), 2, 0), "FT|PSTP")))
или напрямую:
=ARRAYFORMULA(FILTER({
IFERROR(FILTER(Sheet2!A2:C,Sheet2!A2:A<>""),{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E2,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E2,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E2,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E2,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E2,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E2,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E3,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E3,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E3,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E3,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E3,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E3,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E4,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E4,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E4,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E4,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E4,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E4,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E5,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E5,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E5,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E5,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E5,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E5,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E6,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E6,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E6,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E6,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E6,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E6,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
}, REGEXMATCH(VLOOKUP(INDEX({
IFERROR(FILTER(Sheet2!A2:C,Sheet2!A2:A<>""),{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E2,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E2,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E2,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E2,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E2,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E2,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E3,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E3,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E3,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E3,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E3,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E3,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E4,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E4,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E4,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E4,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E4,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E4,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E5,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E5,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E5,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E5,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E5,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E5,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E6,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E6,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E6,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E6,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E6,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E6,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
},,1)&INDEX({
IFERROR(FILTER(Sheet2!A2:C,Sheet2!A2:A<>""),{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E2,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E2,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E2,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E2,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E2,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E2,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E3,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E3,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E3,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E3,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E3,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E3,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E4,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E4,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E4,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E4,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E4,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E4,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E5,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E5,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E5,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E5,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E5,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E5,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E6,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E6,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E6,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E6,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E6,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E6,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
},,3),
SORT({INDEX({
IFERROR(FILTER(Sheet2!A2:C,Sheet2!A2:A<>""),{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E2,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E2,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E2,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E2,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E2,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E2,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E3,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E3,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E3,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E3,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E3,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E3,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E4,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E4,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E4,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E4,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E4,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E4,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E5,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E5,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E5,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E5,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E5,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E5,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E6,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E6,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E6,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E6,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E6,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E6,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
},,1)&INDEX({
IFERROR(FILTER(Sheet2!A2:C,Sheet2!A2:A<>""),{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E2,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E2,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E2,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E2,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E2,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E2,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E3,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E3,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E3,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E3,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E3,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E3,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E4,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E4,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E4,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E4,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E4,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E4,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E5,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E5,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E5,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E5,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E5,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E5,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E6,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E6,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E6,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E6,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E6,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E6,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
},,3), INDEX({
IFERROR(FILTER(Sheet2!A2:C,Sheet2!A2:A<>""),{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E2,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E2,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E2,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E2,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E2,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E2,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E3,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E3,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E3,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E3,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E3,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E3,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E4,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E4,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E4,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E4,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E4,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E4,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E5,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E5,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E5,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E5,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E5,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E5,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
;
IFERROR(
{
TEXT(IMPORTXML(E6,"//tr[@class='no-date-repetition-new' and ..//td[@class='score-time']]"),"yyyy/mm/dd"),
IF(IMPORTXML(E6,"//td[@class='score-time']")="PSTP","PSTP",TEXT(SUBSTITUTE(IMPORTXML(E6,"//div[@class='match-card match-hour']")," ",""),"hh:mm")),
IFERROR("https://int.soccerway.com"&LEFT(IMPORTXML(E6,"//td[@class='score-time']/a/@href"),FIND("?ICID=",IMPORTXML(E6,"//td[@class='score-time']/a/@href"))-1),"https://int.soccerway.com"&IMPORTXML(E6,"//td[@class='score-time']/a/@href"))
}
,{"","",""})
},,2)}, 1, 1, 2, 1), 2, 0), "FT|PSTP")))