Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Unique values in a list

  1. #1
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Sunny, spring-like Hull
    Posts
    3,339
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #3
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Sunny, spring-like Hull
    Posts
    3,339
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Great, thanks, that's been bugging me all day .

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •