1:
{=IFERROR (ÍNDICE (Sheet1! H$4: H$102, PEQUENO (SE (ValLookUp=Sheet1! D$4: D$102, FILEIRA (Sheet1! D$4: D$102) - FILEIRA (Sheet1! D$4) +1), FILEIRAS (B$45: B45))), "")}