+ Reply to Thread
Results 1 to 5 of 5

10 most common values between two dates

  1. #1
    Forum Contributor
    Join Date
    12-23-2013
    Location
    Hungary
    MS-Off Ver
    Excel 2013
    Posts
    331

    10 most common values between two dates

    Hello,

    I would like to ask some help from you, I can find the 10 most common values in the whole date range, just I do not know how to do this between two unique dates.

    Please, could somebody tell me how should I do this?
    I attached the sample file.



    Thanks in advance the reply!

  2. #2
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: 10 most common values between two dates

    Please try this solution
    Attached Files Attached Files
    Please click 'Add reputation', if my answer helped you.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: 10 most common values between two dates

    You can do that in essentially the same way you were doing it, just adding the date conditions into the MODE function - in F6

    =MODE(IF(Date>=Startdate,IF(Date<=Enddate,Product)))

    confirmed with CTRL+SHIFT+ENTER

    and then in F7 copied down to F15

    =MODE(IF(COUNTIF(F$6:F6,Product)=0,IF(Date>=Startdate,IF(Date<=Enddate,Product*{1,1}))))

    also confirmed with CTRL+SHIFT+ENTER

    That will give you the products that appear within your specified date range in order of frequency, see attached
    Attached Files Attached Files
    Audere est facere

  4. #4
    Forum Contributor
    Join Date
    12-23-2013
    Location
    Hungary
    MS-Off Ver
    Excel 2013
    Posts
    331

    Re: 10 most common values between two dates

    Hello ramananhrm,

    This is what I wanted, thank you for your help.
    I would have one more question, I hope not a big problem.
    How should to do that I would like that the highest "Count" product would be in the first postion and so down the others?

  5. #5
    Forum Contributor
    Join Date
    12-23-2013
    Location
    Hungary
    MS-Off Ver
    Excel 2013
    Posts
    331

    Re: 10 most common values between two dates

    Hello daddylonglegs,

    Your solution solved my sorting problem also, thank you!

+ 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] Placing dates into multiple columns based on common ID
    By theletterh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-29-2014, 11:41 AM
  2. How to find common values among 3 columns?
    By tnorman20 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-14-2013, 03:12 PM
  3. Most common state + dates
    By Verve19 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 08-22-2013, 01:27 PM
  4. Sorting Columns With Common Values
    By think_lenovo in forum Excel General
    Replies: 2
    Last Post: 11-25-2009, 07:07 PM
  5. Common Values
    By John Dow in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-05-2007, 02:03 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