+ Reply to Thread
Results 1 to 10 of 10

Percentage and date range If statements

  1. #1
    Registered User
    Join Date
    06-29-2021
    Location
    Newcastle
    MS-Off Ver
    office 365
    Posts
    7

    Percentage and date range If statements

    Hi

    I need some help. i have a selection of date ranges. i need to calculate as a percentage the number of records in a given month that were 20 days or less

    col 1
    date submitted
    col 2
    date reviewed
    col 3
    no. working days between submission and revew


    i want it to spit out a table
    col 1 - 12 = month
    percentage of jobs that were less than 20 days
    Attached Files Attached Files
    Last edited by bennett.493; 06-29-2021 at 06:55 AM.

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

    Re: Percentage and date range If statements

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    06-29-2021
    Location
    Newcastle
    MS-Off Ver
    office 365
    Posts
    7

    Re: Percentage and date range If statements

    i have attached it now

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Percentage and date range If statements

    I don't think you read the instructions properly. You missed this important bit:

    ... and some manually calculated results.

  5. #5
    Registered User
    Join Date
    06-29-2021
    Location
    Newcastle
    MS-Off Ver
    office 365
    Posts
    7

    Re: Percentage and date range If statements

    hopefully thats updated it now

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Percentage and date range If statements

    What about those with no review date - should they be excluded from the calculation?

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,205

    Re: Percentage and date range If statements

    Try

    B4

    =COUNTIFS(Data!$A:$A,">=" & B$3,Data!$A:$A,"<=" & EOMONTH(B$3,0),Data!$C:$C,"<20")/COUNTIFS(Data!$A:$A,">=" & B$3,Data!$A:$A,"<=" & EOMONTH(B$3,0))

  8. #8
    Registered User
    Join Date
    06-29-2021
    Location
    Newcastle
    MS-Off Ver
    office 365
    Posts
    7

    Re: Percentage and date range If statements

    Didn't work quite right. Jan 2021 should be 100% as all were under 20 days but its came out at 75%

  9. #9
    Registered User
    Join Date
    06-29-2021
    Location
    Newcastle
    MS-Off Ver
    office 365
    Posts
    7

    Re: Percentage and date range If statements

    Ignore me! it looks to have worked

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Percentage and date range If statements

    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] Completion Percentage of a date range
    By Brian in forum Excel General
    Replies: 5
    Last Post: 09-08-2021, 06:55 AM
  2. [SOLVED] How to return a value based on percentage and date range
    By MyStix01 in forum Excel General
    Replies: 5
    Last Post: 09-21-2017, 06:22 PM
  3. [SOLVED] Find Latest Date in a range with IF Statements
    By Alphabex in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-27-2017, 12:14 PM
  4. Completion Percentage of a target date range
    By naseemta in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-30-2015, 12:20 AM
  5. Calculate percentage of specific date range
    By grahto in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-25-2013, 06:39 AM
  6. Replies: 4
    Last Post: 01-17-2013, 01:23 PM
  7. [SOLVED] Getting Average Percentage in a Certain Date Range from Another Sheet
    By vcl_over in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-04-2013, 10:55 PM

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