+ Reply to Thread
Results 1 to 9 of 9

Average of the Max value of 2 Columns

  1. #1
    Registered User
    Join Date
    02-26-2014
    Location
    South Dakota
    MS-Off Ver
    Excel 2010
    Posts
    20

    Average of the Max value of 2 Columns

    I'm trying to calculate a single average of 2 columns (ex: A1:A10 and B1:B10) using the higher of the 2 values per row.

    So for example:
    A B

    5 7
    2 2
    4 8
    5 5
    7 4
    2 2
    4 6
    8 9
    3 4
    3 1

    The equation should take the average of 7, 2, 8, 5, 7, 2, 6, 9, 4, 3 and return 5.3.

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Average of the Max value of 2 Columns

    Have you thought of insert a helper column?
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-26-2014
    Location
    South Dakota
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Average of the Max value of 2 Columns

    I really don't want to have to use a helper column. If there isn't another way, so be it, but there has to be a way to make it work without one.

  4. #4
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Average of the Max value of 2 Columns

    This is an array formula, you have to enter it with Ctrl + Shift + Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  5. #5
    Registered User
    Join Date
    02-26-2014
    Location
    South Dakota
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Average of the Max value of 2 Columns

    Thanks, that formula works.


    However......

    I have some blank cells in my actual data range (usually at the end of the range, but sometimes in the middle), and the formula is treating them as zeros instead of ignoring them. How can I fix that?
    Last edited by DeZeeuw2; 03-12-2015 at 10:10 AM.

  6. #6
    Registered User
    Join Date
    02-26-2014
    Location
    South Dakota
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Average of the Max value of 2 Columns

    Maybe add another IF portion to test if a cell is blank or not?
    Last edited by DeZeeuw2; 03-12-2015 at 10:09 AM.

  7. #7
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Average of the Max value of 2 Columns

    Not sure how you want it so I included both alternatives.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-26-2014
    Location
    South Dakota
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Average of the Max value of 2 Columns

    Yep. Works Perfectly. The formula that still accepts numbers with an adjacent blank cell was what I needed. Thanks a lot!

    **Marked thread as solved.**

  9. #9
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Average of the Max value of 2 Columns


    ''''''''

+ 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. average formula in excel with even columns only and columns with no value
    By DANNYH765 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-26-2014, 08:12 PM
  2. [SOLVED] getting the average of only some columns
    By boxofrain in forum Excel General
    Replies: 7
    Last Post: 02-20-2014, 08:44 PM
  3. Average of different columns
    By TallOne in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-12-2013, 10:01 AM
  4. Average across columns
    By FindAnswers in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-21-2012, 12:20 PM
  5. Average of last 3 columns
    By CRIMP in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-18-2005, 03:01 PM

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