+ Reply to Thread
Results 1 to 4 of 4

Need to change the value of 0 to 100%

  1. #1
    Registered User
    Join Date
    10-26-2012
    Location
    DE
    MS-Off Ver
    Excel 2010
    Posts
    2

    Need to change the value of 0 to 100%

    I am currently using the following formula =countif(D83:D93,">7:51") 7:51 is a time value. I need to count the number of occurances under that time and then turn the resulting value into a percentage. My problem comes in when the value = 0. I have tried If(d93=0,"100%"), where D93 = the value of the the previous forumla, but the formula returns a 0%.
    Last edited by DHM; 10-26-2012 at 03:03 PM.

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Need to change the value of 0 to 100%

    Try this:

    =COUNTIF(D83:D93,">7:51")/COUNTA(D83:D93)

    That will return the percentage of values in the range d83:d93 that are GREATER THAN 7:51

    If you want to count the percentage of list values LESS THAN 7:51, use

    =COUNTIF(D83:D93,"<7:51")/COUNTA(D83:D93)

    - Moo

  3. #3
    Registered User
    Join Date
    10-26-2012
    Location
    DE
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Need to change the value of 0 to 100%

    Still giving me "0".

  4. #4
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Need to change the value of 0 to 100%

    Try uploading your spreadsheet with data, actual results and expected results. Maybe you have some custom formatting taking place. Because the formulas I posted seem to work fine (for me, anyway)

    - Moo

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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