Basta usare la funzione =RESTO(A1;A2)