LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default Comparing data columns

You could add a 4th column that indicates the number of companies from which
the client has made purchases. Let's say you use column D for that.

Assuming headers in row 1, data in rows 2:100, in D2 put this formula and copy
down through D100:


=IF(SUMPRODUCT(--($A$2:$A$100=A2),--($B$2:$B$100=B2))=COUNTIF($A$2:$A$100,$A2),1,2)

Then add that field to the Pivot Table (maybe as a page field?) and display
only the rows where the value is 2.


On 26 Jan 2005 07:33:09 -0800, (Gavim Francis) wrote:

Hi, I've just about reached the limit of my knowledge on this query
and I'm hoping someone can help me on it.
In column A I have a list of individual client sales e.g -

client aardvark
client aardvark
client bear
client cat
client cat
client cat
client camel
client camel

Column B lists the name of the company that sold the product to the
clients in column A. Column B will only list 1 of 2 companies. Both
companies could have sold to the same client but not always.

Column C shows the sale amount.

I've created a Pivot table which lists the sum total prices of the
sales to the clients in Column A by the companies in Column B. This
is fine but I'd like to compare the total prices when Company X and
Company Y have sold to Client Bear for example. This can be shown in
the Pivot table but it also lists when only Company X (not company Y)
has sold to client Camel.

So basically I'd like some way to produce a total of all sales by
Company X when they have sold to the same client as Company Y. I'm
thinking that Vlookup is needed but I'm really not sure where to go.

Cheers for any help.


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparing columns of data Hankjam Excel Discussion (Misc queries) 2 April 23rd 07 09:26 PM
Comparing two columns of data JohnV Excel Discussion (Misc queries) 1 January 26th 07 04:00 PM
Comparing 2 columns of data adrianh33 New Users to Excel 1 April 5th 06 06:19 PM
Comparing Data in 2 columns suzb Excel Worksheet Functions 2 January 6th 05 02:39 AM
Comparing Data in two columns Marianne Excel Worksheet Functions 3 November 5th 04 10:26 PM


All times are GMT +1. The time now is 06:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"