View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default add non-contiguent sums in one column to a Grand Total

Another option to try would be a pivot table ..
(takes only a few clicks, and drag & drops to get us there)

Assume source data is in Sheet1,
cols A and B, data from row2 down, eg:

Item Amt
Mat1 10
Mat2 10
Mat1 10
Mat2 10
Mat5 10
Mat6 10
Mat2 10
Mat3 10
Mat1 10
etc

Creating Pivot Table (steps in Excel 97):
Select any cell within the source table
Click Data PivotTable Report
Click Next Next

In step 3 of the wizard,
Drag & drop Item within the ROW area
Drag & drop Amt within the Data area
(it'll appear as Sum of Amt)
Click Finish

The pivot table will appear in a new sheet to the left,
yielding, for eg:

Sum of Amt
Item Total
Mat1 30
Mat2 30
Mat3 10
Mat5 10
Mat6 10
Grand Total 90

(Unique items will be listed under "Item"
with the corresponding totals next to it)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Ryan" wrote in message
...
I have a worksheet with 6 different items that are totaled approximately

140
times in separate cells in the same column. These sums for each individual
item need to be put into a Grand Total on another worksheet.
I have tried to write =sum( and then click on each individual cell to add
them up, but I get a message saying the formula is too long.
I'm thinking I need to use a filter function for this, but I can't seem to
find one that works.
I am very new to working with Excell and would appreciate any help I can

get.