Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jon Jon is offline
external usenet poster
 
Posts: 183
Default how to count cell based on 2 Criteria

Greeting,

I have two columns, E&D. E has a material number and D has the size. There
is more than one size for one material. What I want to do is count the number
of size base one size and material. For example:
Material# size
1 1
2 2
2 1
1 3
2 1
3 4


Summary:
Material # size count
1 1 1
2 1 2

Thanks




  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default how to count cell based on 2 Criteria

A pivot table is quite ideal, gives you the full summary
in a matter of seconds with a few clicks, drags n drops

Select any cell in your table, click Data Pivot table
Click Next Next
In step 3 of the wiz., click Layout, then:
Drag n drop Material# into ROW area
Drag n drop Size into COLUMN area
Drag n drop Size into DATA area
(it'll appear as Count)
Click OK Finish. That's it

Hop over to the pivot sheet (just to the left)
where you'd find the full summary table that's desired:

Unique Material# items listed down the left col,
Unique Size items listed across the row,
and the respective counts of the sizes for each Material-Size combination at
the intersections
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:363 Subscribers:64
xdemechanik
---
"Jon" wrote:
I have two columns, E&D. E has a material number and D has the size. There
is more than one size for one material. What I want to do is count the number
of size base one size and material. For example:
Material# size
1 1
2 2
2 1
1 3
2 1
3 4


Summary:
Material # size count
1 1 1
2 1 2

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
Count with multiple criteria based on cell not blank? Twishlist Excel Worksheet Functions 7 January 13th 10 06:16 PM
COUNT based on 2 criteria [email protected] Excel Worksheet Functions 14 March 25th 08 12:40 PM
Count based on criteria ba374 Excel Discussion (Misc queries) 1 December 20th 07 11:19 PM
Using COUNTIF to count based on multiple cell criteria. Disdan Excel Worksheet Functions 5 November 30th 07 01:59 AM
Count or Sum based on more than 1 criteria Andrew C Excel Worksheet Functions 1 December 29th 05 09:46 PM


All times are GMT +1. The time now is 03:13 PM.

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

About Us

"It's about Microsoft Excel"