Close

Results 1 to 8 of 8
  1. #1
    DF VIP Member Speedlock's Avatar
    Join Date
    Dec 2002
    Location
    North West
    Posts
    368
    Thanks
    0
    Thanked:        0
    Karma Level
    281

    Help Excel formula question

    Imagine five columns filled with numbers from 0-100. In the sixth column, I need to be able to calculate the average of the two highest numbers in the row.

    For example:

    A1 B1 C1 D1 E1 F1
    56 86 29 89 23 87.5*

    * This cell would show 87.5 as the result because the two highest numbers are 86 and 89 so the average is 87.5.

    I have had a think about it but I can't think of a suitable way of doing it...can anyone help please?

    Cheers!

  2. #2
    DF VIP Member destro404's Avatar
    Join Date
    Dec 2005
    Location
    Glasgow
    Posts
    611
    Thanks
    5
    Thanked:        9
    Karma Level
    331

    Default Re: Excel formula question

    Just figured this out in a couple of minutes, there might be a better way but this will work. Paste into F1 and fill down as necessary....

    =AVERAGE((LARGE(A2:E2,1)),(LARGE(A2:E2,2)))

  3. #3
    DF VIP Member Speedlock's Avatar
    Join Date
    Dec 2002
    Location
    North West
    Posts
    368
    Thanks
    0
    Thanked:        0
    Karma Level
    281

    Default Re: Excel formula question

    That is superb...but I've just realised that the cells that I need to find the two largest numbers from are not all adjacent so I will not be able to specify a range of cells. Is there another solution to this problem?

  4. #4
    DF VIP Member destro404's Avatar
    Join Date
    Dec 2005
    Location
    Glasgow
    Posts
    611
    Thanks
    5
    Thanked:        9
    Karma Level
    331

    Default Re: Excel formula question

    Probably.

    If you can post a sample excel file so I can actually see it then I'll try and figure something out.

  5. #5
    DF VIP Member Speedlock's Avatar
    Join Date
    Dec 2002
    Location
    North West
    Posts
    368
    Thanks
    0
    Thanked:        0
    Karma Level
    281

    Default Re: Excel formula question

    Ok, unfortunately I can't attach the real thing but I have mocked up an example of the sort of thing I am talking about.

    I appreciate your help!

  6. #6
    DF VIP Member destro404's Avatar
    Join Date
    Dec 2005
    Location
    Glasgow
    Posts
    611
    Thanks
    5
    Thanked:        9
    Karma Level
    331

    Default Re: Excel formula question

    It works OK using the same basic functions you just need to specify a more complicated array....

    Code:
    =AVERAGE(LARGE((B2:D2,G2:H2,L2,N2),1), LARGE((B2:D2,G2:H2,L2,N2),2))
    If you are construction the formulas yourself then it can be easier to put the two LARGE functions in their own cells first to make sure they are working. Then if you want to streamline it paste them into a new AVERAGE formula.

  7. #7
    DF VIP Member
    Argyll's Avatar
    Join Date
    Jun 2006
    Location
    Paradise
    Posts
    2,864
    Thanks
    96
    Thanked:        22
    Karma Level
    373

    Default Re: Excel formula question

    Dunno if this is any good to you?

    http://www.megaupload.com/?d=LDJVHGZ6

  8. #8
    DF VIP Member Speedlock's Avatar
    Join Date
    Dec 2002
    Location
    North West
    Posts
    368
    Thanks
    0
    Thanked:        0
    Karma Level
    281

    Default Re: Excel formula question

    That is great, thanks and K+ to you both!

Similar Threads

  1. redirect question
    By Psychoschiz in forum Web Hosting & Domain Names
    Replies: 2
    Last Post: 26th September 2002, 04:09 PM
  2. Quick Saturn question
    By doughboy in forum Old Skool Gaming & Retro
    Replies: 1
    Last Post: 16th September 2002, 02:19 AM
  3. Xbox DVD Rom question
    By nims076 in forum Microsoft Consoles
    Replies: 12
    Last Post: 1st September 2002, 04:21 PM
  4. Formula farce
    By 4me2 in forum General Sports
    Replies: 17
    Last Post: 31st August 2002, 03:31 PM
  5. Decorating Question
    By Roty in forum The Dog and Duck
    Replies: 6
    Last Post: 28th August 2002, 11:36 AM

Social Networking 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
  •