more progress on Excel prototype

Added in code to create intermediate tables