Import the CSV Extract the unique users and dates using the database functions Calculate the lowest and highest dates Paste the users to the destination (leftmost output) column Assign all dates from lowest to highest to the destination (uppermost output) row Enter the DSUM formula in the top left output cell Create a data table including an extra row and column Label the extra row & column "Total"