вас это удовлетворит:
=ARRAYFORMULA(IFERROR(VLOOKUP(B4:B13&C4:C13, {
IMPORTXML($A1, "//table[3]/tbody//span/img[1]/@title/preceding::td[@class='ItemRight'][1]")&
IMPORTXML($A1, "//table[3]/tbody//span/img[1]/@title/preceding::a[1]"),
VLOOKUP(IMPORTXML($A1, "//table[3]/tbody//span/img[1]/@title"),
{"Common", "★", "", "", "", "";
"Uncommon", "★", "★", "", "", "";
"Rare", "★", "★", "★", "", "";
"Super Rare", "★", "★", "★", "★", "";
"Legendary", "★", "★", "★", "★", "★"},
{2, 3, 4, 5, 6}, 0)}, {2, 3, 4, 5, 6}, 0)))
или с оригинальными звездами:
=ARRAYFORMULA(IMAGE(SUBSTITUTE(IFERROR(VLOOKUP(B4:B13&C4:C13, {
IMPORTXML($A1, "//table[3]/tbody//span/img[1]/@title/preceding::td[@class='ItemRight'][1]")&
IMPORTXML($A1, "//table[3]/tbody//span/img[1]/@title/preceding::a[1]"),
VLOOKUP(IMPORTXML($A1, "//table[3]/tbody//span/img[1]/@title"),
{"Common", "★", "", "", "", "";
"Uncommon", "★", "★", "", "", "";
"Rare", "★", "★", "★", "", "";
"Super Rare", "★", "★", "★", "★", "";
"Legendary", "★", "★", "★", "★", "★"},
{2, 3, 4, 5, 6}, 0)}, {2, 3, 4, 5, 6}, 0)), "★",
"https://stt.wiki/w/images/thumb/b/b5/StarItem.png/15px-StarItem.png"), 3))
оригинал: