+ Reply to Thread
Results 1 to 10 of 10

Formula to count value of cells and find the average percentage

  1. #1
    Forum Contributor
    Join Date
    09-25-2011
    Location
    Lenasia, Johannesburg,South Africa
    MS-Off Ver
    Excel 2019
    Posts
    269

    Formula to count value of cells and find the average percentage

    Greetings

    I am trying to solve a formula to find a count of three values and therafter find the aveage percentage

    When the range is consecutive , no problem formula works with a slight error

    When I am trying to count the value in alternate cells experience a problem

    Thanx in anticipation for th help

    Rajan
    Attached Files Attached Files

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

    Re: Formula to count value of cells and find the average percentage

    No idea from your workbook what will determine which three cells the average should be taken from - tell us everything that is in your head, because we are NOT clairvoyant.
    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
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Formula to count value of cells and find the average percentage

    H10:

    =sumproduct((m8>0)+(m10>0)+(m12>0))/3*100
    Quang PT

  4. #4
    Forum Contributor
    Join Date
    09-25-2011
    Location
    Lenasia, Johannesburg,South Africa
    MS-Off Ver
    Excel 2019
    Posts
    269

    Re: Formula to count value of cells and find the average percentage

    hi

    I do understand that I have not really made my self clear, I redid the sheet with an exoplanation

    Trust that this may be correct for the request for help

    Regards

    rajan
    Attached Files Attached Files

  5. #5
    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,202

    Re: Formula to count value of cells and find the average percentage

    Your comments in the file do not match values: L10 =5 , L12=8

    Count is number > 0 ? and hence in your example 2 (out of 3) are > 0 so average is 66% ?

  6. #6
    Forum Contributor
    Join Date
    09-25-2011
    Location
    Lenasia, Johannesburg,South Africa
    MS-Off Ver
    Excel 2019
    Posts
    269

    Re: Formula to count value of cells and find the average percentage

    Hi Sir

    yes it only countsor should I have raher have said that the contents and not value so if L10 contain an entry and L12 contained an entry then the formula may work

    Rajan

  7. #7
    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,202

    Re: Formula to count value of cells and find the average percentage

    Try

    =SUMPRODUCT(--(L8:L12>0)*(MOD(ROW($8:$12),2)=0))/3

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Formula to count value of cells and find the average percentage

    I am not clear. This may be.
    In G6 then copy down

    =SUMPRODUCT((COUNTIF($D6:$F6,$L$6:$L$14)=1)*($M$6:$M$14>0))/3*100
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  9. #9
    Forum Contributor
    Join Date
    09-25-2011
    Location
    Lenasia, Johannesburg,South Africa
    MS-Off Ver
    Excel 2019
    Posts
    269

    Re: Formula to count value of cells and find the average percentage

    Hi Sir

    many thanx for the solution working brilliantly

    much appreciated

    With gratitude

    rajan

  10. #10
    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,830

    Re: Formula to count value of cells and find the average percentage

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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] Help with VBA to count a row and Sum a column and use the values to find a percentage
    By rosscortb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-21-2018, 12:24 PM
  2. [SOLVED] Average with Percentage in Different Cells and IF
    By Faustocruz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-22-2015, 12:37 PM
  3. Calculate average percentage for specific selected cells
    By me1992 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-04-2013, 03:54 PM
  4. Need a formula that will count cells and populate a percentage
    By waldock9 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-18-2013, 04:51 AM
  5. Formula To Get The Average Percentage Up/Down?
    By cocco in forum Excel General
    Replies: 4
    Last Post: 03-07-2012, 10:36 PM
  6. calculating average from a percentage of cells in a column
    By mcphie13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-01-2009, 02:51 PM
  7. Excel 2007 : formula to average a percentage
    By berk21 in forum Excel General
    Replies: 10
    Last Post: 01-26-2009, 10:00 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