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.
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.
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.
Great, thanks, that's been bugging me all day.
Like this thread? Share it with others