In Excel spreadsheet, I have a table with columns: "Epic" and "Stories" and "Tasks". There is another column to enter hours for each task:
| Code | Epic | Stories | Task | Hour |
| 1 | E1 | | | |
| 1.1 | | St1 | | |
| 1.1.1| | | Ts1 |10 |
| 1.1.2| | | Ts2 |20 |
| 1.2 | | St2 | | |
| 1.2.1| | | Ts21 |5 |
| 1.2.3| | | Ts22 |2 |
| 2 | E2 | | | |
| 2.1 | | | | |
Now I want to create a pivot table to show the sum for each epic. For example:
| Code | Epic | Hours |
| 1 | E1 | 37 |
| 2 | E2 | xyz |
|
How do I achieve this?
There are many of ways of achieving the desired outputs these days, if you are using
Modern Versionsof Excel, one such way is usingPower Queryor Newer Excel Functions, which makes it relatively easy.• Using
GROUPBY()if applicable -> works withMS365 ExclusivelyBeta Version• Formula used in cell G1
Or, If one don't have access to
GROUPBY()while writing the formula then needs to enable theOffice Insiders, if you are reluctant to enable then could try the following as well:• Or Using
POWER QUERY, available inWindows Excel 2010+andExcel 365 (Windows)--> It is one time approach, hence you dont have to increase range or ranges, only when you add new data to the original source have to refresh the imported table, and it gets updated within few.To use Power Query follow the steps:
Table1.