+ Reply to Thread
Results 1 to 3 of 3

average ifs with average range in different lines / columns

  1. #1
    Registered User
    Join Date
    06-22-2015
    Location
    lisbon
    MS-Off Ver
    windows 8
    Posts
    33

    average ifs with average range in different lines / columns

    Hi,
    Col1 Col 2 Col 3 Col 4 Col 5 Col 6
    Name Attribute Grade Name Attribute Grade
    Peter a 7 Peter a 9
    Peter a 6 John d 8
    John b 5 Mary e 7
    Mary c 5 Mary f 6

    Letīs say I want to do an average of Peter's "a" attribute with an averageifs (7,6,9), the average range ("Grade") is on two different columns (3, 6); also the criteria ranges "Name" and "Attribute".

    Is it possible to have a criteria range on different lines/columns?

    Thank you

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

    Re: average ifs with average range in different lines / columns

    What's the reason for having the data laid out in this way?
    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 XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: average ifs with average range in different lines / columns

    Hi.

    With your table in A1:F5 (with headers in row 1), your choice of name, e.g. "Peter", in I1 and attribute, e.g. "a", in J1:

    =AVERAGEIFS(C2:F5,A2:D5,I1,B2:E5,J1)

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

+ 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. Averageif function with Average range subtracting columns
    By miguelcristovao in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-18-2014, 04:56 PM
  2. Average lines based on field?
    By rmwork in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-13-2013, 03:54 PM
  3. Replies: 1
    Last Post: 04-02-2012, 09:11 AM
  4. Average betting lines
    By rbpd5015 in forum Excel General
    Replies: 14
    Last Post: 02-29-2012, 02:32 PM
  5. How Do I Average A Range On A Different Worksheet Then Paste The Average To A Cell
    By Cfallscat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-15-2011, 04:14 AM
  6. Average every four lines
    By Macro-wave in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-14-2008, 01:26 PM
  7. 'Average' Function on 1500 lines
    By Logan in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-25-2005, 06:44 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