Results 1 to 3 of 3

Thread: AverageIf Finding Average Of Corresponding Values Matching A Specific Value

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Jul 2013
    Posts
    11
    Rep Power
    0

    AverageIf Finding Average Of Corresponding Values Matching A Specific Value

    Hi everyone,

    I have a doubt. I am attaching the worksheet here. I need to find the average of the C column.

    Assuming X(212, 223, 242) have 4 values each. I would like to find the average of each X column values separately ( one value for whole 212, one 223 etc)

    Thank you all for your patience and support. I am eagerly awaiting for your replies.
    Attached Files Attached Files

  2. #2
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    So for 212, will the average be Average(0,0,3,4) or Average(3,4)

    EDIT: For the former, use D2=IF(COUNTIF(B$2:B2,B2)=1,AVERAGEIF($B$2:$B$17,B2,$ C$2:$C$17),"") and drag down

    For the latter, use D2=IF(COUNTIF(B$2:B2,B2)=1,AVERAGE(IF(($B$2:$B$17=B2 )*($C$2:$C$17<>0),$C$2:$C$17,"")),"") as CSE (Array) formula
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  3. #3
    Junior Member
    Join Date
    Jul 2013
    Posts
    11
    Rep Power
    0
    Thank you Excel fox for the reply. For 212 the average will be 0,0,3,4, for 223 5,8,7,1 respectively. I will try and let you know immediately.

Similar Threads

  1. Replies: 8
    Last Post: 07-01-2013, 03:52 PM
  2. VLookup Any Matching Word From A Sentence
    By Vivienjohn in forum Excel Help
    Replies: 0
    Last Post: 12-30-2012, 11:55 AM
  3. finding the number of occurrence
    By zzzqinzzz in forum Excel Help
    Replies: 2
    Last Post: 12-13-2012, 10:24 AM
  4. Finding highest value in array
    By Rasm in forum Excel Help
    Replies: 15
    Last Post: 06-24-2011, 03:59 AM
  5. Average Of The X Largest Numbers
    By Excel Fox in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 04-16-2011, 04:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •