+ Reply to Thread
Results 1 to 6 of 6

Use of Averageif on Multiple Columns

Hybrid View

  1. #1
    Registered User
    Join Date
    10-12-2015
    Location
    Manila, Philippines
    MS-Off Ver
    2010
    Posts
    3

    Smile Use of Averageif on Multiple Columns

    I really can't find the solution online so i'm posting my own thread.

    I need to get the average of all the data (based on the same criteria) found on different columns.

    Here's the excel table attached
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Use of Averageif on Multiple Columns

    Try this array formula entered with CTRL + SHIFT + ENTER

    =AVERAGE(IF($E$2:$E$21=B25,$F$2:$AM$21))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

  3. #3
    Registered User
    Join Date
    10-12-2015
    Location
    Manila, Philippines
    MS-Off Ver
    2010
    Posts
    3

    Re: Use of Averageif on Multiple Columns

    Thanks! I know now how to do array but when I did that to my file it's giving me an incorrect answer.

    Here's the formula I had with the burly braces on both ends =AVERAGE(IF($E$2:$E$21=B25,$F$2:$AM$21)) but I get an answer of 1.35 instead of 5.625

    I tried doing it on the NETMAN1. I re-did everything but same result.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Use of Averageif on Multiple Columns

    OK, It's counting blanks as 0 throwing off the average..

    Try
    =AVERAGE(IF(($E$2:$E$21=B25)*($F$2:$AM$21<>""),$F$2:$AM$21))

  5. #5
    Registered User
    Join Date
    10-12-2015
    Location
    Manila, Philippines
    MS-Off Ver
    2010
    Posts
    3

    Re: Use of Averageif on Multiple Columns

    You are a GURU! Thanks!

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Use of Averageif on Multiple Columns

    You're welcome.

+ 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. [SOLVED] AVERAGEIF Multiple Columns
    By Markvx in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-29-2015, 08:48 AM
  2. [SOLVED] AVERAGEIF Multiple Columns Multiple occurrences
    By jeroenft in forum Excel General
    Replies: 4
    Last Post: 02-03-2015, 04:58 PM
  3. [SOLVED] AVERAGEIF with multiple columns average_range
    By Shurov in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-11-2014, 09:51 AM
  4. [SOLVED] AverageIF using multiple criteria in different columns in multiple worksheets
    By trubertiam in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-03-2014, 09:28 PM
  5. AVERAGEIF function for multiple columns.
    By thatguytg53 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-11-2014, 06:17 PM
  6. Averageif multiple columns
    By bronzboy in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-27-2013, 03:59 PM
  7. AverageIf of two columns
    By dt32 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2013, 10:47 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