+ Reply to Thread
Results 1 to 5 of 5

Return top 10 dates

  1. #1
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Berlin/Sweden
    MS-Off Ver
    Excel 2010
    Posts
    124

    Return top 10 dates

    I have one range with dates and I have one range with values - in the third column I need to return the top ten dates according to the values. I have attached a worksheet to illustrate this.

    So a formula that searches the entire range of values and ranks them and then returns the date.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,689

    Re: Return top 10 dates

    this would be one way...


    EDIT: BTW, your results only match mine if you reverse the order in the rank so instead of this =RANK(C3,$C$3:$C$68,0)+COUNTIF($C$3:C3,C3)-1
    make it this... =RANK(C3,$C$3:$C$68,1)+COUNTIF($C$3:C3,C3)-1
    Attached Files Attached Files
    Last edited by Sam Capricci; 01-06-2014 at 09:17 AM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Return top 10 dates

    hi Jonathan. it looks like the smallest value comes up first? 29 Nov 13 had 1 in column C. so if that's what you want & the values don't repeat, try:
    =INDEX($B$3:$B$68,MATCH(SMALL($C$3:$C$68,ROWS(D$3:D3)),$C$3:$C$68,0))

    if the values do repeat, then try this array formula:
    =INDEX($B$3:$B$68,MATCH(SMALL($C$3:$C$68+ROW($C$3:$C$68)/1000,ROWS(D$3:D3)),$C$3:$C$68+ROW($C$3:$C$68)/1000,0))
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    if you want the biggest number, then change SMALL to LARGE

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,654

    Re: Return top 10 dates

    =INDEX($B$3:$B$68,MATCH(SMALL($C$3:$C$68,ROW()-2),$C$3:$C$68,0))

    Or try this formula in cell D3

    benishiryo was a little faster
    Last edited by popipipo; 01-06-2014 at 09:22 AM.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Return top 10 dates

    You may also try this array formula ( confirm with Ctrl+Shift+Enter )

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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. Using "match" with dates - dates entered with vba return error
    By Islwyn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-30-2012, 09:47 AM
  2. Excel 2007 : Look up dates & return value
    By stevetothink in forum Excel General
    Replies: 1
    Last Post: 09-22-2011, 01:27 PM
  3. Replies: 5
    Last Post: 06-30-2011, 03:26 PM
  4. [SOLVED] Return a value between 2 dates within a range of dates
    By tsmor in forum Excel General
    Replies: 1
    Last Post: 03-31-2011, 06:45 PM
  5. Replies: 7
    Last Post: 01-16-2009, 05:04 AM

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