+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Conditional Percentage

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

    Conditional Percentage

    Hello

    I need help I have a column with 8 options, select with a pick list. I am trying to Calculate a percentage for each criteria.

    Eg

    Col A

    Row 1 N/A
    Row 2 Cut
    Row 3 Sew
    Row 4 Sew

    Sew 67%
    Cut 33%

    The above Example shows that sew is 67% and cut 33%. I want to ignore the N/A so hence the formula should be countif(a1:a4, "Sew")/(4-1) ignoring the N/A. The above is a sample set of data the list can be up to 20 long.

    Please help

    Mo
    Attached Files Attached Files
    Last edited by Mo2783; 06-02-2009 at 09:10 AM. Reason: Attach Sample File

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

    Re: Conditional Percentage

    You mean?

    =COUNTIF(A1:A4,"Sew")/COUNTIF(A1:A4,"<>#N/A")

    Remove the # sign if the N/A is not a result of an error
    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: Conditional Percentage

    What i mean is i want to count the total in number of Sew selected in the column and then get a percentage of sew selected excluding anything that is "N/A"



    I have attached a sample file.

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

    Re: Conditional Percentage

    Try the formula I gave you.. it results in 67%

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

    Re: Conditional Percentage

    Thanks for the Help the formula worked. I had to remove the "#" so the final formula was =COUNTIF(C7:C42,"Sew")/COUNTIF(C7:C42,"<>N/A")

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

    Re: Conditional Percentage

    No problem... but I did mention that option in my original post.

+ 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