![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: North Wales Coast, UK
Posts: 95
|
Hello all,
I am looking for a few pointers as to the best way of dealing with this situation. Say: Col.A, Col.B, Col.C Material, Qty, Rate Cement, 1, 3.00 Sand, 5, 2.50 Cement, 3, 2.50 Cement, 3, 3.00 I would like to total all the Cement, Sand and whatever else may appear but I wish them to be totalled also within discreet Rates. ie: Cement, 4, 3.00 Cement, 3, 2.50 Sand, 5, 2.50 I am not aware of which headings will appear nor rates and quantities. I have contemplated Data, Consolidate - SubTotals and Pivot Tables ... any other suggestions? These 'summary results' are then to be copied elsewhere on the worksheet. I trust their is someone out there to help me in the right direction. Cheers S. Sorry the Columns looked really pretty when I typed it out .. honest! [ This Message was edited by: Sam40mUK on 2002-04-03 10:28 ] |
|
|
|
|
|
#2 | |||||||||||||||
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
How 'bout using a PivotTable with 'Material' and 'Rate' in the ROW area and 'Sum of Qty' in the DATA area.
*
* [ This Message was edited by: Mark W. on 2002-04-03 10:38 ] |
|||||||||||||||
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: North Wales Coast, UK
Posts: 95
|
Hello Mark,
Thanks for the swift response. I have tried your suggestion and it seems to work a treat. For future refernce is a PT the only way of going about this kind of thing? Cheers again. S. [ This Message was edited by: Sam40mUK on 2002-04-03 11:00 ] |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Location: Calgary, Alberta Canada
Posts: 2,065
|
Another alternative is SumProduct I used range names but that is not necesary. You can extend the totals if you want with =Qty*Rate Grand total is =SUMPRODUCT((Qty*Rate)) With categories cement and sand in A9 and A10, the following gives total by category =SUMPRODUCT((Material=A9)*(Qty)*(Rate)) =SUMPRODUCT((Material=A10)*(Qty)*(Rate)) |
|
|
|
|
|
#5 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
[ This Message was edited by: Mark W. on 2002-04-03 12:22 ] |
|
|
|
|
|
|
#6 | ||
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
Quote:
|
||
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Mar 2002
Location: North Wales Coast, UK
Posts: 95
|
Thanx for all your replies I see the way a little clearer now
Cheers S. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|