Hello all
Further to my recent question regarding a dymamic list of worksheet names (thanks Variatus for your answers), can someone please now help with how to make a macro output the data as a table.
I have a monthly timesheet workbook into which a sheet is added for each day of the month that is actually worked. as can be seen in the attached sample template, each 'day' worksheet contains rows equal to 15min increments, and columns for time, task undertaken, the contract reference the task related to and notes. Cell A1 on each sheet uses a COUNTA formula to provide the total numer of lines that have actuially been populated for that day and also include a macro to rename the sheet as the date is inputted into cell D1.
On the summary sheet, the main table lists all the current contracts that could be worked on, along with their reference numbers and a SUMPRODUCT(COUNTIF(INDIRECT formula is used to extract the total number of 15min slots have been spent on each contract during the month. Column A contains a dynamic list of worksheet names for this formula to look at but this is where i get stuck as it needs to look at the exact list and errors if asked to include blank rows. I did have the sheet names in a table format which worked fine but then this has to be updated manually.
Can anyone help with how to get the total number of 15min increments spent on each contract number when the number of sheets in the workbook is dynamic?
I won't be upset and don't mind at all if someone wants to start again and completely remake the whole workbook :)