+ Reply to Thread
Results 1 to 4 of 4

help counting items unique to a day/customer combination

  1. #1
    Registered User
    Join Date
    08-19-2009
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    7

    help counting items unique to a day/customer combination

    Help please.
    I need to identify the number of occasions on which a product type is bought by a customer in isolation from other product types. I have attached a sample to illustrate. The actual data is more complex and is actually medical data concerning issue of oral or IV drugs. There are many thousands of records.

    To clarify, in the example, there was only one occasion when Bread was bought on its own by a particular customer on a particular day. The way the data is presented, 'Bread' could be listed before 'Milk' or, as with 'Steve' on the 2/4, it could be in the middle of a series of 'Milk' purchases.

    I can sort by date/name/type, but I cant work out a formula to resolve the count.

    Thanks in advance for any help.
    Attached Files Attached Files
    Last edited by bigalm; 02-03-2010 at 07:23 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: help counting items unique to a day/customer combination

    Hmm... I suspect there's no really nice efficient way of doing this using formulae, one approach might be to use some "helpers" to ease the expensive calc burden... eg:

    Please Login or Register  to view this content.

    If then say B19 contains Milk and B20 Bread then:

    Please Login or Register  to view this content.

    would return 3 & 1 ... if you changed C3 to say Milk from Bread the result for C19 would become 4

    Is that something you can work with ?

  3. #3
    Registered User
    Join Date
    08-19-2009
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: help counting items unique to a day/customer combination

    Thanks for your quick reply. I'll take a look at that and let you know.

  4. #4
    Registered User
    Join Date
    08-19-2009
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: help counting items unique to a day/customer combination

    Brilliant!! That sorts it! Who needs elegance anyway.

    Thanks very much, saves me a couple of hours trying to count via fast scroll!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1