+ Reply to Thread
Results 1 to 12 of 12

Top 7 Date from a range

  1. #1
    Forum Contributor
    Join Date
    03-03-2004
    Location
    mumbai
    MS-Off Ver
    2003,2007
    Posts
    151

    Top 7 Date from a range

    Hi,
    Does anyone have an idea about how to find top 7 dates from a range?
    For example
    09/01/2014
    09/02/2014
    09/03/2014
    09/04/2014
    09/05/2014
    09/06/2014
    09/07/2014
    09/08/2014
    09/09/2014
    09/10/2014
    I would like to have a message as "Reporting Period" against 09/04/2014 through 09/10/2014.
    thank you

  2. #2
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Top 7 Date from a range

    Liek this

    =LARGE($A$2:$A$11,ROW(A1))
    Excel Guru in the making

    <----------If the question has been answered to your satisfication please click the Add Repuation star to the left

  3. #3
    Forum Contributor
    Join Date
    03-03-2004
    Location
    mumbai
    MS-Off Ver
    2003,2007
    Posts
    151

    Re: Top 7 Date from a range

    Thanks TheCman81 but it is not providing a desired result.
    It is populating value against all the dates. I would like to have value against top 7 dates from a range.

  4. #4
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Top 7 Date from a range

    I think you need to elaborate more, can you upload some sample data with expected results

    Thanks

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

    Re: Top 7 Date from a range

    in addition to the solution of TheCman81, use index/match to get the responding data next to the rank.

    Or use a pivot table for that kind of work.
    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.

  6. #6
    Forum Contributor
    Join Date
    03-03-2004
    Location
    mumbai
    MS-Off Ver
    2003,2007
    Posts
    151

    Re: Top 7 Date from a range

    In column A i have a date and in column B i would like to see "Reporting Period" statement against the top 7 dates.
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Top 7 Date from a range

    Something like this should do the trick

    Top7 Dates.xlsx

  8. #8
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Top 7 Date from a range

    Just realised you have duplicate dates, replace this with the following array formula. Entered with Ctrl Shift Enter

    =IF(ISERROR(MATCH(A2,LARGE(IF(FREQUENCY(MATCH($A$2:$A$21,$A$2:$A$21,0),ROW($A$2:$A$21)-ROW($A$2)+1),$A$2:$A$21),{1,2,3,4,5,6,7}),0)),"","Reporting Period")

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Top 7 Date from a range

    This seems to work with your example.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  10. #10
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,720

    Re: Top 7 Date from a range

    Quote Originally Posted by newdoverman View Post
    This seems to work with your example.
    I think that the 18th and 19th should be included in the reporting period, shouldn't they? Cman81's suggestion does that, or you could use this shorter version

    =IF(SUM(IF(FREQUENCY(IF(A$1:A$20>A1,A$1:A$20),A$1:A$20),1))<7,"Reporting Period","")

    confirm with CTRL+SHIFT+ENTER
    Audere est facere

  11. #11
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Top 7 Date from a range

    I had a different interpretation of the problem.

  12. #12
    Forum Contributor
    Join Date
    03-03-2004
    Location
    mumbai
    MS-Off Ver
    2003,2007
    Posts
    151

    Re: Top 7 Date from a range

    Thank you everyone for your help.

+ 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. Highlight a date range if today's date falls within that range
    By sdarnell in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-01-2014, 10:03 AM
  2. Search date range +/- 7 days and return date that falls within range
    By tlafferty in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-13-2013, 03:26 PM
  3. Replies: 9
    Last Post: 06-21-2012, 03:46 PM
  4. [SOLVED] Calculate how many days in one date range fall into a second date range
    By globalpontoon in forum Excel General
    Replies: 2
    Last Post: 05-08-2012, 03:02 PM
  5. Replies: 4
    Last Post: 03-18-2011, 07:02 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