+ Reply to Thread
Results 1 to 7 of 7

How to count progress percentage in a row excluding a value

  1. #1
    Registered User
    Join Date
    02-04-2017
    Location
    Dublin
    MS-Off Ver
    2010
    Posts
    3

    How to count progress percentage in a row excluding a value

    Hi guys, I'm trying to create a formula to count the percentage of progress based on a drop down menu containing text values such as PASS,BLOCKED ecc.
    Now I would usually use something like this:
    =(COUNTIF(E4:E148,"PASS")+COUNTIF(E4:E148,"FAIL")+COUNTIF(E4:E148,"BLOCKED")+COUNTIF(E4:E148,"N/A"))/(COUNTBLANK(E4:E148)+COUNTA(E4:E148))

    The only problem is that with the current file format I am forced to have empty cells in the row, and that obviusly count as missing progress, therefore I am unable to achieve 100%.

    Untitled.jpg

    I am attaching a screenshot hoping to help you understand what I am talking about, spent 6 hours trying to figure it out, my brain is melting right now.

    Thank you very much for your help.
    Please help me.

  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,970

    Re: How to count progress percentage in a row excluding a value

    Welcome to the forum!

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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
    02-04-2017
    Location
    Dublin
    MS-Off Ver
    2010
    Posts
    3

    Re: How to count progress percentage in a row excluding a value

    Thank you, I am attaching the dummy excel file taken directly from the file I am creating.
    Attached Files Attached Files
    Last edited by Mrerosennin; 02-05-2017 at 07:34 AM. Reason: New file attached

  4. #4
    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,215

    Re: How to count progress percentage in a row excluding a value

    Try

    =SUM(COUNTIFS(C11:C21,{"PASS","FAIL","BLOCKED","N/A"}))/COUNTIF(C11:C21,"<>")

  5. #5
    Registered User
    Join Date
    02-04-2017
    Location
    Dublin
    MS-Off Ver
    2010
    Posts
    3

    Re: How to count progress percentage in a row excluding a value

    If I do that it always shows me 100% and result in #DIV/0 if the cells are empty :D

  6. #6
    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,215

    Re: How to count progress percentage in a row excluding a value

    This will remove the error condition:

    =IFERROR(SUM(COUNTIFS(C11:C21,{"PASS","FAIL","BLOCKED","N/A"}))/COUNTIF(C11:C21,"<>"),"")

    If you want to ignore rows 15-17 it cannot be done as you cannot diffentiate between a "blank" answer from your drop down and the "dividers" (row 15-17).

    Remove the "dividers" OR change the "blank" answer to something else e.g "*"

    then ...



    =IFERROR(SUM(COUNTIFS(C11:C21,{"PASS","FAIL","BLOCKED","N/A"}))/COUNTA(C11:C21),"")

    EDIT: missed the IFERROR from first formula!!!
    Last edited by JohnTopley; 02-05-2017 at 08:04 AM.

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,914

    Re: How to count progress percentage in a row excluding a value

    Try this ...

    =SUM(COUNTIF(C11:C21,{"PASS","FAIL","BLOCKED","N/A"}))/(ROWS(A11:A21)-3*COUNTIF(A11:A21,"Location of the task*"))

+ 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. How show progress with graph bar with percentage input
    By mrjackt in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 08-01-2014, 07:53 AM
  2. Progress bar to show both percentage completion and time left
    By Faridwahidi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-28-2014, 04:29 PM
  3. [SOLVED] How to place and define progress bar with percentage
    By Faridwahidi in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 05-28-2014, 11:35 AM
  4. [SOLVED] Progress percentage function for student's grades
    By ckonsta in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-20-2013, 02:17 AM
  5. Progress bar or indicator to display calculation percentage
    By Dan27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2013, 01:13 PM
  6. percentage progress bar in vba
    By djwaz69 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2013, 10:34 PM
  7. Replies: 4
    Last Post: 12-13-2012, 07:26 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