+ Reply to Thread
Results 1 to 7 of 7

Count to produce a list if dates.

  1. #1
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Count to produce a list if dates.

    I have been fighting this issue for a whie and decided to 'go to the matresses'.

    I am trying to create a list of dates in various tables but have run into an issue with my formula.

    As I add new dates into the table the formula will not properly update. I have been manually recopying the formula and at the same time trying to refine the formula. The formula in question is as follows and the you can see in the example how I am trying to use it.

    Please Login or Register  to view this content.

    Jim O
    Attached Files Attached Files
    Last edited by JO505; 05-09-2015 at 05:23 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Count to produce a list if dates.

    How about instead in L2

    =SMALL(Table1[Date], K2)

    ... and delete col D.

    Or simplify the formula in D3 to

    =N(D2) + (C3<>C2)

    ... change L2 to

    =INDEX(Table1[Date], MATCH(K2,Table1[Count]))
    Last edited by shg; 05-09-2015 at 01:57 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: Count to produce a list if dates.

    Their is no data in Cell K2. I can use the formula in place of an index, Match using column L as a reference, but I still need a list of numbers in column L.

    Jim O

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Count to produce a list if dates.

    Row\Col
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    1
    Example 1 Goal
    8
    Dates
    2
    Date Count
    1
    04/30/2015
    M2: =SMALL(Table1[Date], L2)
    3
    04/30/2015
    1
    D3: =N(D2) + (C3<>C2)
    2
    05/01/2015
    4
    05/01/2015
    2
    3
    05/01/2015
    5
    05/01/2015
    2
    4
    05/01/2015
    6
    05/01/2015
    2
    5
    05/02/2015
    7
    05/02/2015
    3
    6
    05/02/2015
    8
    05/02/2015
    3
    7
    05/02/2015
    9
    05/02/2015
    3
    8
    05/03/2015
    10
    05/03/2015
    4
    #VALUE!
    11
    05/03/2015
    4
    12
    05/03/2015
    4
    13
    05/03/2015
    4
    14
    05/04/2015
    5
    15
    05/04/2015
    5
    16
    05/05/2015
    6
    17
    05/05/2015
    6
    18
    05/05/2015
    6
    19
    05/06/2015
    7
    20
    05/07/2015
    8
    21
    05/07/2015
    8

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Count to produce a list if dates.

    Or lose the uneeded column of the table:

    Row\Col
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    1
    Example 1
    8
    Dates
    L1: =SUMPRODUCT(1 / COUNTIF(Table1[Date], Table1[Date]))
    2
    Date Column1
    1
    04/30/2015
    M2: =SMALL(Table1[Date], L2)
    3
    04/30/2015
    D3: Blank
    2
    05/01/2015
    4
    05/01/2015
    3
    05/01/2015
    5
    05/01/2015
    4
    05/01/2015
    6
    05/01/2015
    5
    05/02/2015
    7
    05/02/2015
    6
    05/02/2015
    8
    05/02/2015
    7
    05/02/2015
    9
    05/02/2015
    8
    05/03/2015
    10
    05/03/2015
    #VALUE!
    11
    05/03/2015
    12
    05/03/2015
    13
    05/03/2015
    14
    05/04/2015
    15
    05/04/2015
    16
    05/05/2015
    17
    05/05/2015
    18
    05/05/2015
    19
    05/06/2015
    20
    05/07/2015
    21
    05/07/2015

  6. #6
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: Count to produce a list if dates.

    Shg,

    Thanks for the input. The
    Please Login or Register  to view this content.
    formula was what I was looking for.

    Jim O

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Count to produce a list if dates.

    You're welcome. But you absolutely don't need the last argument in

    =INDEX(Table1[Date], MATCH(K2,Table1[Count], 0))

    It forces a linear search, which will become very slow as the list of dates grows long.

+ 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-02-2015, 02:32 PM
  2. [SOLVED] Count dates and list as 4 series
    By Xsell in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 12-09-2013, 03:10 PM
  3. [SOLVED] Produce complete list of MM/YY dates between two MM/DD/YY dates.
    By tinytutu in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-16-2013, 07:45 PM
  4. count values from same dates in list (without VBA)
    By BartDeHertogh in forum Excel General
    Replies: 3
    Last Post: 02-19-2010, 10:37 AM
  5. need to convert list of dates to count no. of dates by week
    By neowok in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-30-2006, 11:54 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