Pivot Tables are designed to do just what you're looking for.
<Data><Pivot Table>
Use: Excel
Select your data, including headings from the Data sheet
Click the [Layout] button
PAGE: Drag the Location field here
ROW: Drag the Type field here
COLUMN: Drag the DATE field here
DATA: Drag the Total field here
-If it doesn't list as Sum of Total...dbl-click it and set it to Sum
Click [OK]
Select where you want the Pivot Table...and you're done!
That will list
-each Type down the left side
-each Date across the top
-and calculate the total for each intersection of those two.
The default Page setting is to display totals for ALL locations, but to see just one Location, click the dropdown and choose one.
To refresh the Pivot Table, just right click it and select Refresh Data
If the rows in the data range may vary, consider basing the Pivot Table on a Dynamic Range Name. For instructions, see Debra Dalgleish's website:
http://www.contextures.com/xlNames01.html#Dynamic
Using your data and that above method, here's a sample fo the values I received:
LOCATION LONDON
Sum of TOTAL
DATE
TYPE 9-Aug-07 10-Aug-07 11-Aug-07 12-Aug-07
A 31 34 18 20
B 21 31 23 25
C 63 73 51 46
D 23 19 17 18
E 1 3 1
Is that something you can work with?
Bookmarks