+ Reply to Thread
Results 1 to 10 of 10

Percentage of cells containing a date

  1. #1
    Registered User
    Join Date
    02-28-2015
    Location
    Australia
    MS-Off Ver
    2010-2013
    Posts
    19

    Percentage of cells containing a date

    Hi.
    i have a spreadsheet where within a range of cells i insert dates on a daily basis
    i would like a formula which calculates the percentage of cells containing a date out of the range i specify.

    Please Login or Register  to view this content.
    i got this from another topic and can change the range to fit my needs and works when i type in "h" but i am unsure how to replace the "h" in the formula so it loks for a date instead..

    EDIT..
    i have got this far on my own, now i can get a count on the cells with a date inserted from todays date back, but still cant convert it to be a percentage of my range....
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by ooom; 04-11-2015 at 01:14 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    05-07-2014
    Location
    India
    MS-Off Ver
    MS Office 365
    Posts
    313

    Re: Percentage of cells containing a date

    Hi,

    Please upload a sample file by following the steps in attached file:-
    Attached Files Attached Files
    Thanks
    Nisha Dhawan


    If you like my answer please click on * Add Reputation
    "If you can dream it, You can do it "

  3. #3
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Percentage of cells containing a date

    Try the following function in B1 assuming you have value and date range in column A.

    Just modifiedyour formula as you need the total for dividing the numbers
    =100%-COUNTIFS(A1:A8,"<"&TODAY())/COUNTA(A1:A8)
    Last edited by adhawan06; 04-11-2015 at 01:12 AM.
    Thanks,
    Anil Dhawan


    Click *Add Reputation to say "Thanks" and don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved) if you are satisfied.

    Don't stop when you are tired. STOP when you are done!

  4. #4
    Registered User
    Join Date
    02-28-2015
    Location
    Australia
    MS-Off Ver
    2010-2013
    Posts
    19

    Re: Percentage of cells containing a date

    I have entered the formula adhawan06 with my range from A1:A8, entering any date in the range gives me %100 regardless...i could be doing something incorrect, not sure..

    i have attached to my original post a sample sheet...

  5. #5
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Percentage of cells containing a date

    Checked your sheet and you have not used What I have given you in the formula cell.

    You were using your own function which you have given me
    Please Login or Register  to view this content.

    Whereas I have given you
    HTML Code: 

    Refer to the attachment
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-28-2015
    Location
    Australia
    MS-Off Ver
    2010-2013
    Posts
    19

    Re: Percentage of cells containing a date

    Yes i uploaded my file as a sample after the poster before you asked me to,
    i re applied your function to the sheet i uploaded and got great results, thank you for your help....

  7. #7
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Percentage of cells containing a date

    Glad it worked,

    Please take some few seconds to mark this thread as SOLVED and to say thanks, please click on *Add Reputation.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Percentage of cells containing a date

    The file you uploaded didnt really help much at all, all it contained what where you wanted the answer, but contained no sample data at all

    I dont see how you will be able to ID the last cell in your range, unless the dates are consecutive, and increase as you progress downwards?

    If thats the case, then try this...
    A
    B
    5
    4/1/2015
    64%
    6
    7
    4/3/2015
    8
    9
    10
    4/6/2015
    11
    4/7/2015
    12
    13
    4/9/2015
    14
    4/10/2015
    15
    4/11/2015
    B5=COUNT(A5:A15)/MATCH(MAX($A$5:$A$15),$A$5:$A$15,0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  9. #9
    Registered User
    Join Date
    02-28-2015
    Location
    Australia
    MS-Off Ver
    2010-2013
    Posts
    19

    Re: Percentage of cells containing a date

    Thank you FDibbins for your input

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Percentage of cells containing a date

    Happy to help, thanks for the feedback

+ 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] Creating a percentage from different cells depending on the rules of the cells. help!!!!!!
    By damo2deme2 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-15-2014, 11:27 PM
  2. Replies: 3
    Last Post: 09-04-2014, 08:17 PM
  3. Replies: 1
    Last Post: 01-13-2013, 08:39 PM
  4. Replies: 2
    Last Post: 05-02-2012, 08:38 PM
  5. How do I look at a date and take off a percentage?
    By kryt0n in forum Excel General
    Replies: 9
    Last Post: 01-25-2011, 02:52 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