+ Reply to Thread
Results 1 to 5 of 5

Frequency of duplicate dates among a range of data

Hybrid View

  1. #1
    Registered User
    Join Date
    03-12-2018
    Location
    Usa
    MS-Off Ver
    2003, 2016
    Posts
    5

    Frequency of duplicate dates among a range of data

    Hello, I am trying to figure out if there is a way I can build a frequency table out of this raw data. I have a set of dates with duplicates, I need to figure out how many times a certain date appears.

    Here is the raw data:
    1-Mar
    1-Mar
    1-Mar
    2-Mar
    2-Mar
    2-Mar
    2-Mar
    3-Mar
    3-Mar
    3-Mar
    3-Mar
    5-Mar
    5-Mar

    For example, March 1 would be 3, March 2 is 4, March 3 is 4, and March 5 is 2. This is the table that I would like to see so I can make a chart out of it:

    Dates Frequency
    1-Mar 3
    2-Mar 4
    3-Mar 4
    5-Mar 2

    The problem I'm facing is that I have about a year's worth of data I need to build a frequency chart out of. Counting it one by one would take a very long time. I was hoping there is a function I could use that would build a frequency chart for me. I'm on Excel 2010 also if that makes a difference.

    I appreciate any help, thanks for you time.
    Last edited by picartman; 06-12-2018 at 10:20 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2509 (Windows 11 Home 24H2 64-bit)
    Posts
    92,434

    Re: Frequency of duplicate dates among a range of data

    Maybe this?

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    1
    01-Mar
    Date Count
    2
    01-Mar
    01-Mar
    3
    3
    01-Mar
    02-Mar
    4
    4
    02-Mar
    03-Mar
    4
    5
    02-Mar
    05-Mar
    2
    6
    02-Mar
    7
    02-Mar
    8
    03-Mar
    9
    03-Mar
    10
    03-Mar
    11
    03-Mar
    12
    05-Mar
    13
    05-Mar
    Sheet: Sheet1

    Excel 2016 (Windows) 32 bit
    C
    D
    2
    =IFERROR(INDEX($A$1:$A$13,MATCH(0,INDEX(COUNTIF($C$1:C1,$A$1:$A$13),0,0),0)),"")
    =IF(C2="","",COUNTIF($A$1:$A$13,C2))
    Sheet: Sheet1
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    03-12-2018
    Location
    Usa
    MS-Off Ver
    2003, 2016
    Posts
    5

    Re: Frequency of duplicate dates among a range of data

    Hello, thanks for the reply. I'm trying to figure out the formula you posted, I pasted it into the work book but it just returned the number 43160, not sure what I'm doing wrong. I forgot to mention I'm on Excel 2010 if that makes a difference.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2508
    Posts
    13,822

    Re: Frequency of duplicate dates among a range of data

    picartman if you are not aware of it dates (and times) are numbers. Dates are numbered from 1/1/1900 being day 1. 43160 is that many days from 1/1/1900. The formatting is cosmetic. If you format that dd - mmm it is 01 - Mar


    An alternative means to return unique dates with a helper column in B and this formula
    Formula: copy to clipboard
    =IF(COUNTIF($A$1:A1,A1)=1,ROWS($A$1:$A1),"")
    Then this non-array in C2 and down.
    Formula: copy to clipboard
    =INDEX($A$1:$A$13,SMALL($B$1:$B$13,ROWS($A$2:$A2)))




    A
    B
    C
    D
    1
    01 - Mar
    1
    Date
    Count
    2
    01 - Mar
    01 - Mar
    3
    3
    01 - Mar
    02 - Mar
    4
    4
    02 - Mar
    4
    03 - Mar
    4
    5
    02 - Mar
    05 - Mar
    2
    6
    02 - Mar
    7
    02 - Mar
    8
    03 - Mar
    8
    9
    03 - Mar
    10
    03 - Mar
    11
    03 - Mar
    12
    05 - Mar
    12
    13
    05 - Mar
    Dave

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2509 (Windows 11 Home 24H2 64-bit)
    Posts
    92,434

    Re: Frequency of duplicate dates among a range of data

    Just copy and paste the FORMATTING of the date cell to your output list, as has already been mentioned.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. FREQUENCY formula not with alphanumaric And with duplicate value
    By waq in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-07-2014, 10:15 AM
  2. [SOLVED] How to use OFFSET in a Data Range based on Job Frequency
    By Saarang84 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-25-2014, 05:19 AM
  3. [SOLVED] Formula to count frequency of data in cell range based on data in different cell range
    By jrosko1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-12-2013, 09:47 AM
  4. Selecting a range of values from high frequency data
    By AledgG87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-17-2012, 06:10 AM
  5. Determining duplicate entries and frequency
    By Tissy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-20-2009, 10:08 PM
  6. Why does a simple frequency distribution count out of range data?
    By tgdavis@cox.net in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-19-2006, 03:05 AM
  7. [SOLVED] How to take a range input in a function and find the frequency of data in it.
    By Sourav in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-05-2006, 11:10 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