+ Reply to Thread
Results 1 to 8 of 8

Chart based on count of rows at sample date range

  1. #1
    Registered User
    Join Date
    02-11-2012
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    32

    Chart based on count of rows at sample date range

    I have a data set with one datetime column.

    I'd like to generate a chart that approximates the count of rows over the date range with a low resolution.

    I don't mind reading through how to do this, but I am not even clear what the correct approach is so I am kind of lost. I'd be grateful for any pointers!

    Thanks.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 2016 (Windows)
    Posts
    5,046

    Re: Chart based on count of rows at sample date range

    You can use a pivot chart and grouped data to count the exact number of rows for each date value - by day, week, month, quarter, year....

    So you need to better explain what you actually want, with a simple example.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    02-11-2012
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    32

    Re: Chart based on count of rows at sample date range

    Hi Bernie,
    That actually helped me understand what to search for.

    I created two computed columns with the year and month of each date, created the grouped pivot, then the chart built automatically exactly as I hoped.

    Thank you!

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 2016 (Windows)
    Posts
    5,046

    Re: Chart based on count of rows at sample date range

    Great! But if you have dates in your table already, you don't need to compute year and month - those are standard groupings available by default.
    Last edited by Bernie Deitrick; 06-16-2021 at 04:04 PM.

  5. #5
    Registered User
    Join Date
    02-11-2012
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    32

    Re: Chart based on count of rows at sample date range

    Well that would be great to save time and effort, if we assume I have a two-column data set of name to birthday, how do I accomplish this to achieve the same grouping shown in the image?

    groups.png

    Thank you!

  6. #6
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 2016 (Windows)
    Posts
    5,046

    Re: Chart based on count of rows at sample date range

    Simply drag your date field to both the row and data areas - for me, the dates were grouped automatically into year and quarter. All I needed to do was to uncheck quarter, and months became the secondary grouping.

  7. #7
    Registered User
    Join Date
    02-11-2012
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    32

    Re: Chart based on count of rows at sample date range

    Brilliant, I did not know about that.

    Thank you for your patience!

  8. #8
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 2016 (Windows)
    Posts
    5,046

    Re: Chart based on count of rows at sample date range

    There are always new things to discover - which is why Excel is both fun and frustrating!

+ 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. Count occurrences of string in range, based on date range and other criteria
    By neilo1969 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-09-2019, 02:29 AM
  2. Count number of rows by date (column) and graph in line chart
    By erbanach in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-09-2017, 05:37 AM
  3. VBA Code to Change Chart Range based on new row number count
    By HGL in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-05-2016, 02:15 PM
  4. Returning sample size based on lot from a chart
    By GCrane in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-26-2014, 01:04 PM
  5. Looking for a way to count specific rows on this sample file
    By s4driver in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-13-2013, 02:15 PM
  6. [SOLVED] To count the number of rows based on date and check how old the row is from current date.
    By raovv in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-04-2013, 11:45 AM
  7. Excel 2007 : count or chart based on date?
    By local1 in forum Excel General
    Replies: 0
    Last Post: 05-02-2012, 10:41 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