Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I have tried different methods to achieve this (pivot tables etc) but I don't get the required result in the right format. I have a workbook with the first Sheet named "Totals". The rest of the worksheets "Sheet2, Sheet3 ..etc" have a description in "Column A" and a quantity in "Column B" Example:- "Sheet 2" Col A ----- Col B ITEM01 ----- 2 ITEM03 ----- 1 ITEM01 ----- 2 ITEM02 ----- 5 ITEM06 ----- 0 ITEM05 ----- 10 "Sheet 3" ITEM01 ----- 1 ITEM02 ----- 1 ITEM05 ----- 2 ITEM04 ----- 2 I require a macro to compare the descriptions and add the quantities of each description and show the summary on the totals page. The following needs to be taken into account. a) New worksheets might be added so the macro wants to look in every worksheet apart from the first one "Totals" b) If the description has a quantity of 0 it wants to be ignored and not added to the Totals page. When running the macro I would like to see the following results on the Totals page. "Totals" ITEM01 ----- 5 ITEM02 ----- 6 ITEM03 ----- 1 ITEM04 ----- 2 ITEM05 ----- 12 Like I mentioned I have used pivot tables but the format in inappropriate and new worksheets might be added, also I want this user friendly. Has anyone done anything like this before, this macro would be very useful to much appreciated. Thanks John |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Subtotals problem: Excel 2003 (not, AFAIK, the nested subtotals bug) | Excel Discussion (Misc queries) | |||
Original subtotals should not be within nested subtotals in excel | Excel Worksheet Functions | |||
How to calculate percentage of values of subtotals | Excel Discussion (Misc queries) | |||
Program to calculate how much I can afford to spend? | Excel Discussion (Misc queries) | |||
Problem with nested subtotals, placing secondary subtotals BELOW . | Excel Discussion (Misc queries) |