Poczytaj instrukcje a szczegolnie zagłebij się w Custom Function...