You can treat a spreadsheet like it was a table in a database:
Excel connection strings - ConnectionStrings.com[
^]
There are many other sources for connection strings.
Look up C#'s ODBC and ADO connection objects.
One hint I can supply to you: this works much better if the data in the spreadsheet is laid out nicely (like a table in a database) and not as though columns weren't typed.