+ Reply to Thread
Results 1 to 7 of 7

Count Unique Values Occuring Per Period

  1. #1
    Registered User
    Join Date
    05-03-2011
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    4

    Count Unique Values Occuring Per Period

    Hi,

    I've had a look for this but not quite found the solution that fits my problems

    I've got a data set that looks like the following:

    FY Period PO Number

    11/12 3 48001490
    11/12 3 48001495
    11/12 4 48001494
    11/12 4 48001494

    I want to be able to count the number of times each period that a PO Number is used. I imagine this will take the form of a SUMIF formula where IF(FY=11/12, IF(Period=4 etc. etc.

    Can anyone help?

    Thanks

    Peter
    Last edited by NBVC; 07-07-2011 at 02:09 PM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Count Unique Values Occuring Per Period

    Hi and welcome to the board

    A Pivot Table perhaps?

  3. #3
    Registered User
    Join Date
    05-03-2011
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Count Unique Values Occuring Per Period

    Hello and thanks for the swift response.

    I'll have a look at that. Can I nest a FREQUENCY function in an IF formula?

  4. #4
    Registered User
    Join Date
    05-03-2011
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Count Unique Values Occuring Per Period

    Just tried the Pivot Table idea and I can extract the values I need but if I change the field settings to count it doesn't count unique values.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Count Unique Values Occuring Per Period

    Assuming your data is in A2:C5

    And that you have a unique list of Period beginning in E2, then try in F2:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER not just ENTER and copy down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  6. #6
    Registered User
    Join Date
    05-03-2011
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Count Unique Values Occuring Per Period

    Thanks for the help. I get a bit lost in the FREQUENCY/MATCH/LEN functions so I've used a helper column which shows how many times each has been used and added a condition to my COUNTIF to only count the "1" values.

    Many thanks all.

  7. #7
    Registered User
    Join Date
    11-19-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Count Unique Values Occuring Per Period

    Hello,

    I did write this code automating the count of unique items within pivot tables.
    You could set up your pivot as desired and get the unique count updated.
    Juste a paste to do in VBA.

    http://lazyvba.blogspot.com/2010/11/...-to-count.html

    Let me know if it's working

    Lazyvba

+ 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