Subtotals do indeed do calculations - (that is the purpose of them). But here they are only really used to properly group your data so that the sorting will work after you collapse the outline. If this is not just a one off operation, I would recommend filling in the blanks in your data so that you can sort/filter and otherwise report (e.g. pivot tables) much more easily.