Spreadsheets are among the most commonly used programming systems in the world. Existing spreadsheets are rife with errors, some of which have serious impacts. We are working on algorithms and strategies that automatically infer the structure of spreadsheets. This information can be used to develop systems that enable end users to develop safer spreadsheets.