+ Reply to Thread
Results 1 to 9 of 9

Need help with counting unique values

  1. #1
    Registered User
    Join Date
    12-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    8

    Need help with counting unique values

    I am using Excel 2007

    Hi everyone,

    So here is my problem I have 50 000+ rows that covers fiscal years from 2006 to 2014 and I want to calculate how many unique clients are there per asset type per fiscal year. In addition, the results table needs to adjust to filters i would use on the raw data..

    As:

    2007 2008 2008
    Commodity 45
    FX
    Other
    other

    Here is a sample file: SampleData.xls
    Last edited by azogz; 12-09-2013 at 05:01 PM.

  2. #2
    Registered User
    Join Date
    12-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Need help with counting unique values

    I tried using PivotTable but it cannot differentiate unique values..

  3. #3
    Registered User
    Join Date
    12-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Need help with counting unique values

    Anyone would have a suggestion on how to approach this problem?

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,024

    Re: Need help with counting unique values

    try with helper column and then use PT:
    Attached Files Attached Files
    Never use Merged Cells in Excel

  5. #5
    Registered User
    Join Date
    12-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Need help with counting unique values

    Thanks that worked perfectly! Now I'm struggling over how to find cross-sell client. I have to identify the number of clients that does business with >=2 asset type but still having the fiscal year constraint.

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,024

    Re: Need help with counting unique values

    check does this helps:
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Need help with counting unique values

    No it doesn't work. It gives me a number that is way too high. To recap, I want to count the number of unique clients that does business with more >=2 asset class. So i would like count only clients that has 2 different asset class or more in the same fiscal year.

  8. #8
    Registered User
    Join Date
    12-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Need help with counting unique values

    Ok so In semi-english its:

    if( count of unique desk for the client for the fiscal year> 1,1,0)
    Last edited by azogz; 12-11-2013 at 02:50 PM.

  9. #9
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,024

    Re: Need help with counting unique values

    This is what table return:

    Please Login or Register  to view this content.
    All assets are same in example.
    So, there are two Fiscal Years:
    2013 returns 1 because there is Client A that has 2 trades for same asset (B has one so it's 0).
    2014 returns 3 because there are clients A, B and C with 2 trades each. If A had 10 more trades (for same asset), result would still be 3 because it count how many clients achieve 2 or more trades (and not how many trades there are).

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] counting unique values in col A against unique value in column B
    By greyscale in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-08-2013, 08:43 AM
  2. [SOLVED] Counting only unique values
    By boll55 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-14-2012, 01:23 PM
  3. Replies: 2
    Last Post: 06-06-2012, 01:44 PM
  4. Replies: 0
    Last Post: 03-08-2012, 12:18 PM
  5. Counting Unique Values
    By carl in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

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