SQL and Excel mutual guidance