I have a spreadsheet where column “H” has dates in format dd.mm.yyyy (examples 31.12.2017). The number of rows and the dates in column “H” varies each time I run the code.
I need a code that will look through all the dates in column “H” and summarize them for each month of a chosen year and generate a statistic in a new sheet. The statistic I want to generate will look something like this. Maybe the code can ask for the year via an input box when the code is started.
<tbody>
</tbody>
I need a code that will look through all the dates in column “H” and summarize them for each month of a chosen year and generate a statistic in a new sheet. The statistic I want to generate will look something like this. Maybe the code can ask for the year via an input box when the code is started.
Period | Quantity | Percentage |
Jan-17 | 11 | 1% |
Feb-17 | 26 | 2% |
Mar-17 | 30 | 2% |
Apr-17 | 11 | 1% |
May-17 | 42 | 3% |
Jun-17 | 32 | 2% |
Jul-17 | 165 | 13% |
Aug-17 | 178 | 14% |
Sep-17 | 0 | 0% |
Oct-17 | 0 | 0% |
Nov-17 | 0 | 0% |
Dec-17 | 0 | 0% |
Total | 1300 | 38% |
<tbody>
</tbody>
- Period; is each month of the year chosen.
- Quantity; is the amount of dates in each chosen month of chosen year.
- Total quantity; is the total number of dates in the entire table, not only the chosen year.
- Percentage is quantity of each month compared to total quantity in percent rounded up to a whole number.