+ Reply to Thread
Results 1 to 14 of 14

Finding unique values for a date range

  1. #1
    Registered User
    Join Date
    03-12-2015
    Location
    marlow, uk
    MS-Off Ver
    Office for Mac 2011
    Posts
    17

    Finding unique values for a date range

    I need to find unique users from a particular location that appear between two dates.

    I can find all entries (in column P of the My Marketing sheet) within the date range (defined by E53 and F53) and within a particular country with:
    =IFERROR(COUNTIFS('My Marketing'!P:P,">="&E53,'My Marketing'!P:P,"<"&F53,'My Marketing'!E:E,"Australia"),0)

    And I can find all unique entries in the column D with:
    =SUMPRODUCT(('My Marketing'!D:D<>"")/COUNTIF('My Marketing'!D:D,'My Marketing'!D:D&""))

    But no amount of experimenting or googling has lead me to the solution that allows me to join these together.

    How do I adjust the first function to limit the results to unique ones?

    Thanks for you help.
    Gav
    Last edited by designergav; 05-01-2015 at 07:08 AM.

  2. #2
    Forum Contributor
    Join Date
    03-11-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    379

    Re: Finding unique values for a date range

    Hi Gav,

    Is it a question or solution?
    And I can find all unique entries in the column D with:
    =SUMPRODUCT(('My Marketing'!D:D<>"")/COUNTIF('My Marketing'!D:D,'My Marketing'!D:D&""))
    Regards,
    AM

  3. #3
    Registered User
    Join Date
    03-12-2015
    Location
    marlow, uk
    MS-Off Ver
    Office for Mac 2011
    Posts
    17

    Re: Finding unique values for a date range

    It's a question. The first bit explains what I have and the last sentence is the question.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,052

    Re: Finding unique values for a date range

    Please attach a sample workbook. Make sure there is enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary. Remember to remove ALL confidential information first!!!

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    03-12-2015
    Location
    marlow, uk
    MS-Off Ver
    Office for Mac 2011
    Posts
    17

    Re: Finding unique values for a date range

    Here's an example.

    G2/3 and H2/3 are where I need to exclude duplicates from the results.
    Attached Files Attached Files
    Last edited by designergav; 05-01-2015 at 07:42 AM.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,052

    Re: Finding unique values for a date range

    Hi. One question. When you say start date and end date; do you mean INCLUDING both dates? see attached, where I have assumed that you meant INCLUDING both dates
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-12-2015
    Location
    marlow, uk
    MS-Off Ver
    Office for Mac 2011
    Posts
    17

    Re: Finding unique values for a date range

    Thanks Glenn,
    It would include both dates yes. I see the mistake I was making was to not wrap all the conditions within the FREQUENCY function and not using ROW as a MATCH condition.

    Perfect.
    Thanks

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,052

    Re: Finding unique values for a date range

    Glad to have helped! If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

  9. #9
    Registered User
    Join Date
    03-12-2015
    Location
    marlow, uk
    MS-Off Ver
    Office for Mac 2011
    Posts
    17

    Re: Finding unique values for a date range

    So that works in the example but returns zero in my workbook and I can't figure out why.
    I've attached a more complete example that mirrors mine.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    03-12-2015
    Location
    marlow, uk
    MS-Off Ver
    Office for Mac 2011
    Posts
    17

    Re: Finding unique values for a date range

    So that works in the example but returns zero in my workbook and I can't figure out why.
    I've attached a more complete example that mirrors mine.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    03-12-2015
    Location
    marlow, uk
    MS-Off Ver
    Office for Mac 2011
    Posts
    17

    Re: Finding unique values for a date range

    So I still haven't been able to solve this. Can anyone help?

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,052

    Re: Finding unique values for a date range

    How's this...
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    03-12-2015
    Location
    marlow, uk
    MS-Off Ver
    Office for Mac 2011
    Posts
    17

    Re: Finding unique values for a date range

    Perfect. I see you used on IF with * rather than nested IF statements.

    Thanks so much for your help.

    Gav

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,052

    Re: Finding unique values for a date range

    From memory, the real problem was that I hadn't made some of the row references absolute in V1. Sorry!!

    Anyhow, I'm glad to have helped! If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

+ 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] Finding Unique Values in a Range
    By phelbin in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-02-2015, 07:30 PM
  2. Finding Unique Values in Named Range
    By jonboy6257 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-02-2014, 04:58 PM
  3. Unique Values by month in date range
    By kerrynyc in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-25-2013, 04:53 PM
  4. Count Unique Values within date range
    By onthepitch in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-20-2012, 02:29 PM
  5. Finding unique values from a filtered range
    By Rich in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-11-2006, 11:00 AM

Tags for this Thread

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