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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
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,215,091
Messages
6,123,062
Members
449,089
Latest member
ikke

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