+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Calculate percentage

  1. #1
    Registered User
    Join Date
    06-17-2008
    Location
    Uk
    Posts
    12

    Calculate percentage

    Hi All

    I need some urgent help with a formula that is trying to calculate percentage.

    I have the following formula
    =IF(ISERROR(COUNTIF(C7:C42,"Cut")/(COUNTIF(C7:C42,"<>N/A"))),"",IF(COUNTIF(C7:C42,"Cut")=0,IF(C44>0,1),COUNTIF(C7:C42,"Cut")/(COUNTIF(C7:C42,"<>N/A"))))

    The above formula is trying to calculate the percentage of a process. Which can either be Cut, Sew, Foam, Trim, Inspected (QC), Development (Dev) and Delivery (Del)

    My Problem is that when nothing is selected in a column I still get 100.00% or False instead of a zero or blank cell as can be seen in the sample file attached column D and F.

    What I am trying to achieve is that if nothing has been selected for the column then 0.00 or blank cell is displayed. (Sample.xls file D19 to D25 should be 0.00% or Blank)

    Otherwise if a process has been selected then the percentage of that process is calculated. But if say for instances all of Cut process has been completed for all items then the Cut process should read 100.00% and what ever percentage the next stages are at. (See Sample File C19 to C25)

    Any help would be much appreciated.

    Thanks

    Mo
    Attached Files Attached Files
    Last edited by Mo2783; 02-25-2010 at 10:51 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula trying to calculate percentage

    You can add a COUNTA() check to see if any cells are filled...

    e.g, in D19

    Please Login or Register  to view this content.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-17-2008
    Location
    Uk
    Posts
    12

    Re: Formula trying to calculate percentage

    Hi NBVC

    Thanks for the Help, much appreciated.

    The formula works fine when nothing is selected in the columns (See sample1.xls Column C)

    When you select Cut for an item it calculates the percentage for the item correctly but also makes the remainder 100.00% and Dev will show False. (See Sample1.xls Column E)

    Any ideas whats wrong?

    So when only cut is selected i want the percentage calculated for that only But If Cut and sew are selected then it should calculate percentage for both subsequently do the same for the rest.

    But if cut process has been finished and sew is selected then i need to show that Cut is 100.00% and what ever percentage sew and the rest are etc.

    Thanks

    Mo
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula trying to calculate percentage

    Everything form Cut percentage to Development percentage depends on next process percentage as a reference... but the last Delivery Percentage does not have anything to depend on... so when that last one equals 0% and there are no DEV in the picklist, then the Development formula part, IF(E25>0,1) kicks in.. and there is nothing there to say what happens when False... so it enters FALSE as a result...

  5. #5
    Registered User
    Join Date
    06-17-2008
    Location
    Uk
    Posts
    12

    Re: Calculate percentage

    Solved using this formula

    Please Login or Register  to view this content.

+ 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