+ Reply to Thread
Results 1 to 3 of 3

Formula function to use

Hybrid View

  1. #1
    Registered User
    Join Date
    12-21-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    12

    Formula function to use

    Hello All,

    I would like to ask for your help. I would like to know what function to use to get the average of the below data excluding all zeros.

    Please see below sample.

    N/R = 0
    A = 1

    Thanks a lot...


    N/R 0
    A 1
    A 1
    A 1
    A 1
    A 1
    A 1
    N/R 0
    A 1
    A 1
    N/R 0
    N/R 0
    N/R 0
    N/R 0
    N/R 0
    0.53

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Formula function to use

    Hi euge_prime2001
    try something like

    =SUMPRODUCT(--(B2:B12="A")*--(B2:B12="A"))/COUNTA(B2:B12)
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Formula function to use

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

+ 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