+ Reply to Thread
Results 1 to 4 of 4

Count unique values between dates

  1. #1
    Registered User
    Join Date
    07-21-2015
    Location
    West Midlands
    MS-Off Ver
    2010
    Posts
    43

    Count unique values between dates

    Hi all,

    I have a data range that is around 350,000 rows and 52 columns, I am trying to count the number of unique values in a month but also excluding the previous months data if there is a duplicate in the previous month. Its hard to explain so below is a small example;

    column A is a name, column B is transaction type and C transaction date.

    So line 2 would show Adam Debit 01/01/2016
    line 3 would show Adam Debit 02/01/2016

    With those i only want to count them once, but if debit on line 3 was BACS, I want to count that as a unique, then when I get to Feb, I want to count the same spec, but exclude the Jan duplicates as well (so they only show as a new client in Jan).

    I have tried a countif(frequency array but due to the size of the file it wont work (or may be working but after an hour lunch of letting them calculate it still hadn't completed so was unreasonable), I also use Qlikview but am new to it so would prefer to use excel, if thats not possible please advise and I will focus on the SQL for Qlikview for this.

    Any help would be appreciated.

    Thanks
    Dustin

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count unique values between dates

    Have you tried pivottable ?
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    07-21-2015
    Location
    West Midlands
    MS-Off Ver
    2010
    Posts
    43

    Re: Count unique values between dates

    Hi,

    Yeah I am looking at that at the moment and trying to them show snapshots from the pivot in a dashboard I have. Its also proving quite a challenge to get what i want that way as it will show the lists in a slightly more compact format to the raw data, but then I will have to use the countif(frequency formula on that which again crashes the report (still 145k rows).

    Thanks for reply.
    Dustin

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Count unique values between dates

    I have moved this to the General forum
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Replies: 5
    Last Post: 03-27-2015, 08:07 AM
  2. [SOLVED] Extract unique values between two dates and count their frequency
    By Villalobos in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-10-2014, 10:01 AM
  3. [SOLVED] Count unique values in Column A, only if value in Column F falls between two dates
    By Sritcho in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-27-2014, 08:30 AM
  4. Formula to COUNT UNIQUE Values BETWEEN given dates
    By wantutri in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-09-2013, 12:09 PM
  5. [SOLVED] Count Unique Values of defined cell between Two Dates
    By nickmessick1 in forum Excel General
    Replies: 4
    Last Post: 07-26-2013, 11:48 AM
  6. Count unique values between two dates in two columns
    By hnantz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-09-2012, 05:57 PM
  7. Replies: 11
    Last Post: 11-05-2011, 12:34 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