Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Weird CountIf request

I have a long list of items with amounts sold and unit prices. I want to add
up anything that is the same item and price.

Example:
Qty Item: Price
1 TC001 $23
15 TC001 $20
3 TC001 $23
2 TC002 $44
2 TC003 $231
2 TC001 $23
1 TC003 $231
6 TC002 $40

Should return something like

Qty Item Price Total
6 TC001 $23 $138
15 TC001 $20 $300
2 TC002 $44 $88
6 TC002 $40 $240
3 TC003 $231 $693

I will have many different items and different prices.

TIA!

Rich
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Weird CountIf request

I would use a pivot table. Info available he
http://www.cpearson.com/excel/pivots.htm

Dave
--
Brevity is the soul of wit.


"Rich" wrote:

I have a long list of items with amounts sold and unit prices. I want to add
up anything that is the same item and price.

Example:
Qty Item: Price
1 TC001 $23
15 TC001 $20
3 TC001 $23
2 TC002 $44
2 TC003 $231
2 TC001 $23
1 TC003 $231
6 TC002 $40

Should return something like

Qty Item Price Total
6 TC001 $23 $138
15 TC001 $20 $300
2 TC002 $44 $88
6 TC002 $40 $240
3 TC003 $231 $693

I will have many different items and different prices.

TIA!

Rich

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Weird CountIf request

Hmmm.... Looks confusing. I'll give it a go.

So it will output a table for me? Like this?

Qty Item Price Total
6 TC001 $23 $138
15 TC001 $20 $300
2 TC002 $44 $88
6 TC002 $40 $240
3 TC003 $231 $693


"Dave F" wrote:

I would use a pivot table. Info available he
http://www.cpearson.com/excel/pivots.htm

Dave
--
Brevity is the soul of wit.


"Rich" wrote:

I have a long list of items with amounts sold and unit prices. I want to add
up anything that is the same item and price.

Example:
Qty Item: Price
1 TC001 $23
15 TC001 $20
3 TC001 $23
2 TC002 $44
2 TC003 $231
2 TC001 $23
1 TC003 $231
6 TC002 $40

Should return something like

Qty Item Price Total
6 TC001 $23 $138
15 TC001 $20 $300
2 TC002 $44 $88
6 TC002 $40 $240
3 TC003 $231 $693

I will have many different items and different prices.

TIA!

Rich

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Weird CountIf request

Yes pivot tables can be formatted in that manner. You'll find they're a
fairly powerful tool for summarizing a lot of data quickly.

Dave
--
Brevity is the soul of wit.


"Rich" wrote:

Hmmm.... Looks confusing. I'll give it a go.

So it will output a table for me? Like this?

Qty Item Price Total
6 TC001 $23 $138
15 TC001 $20 $300
2 TC002 $44 $88
6 TC002 $40 $240
3 TC003 $231 $693


"Dave F" wrote:

I would use a pivot table. Info available he
http://www.cpearson.com/excel/pivots.htm

Dave
--
Brevity is the soul of wit.


"Rich" wrote:

I have a long list of items with amounts sold and unit prices. I want to add
up anything that is the same item and price.

Example:
Qty Item: Price
1 TC001 $23
15 TC001 $20
3 TC001 $23
2 TC002 $44
2 TC003 $231
2 TC001 $23
1 TC003 $231
6 TC002 $40

Should return something like

Qty Item Price Total
6 TC001 $23 $138
15 TC001 $20 $300
2 TC002 $44 $88
6 TC002 $40 $240
3 TC003 $231 $693

I will have many different items and different prices.

TIA!

Rich

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Weird CountIf request

Hi Rich

In addition to what DaveF has said, you would need to add a calculated
field to the PT to generate exactly what you want.
Mark your block of dataDataPivot TablesNextLayout
Drag Item to the Row area, drag Qty to the Row area below Item
Drag Price to the Data area, then double click on the field and choose
Sumclick OKFinish
On the new tab with the PT, from the PT toolbar, use the dropdown and
select FormulasCalculated field
In the Name box Type Value and in the Formula box type = Qty * PriceOK
Now on the PY, drag the Data button across to the word Total, and you
will have Price and Value side by side.

If there are subtotals appearing and you don't want them, then double
click the field heading and choose SubtotalsNone

For more information on how to set up and use PT's take a look at the
following sites
http://peltiertech.com/Excel/Pivots/pivotstart.htm
http://www.contextures.com/xlPivot02.html

http://www.datapigtechnologies.com/f...es/pivot1.html

http://www.edferrero.com/Tutorials.aspx

--
Regards

Roger Govier


"Rich" wrote in message
...
Hmmm.... Looks confusing. I'll give it a go.

So it will output a table for me? Like this?

Qty Item Price Total
6 TC001 $23 $138
15 TC001 $20 $300
2 TC002 $44 $88
6 TC002 $40 $240
3 TC003 $231 $693


"Dave F" wrote:

I would use a pivot table. Info available he
http://www.cpearson.com/excel/pivots.htm

Dave
--
Brevity is the soul of wit.


"Rich" wrote:

I have a long list of items with amounts sold and unit prices. I
want to add
up anything that is the same item and price.

Example:
Qty Item: Price
1 TC001 $23
15 TC001 $20
3 TC001 $23
2 TC002 $44
2 TC003 $231
2 TC001 $23
1 TC003 $231
6 TC002 $40

Should return something like

Qty Item Price Total
6 TC001 $23 $138
15 TC001 $20 $300
2 TC002 $44 $88
6 TC002 $40 $240
3 TC003 $231 $693

I will have many different items and different prices.

TIA!

Rich





Reply
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
sumproduct vs. countif Coal Miner Excel Discussion (Misc queries) 1 June 15th 06 09:34 PM
Countif Formula /Sort Bug??? orcfodder Excel Discussion (Misc queries) 2 January 12th 06 10:04 AM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
How to Create an Excel Macro to send a meeting request. DM HD Excel Discussion (Misc queries) 2 February 28th 05 02:39 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM


All times are GMT +1. The time now is 02:14 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"