|
- Charts - Formula - Printing
|
Creating a database table from a summary tableMany users are familiar with Excel's pivot table feature, which creates a summary table from a database table. But what if you want to perform the opposite operation? This document describes how to create a database table from a simple two-variable summary table. The worksheet below demonstrates. Range A1:E13 contains the original summary table, and columns G:I shows a 48-row database table derived from the summary table.
How to do itThe solution to creating this "reverse pivot table" is to use a pivot table! The steps below are specific to the example data shown, so you'll need to modify them slightly to work with your data. Part 1: Creating a pivot table
Part 2: Finishing upAt this point, you will have a small pivot table that shows only the sum of all values:
A VBA Macro to do itIf you do this sort of thing on a regular basis, you may prefer to use a VBA macro. Just copy the VBA code to a VBA module. Then activate a cell in your summary table and execute the MakeDataBaseTable macro. AcknowledgementThanks to Joel Horowitz for suggesting this method, which is far easier than my original technique. |