+ Reply to Thread
Results 1 to 6 of 6

average the list base on condtional

  1. #1
    Forum Contributor
    Join Date
    06-23-2012
    Location
    tehran,iran
    MS-Off Ver
    Excel 2010
    Posts
    179

    Post average the list base on condtional

    Dear All
    I attache my file please help me on my file
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: average the list base on condtional

    Sorry for off-topic interjection:

    Although there is no official rule regarding this behavior, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

    Thanks again for all your hard work here!
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: average the list base on condtional

    How on earth do you get an average of 81.2, when the highest value in the entire range is only 11.3? Even if I SUM all those values, I still only get 60.9. You are going to need to give far more details - and a few examples - of what you want

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: average the list base on condtional

    I have attached a sheet with what I believe is what you want. I don't have much experience witrh Right-ro Left screens, so the formulas as typed here might not correspond exactly with what you see!! Hopefully you'll get the point, though!!!

    To return the values on the original sheet:
    =IF(COUNTIF($E$2:$E2,$E2)=1,AVERAGEIF($E:$E,$E2,F:F),"")

    To copy non-blanks to a new sheet:

    =IFERROR(INDEX(Sheet1!L:L,SMALL(INDEX((Sheet1!$L$2:$L$42="")*10^10+ROW(Sheet1!$L$2:$L$42),0),ROW(1:1))),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Contributor
    Join Date
    06-23-2012
    Location
    tehran,iran
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: average the list base on condtional

    it is so great and solving my problem
    could you please tell me what dose work "small"in your formula exactly ???

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: average the list base on condtional

    It is used to select cells that contain something (as opposed to blanks) and return them by row number order: SMALLest to largest.

    Glad to have helped! If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

+ 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. Replies: 16
    Last Post: 05-22-2019, 11:48 PM
  2. [SOLVED] How to filter column base on another list?
    By yannipr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-25-2015, 06:18 AM
  3. [SOLVED] Finding the average of positive numbers base on the previous date
    By top00001 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-27-2015, 03:54 AM
  4. [SOLVED] Sum records base on list box
    By pedjvak in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-15-2013, 01:31 AM
  5. Condtional Formatting from a List
    By ctrapper in forum Excel General
    Replies: 5
    Last Post: 09-17-2012, 09:44 AM
  6. Compute Average base on different column
    By ray_bt in forum Excel General
    Replies: 2
    Last Post: 05-23-2010, 12:23 PM
  7. base - calculate a YTD average
    By superspurs in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-03-2009, 06:43 AM

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