+ Reply to Thread
Results 1 to 7 of 7

Average Formula

  1. #1
    Forum Contributor
    Join Date
    06-23-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    127

    Average Formula

    Hi Guys,

    Im usually using this array formula to get average for a certain range excluding "O" value.

    Please Login or Register  to view this content.
    However, how can I apply it if the range is not in our straight row.

    For example: =AVERAGE(V6,V10,V14,V18,V22,V26,V30,V34,V38,V42,V46,V50) ??? Some of the cells there have O value and need to exclude them.


    Thanks

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Average Formula

    hi pphg, something like this?

    =AVERAGE(IF(V6:V50<>0,V6:V50))

    this is also an array. so press CTRL + SHIFT + ENTER

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    06-23-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: Average Formula

    Hi Benishiryo

    It is the same as the first formula I posted, kindly note that they are not in one straight now, they skip, V6, V10, V14, V18... I need an average formula that will only read those specified cells, and exclude if one of them have "0" value.

    Thanks

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Average Formula

    i see. i was assuming those unmentioned ones are without values. try this array then:
    =AVERAGE(IF(MOD(ROW(V6:V50),4)=2,IF(V6:V50<>0,V6:V50)))

    could you upload a sample Excel file if it doesnt work. it's also always good to upload one to illustrate better & with the desired results shown

  5. #5
    Forum Contributor
    Join Date
    06-23-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: Average Formula

    Hi Benishiryo

    Thanks for your reply.

    Attached if the sample file with detailed desired outcome included in the sheet. Thanks!
    Attached Files Attached Files

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Average Formula

    In G2 cell - Array Formula Requires Ctrl+Shift+Enter
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag the formula down.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  7. #7
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Average Formula

    i would go with Sixthsense's formula now that you've uploaded the file. but my earlier solution should have worked for you as well, according to what you described. i've uploaded the file for your reference
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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