+ Reply to Thread
Results 1 to 7 of 7

Frequencies of occurrences of 0-9 over a dynamic range

  1. #1
    Registered User
    Join Date
    02-01-2024
    Location
    Kansas City
    MS-Off Ver
    365
    Posts
    4

    Frequencies of occurrences of 0-9 over a dynamic range

    I am trying to create a formula that looks at column A and all dates in the past back to a specified dynamic number in cell G3, and returns a value from Column B of the number of occurrences of each number from 0 to 9 during that dynamically specified number of days in the past.




    TIA
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by clarksamclark; 02-01-2024 at 04:24 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: This should be easy - COUNTIF

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: This should be easy - COUNTIF

    Welcome to the Forum clarksamclark!

    Most people will not want to type in dozens of rows of data to test a formula for you. Please attach your actual Excel file (see yellow banner at the top of the page).

    Also I am updating your title to describe what your objective is, not how you think it should be done. (Please see our rules and guidelines on thread titles.)
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    02-01-2024
    Location
    Kansas City
    MS-Off Ver
    365
    Posts
    4

    Re: Frequencies of occurrences of 0-9 over a dynamic range

    Thanks for the feedback. Sample spreadsheet now attached.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: Frequencies of occurrences of 0-9 over a dynamic range

    I don't think you want EDATE.


    https://support.microsoft.com/en-us/...5-753ae47ee4f5

    This article describes the formula syntax and usage of the EDATE function in Microsoft Excel.

    Description

    Returns the serial number that represents the date that is the indicated number of months before or after a specified date (the start_date). Use EDATE to calculate maturity dates or due dates that fall on the same day of the month as the date of issue.

    Syntax

    EDATE(start_date, months)

    The EDATE function syntax has the following arguments:

    Start_date Required. A date that represents the start date. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008. Problems can occur if dates are entered as text.

    Months Required. The number of months before or after start_date. A positive value for months yields a future date; a negative value yields a past date.


    Try, copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Or, all in one
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    02-01-2024
    Location
    Kansas City
    MS-Off Ver
    365
    Posts
    4

    Re: Frequencies of occurrences of 0-9 over a dynamic range

    This worked.

    =COUNTIFS($A$1:$A$125,">"&TODAY()-$G$3,$B$1:$B$125,$F7)

    I learned the use of the "&" before TODAY or EDATE. That is what was missing.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: Frequencies of occurrences of 0-9 over a dynamic range

    You're welcome.



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

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. [SOLVED] Easy Task: 3 checkboxes, if chkbox 2or3 selected chckbox1 unselected, easy solution?
    By desantech in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-13-2018, 07:39 AM
  2. easy forumula countif?
    By cornnfedd in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-21-2007, 03:03 AM
  3. [SOLVED] Easy one for CountIF
    By rivers in forum Excel General
    Replies: 1
    Last Post: 06-12-2006, 12:10 PM
  4. Easy countif formula
    By Stephen in forum Excel General
    Replies: 3
    Last Post: 08-14-2005, 12:05 AM
  5. Need help w/ easy COUNTIF
    By CampFriendNeedsHelp in forum Excel General
    Replies: 2
    Last Post: 07-29-2005, 09:05 PM
  6. [SOLVED] EASY ONE ! using countIF.. puzzled
    By justin_vasko in forum Excel General
    Replies: 4
    Last Post: 05-25-2005, 01:06 PM
  7. COUNTIF Question - Should Be Easy
    By Warloc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-16-2005, 02:08 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