![]() |
![]() |
|
|||||||
| 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: Apr 2002
Location: ENGLAND
Posts: 62
|
Please help.
Below is a very simplified version of my problem. Table 1. Product Type Location Price A UK 10 A USA 5 B Eur 10 A UK 5 C Eur 1 C USA 2 The results I want, need to display as below. Product Type Location Sum Price A UK 15 A USA 5 A Eur 0 B UK 0 B USA 0 B Eur 10 C UK 0 C USA 2 C Eur 1 I have been playing around with DSUMS but was wondering if there was any other way. The real data will be in excess of 700 items Thanks Giles |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Apr 2002
Location: ENGLAND
Posts: 62
|
hmmmm... The formatting didn't work out too well on the above message. Just to clarify..
Basically there are three columns. 1) Product Type (A,B & C) 2) Location (UK, USA & Eur) 3) Price |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
{"Product Type","Location","Price"; "A","UK",10; "A","USA",5; "B","Eur",10; "A","UK",5; "C","Eur",1; "C","USA",2} Activate A2. Activate Data|Filter|Advanced Filter. Check Copy to another location. Enter $A$1:$B$7 for List range. Enter $F$1 for Copy to. Check Unique records only. Activate OK. Notice that column C is excluded from the List range. In H1 enter: Sum Price In H2 enter and copy down: =SUMPRODUCT(($A$2:$A$7=F2)*($B$2:$B$7=G2),$C$2:$C$7) |
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Apr 2002
Location: ENGLAND
Posts: 62
|
Thanks for sorting this out for me, I have never really looked in the advanced filter option.
Thanks again, Giles. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|