![]() |
![]() |
|
|||||||
| 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 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
|
I have a list of products with analyses and batch nos (which may be entered more than once), from which I've derived a pivot table. I can get the total no of batches but I want to include in the PT the no of batches broken down by product, which I guess would be entered via a CSE formula. Sample data (and the result I would like): -
Batch No Product No of batches 1 A 1 1 A 0 2 B 1 1 A 0 etc. Thanks for any help. |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Suppose that your data, {"Batch No","Produce No of batches";1,"A";1,"A";2,"B";1,"A"}, is in cells A1:B5. Enter the formula, =(COUNTIF($B$2:B2,B2)=1)+0, into C2 and fill down to C5. Enter an appropriate field name in C1.
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
|
Great, thanks, that's been bugging me all day
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|