Immagino che il tuo problema reale sia più complesso. Motivo in più per evitare excel e ricorrere a un database. Se hai problemi posta pure.