Unique values in a list

Mudface

MrExcel MVP
Joined
Feb 18, 2002
Messages
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.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
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.
 
Upvote 0

Forum statistics

Threads
1,213,520
Messages
6,114,101
Members
448,548
Latest member
harryls

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top