+ Reply to Thread
Results 1 to 14 of 14

Pick the two largest of three numbers where the cells are not adjacent

  1. #1
    Registered User
    Join Date
    05-04-2019
    Location
    Reno, NV
    MS-Off Ver
    2016
    Posts
    5

    Pick the two largest of three numbers where the cells are not adjacent

    I want excel to pick the two largest of three numbers where the cells are not adjacent. Example; total two largest numbers out of D4, G4, J4. Thank you for your help.
    Last edited by AliGW; 05-05-2019 at 06:11 AM.

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: New member need help with an excel formula

    Hi

    to be confirmed with control+shift+enter


    =SUM(LARGE(CHOOSE(ROW(1:3),D4,G4,J4),ROW(1:2)))


    Regards
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    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
    81,288

    Re: Pick the two largest of three numbers where the cells are not adjacent

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new here I have done it for you this time.)
    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.

  4. #4
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Pick the two largest of three numbers where the cells are not adjacent

    Hi again

    a small formula could do the trick too

    =D4+G4+J4-MIN(D4,G4,J4)

    Regards

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: New member need help with an excel formula

    Quote Originally Posted by canapone View Post
    =SUM(LARGE(CHOOSE(ROW(1:3),D4,G4,J4),ROW(1:2)))
    Ciao di nuovo!

    Just a small point, but LARGE can accept range unions as well, so no need for CHOOSE, e.g.:

    =SUM(LARGE((D4,G4,J4),{1,2}))

    Saluti
    Click * below if this answer helped

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

  6. #6
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Pick the two largest of three numbers where the cells are not adjacent

    Thanks again Xor LX

    Just for exercise

    =SUMPRODUCT(LARGE((D4,G4,J4),N(+ROW(1:2))))

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Pick the two largest of three numbers where the cells are not adjacent

    Quote Originally Posted by canapone View Post
    =SUMPRODUCT(LARGE((D4,G4,J4),N(+ROW(1:2))))
    But you don't need the N or the + there!

  8. #8
    Registered User
    Join Date
    05-04-2019
    Location
    Reno, NV
    MS-Off Ver
    2016
    Posts
    5

    Re: New member need help with an excel formula

    Thank you for replying to my post. I entered your formula and it gives an answer of false where I am looking for a number. I appreciate any further assistance you may be able to offer. Again, thank you!

  9. #9
    Registered User
    Join Date
    05-04-2019
    Location
    Reno, NV
    MS-Off Ver
    2016
    Posts
    5

    Re: Pick the two largest of three numbers where the cells are not adjacent

    I've tried all of the formulas posted and they all return a FALSE answer insted of a number. Thanks to all in trying to help me solve this problem.

  10. #10
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Pick the two largest of three numbers where the cells are not adjacent

    Can you share what values you have in D4, G4 and J4? I can't think what you have there that could return a value of FALSE for all (in fact any) of the offered formulas.

    And, can't resist, here is another possibility:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    05-04-2019
    Location
    Reno, NV
    MS-Off Ver
    2016
    Posts
    5

    Re: Pick the two largest of three numbers where the cells are not adjacent

    -13, -11, -8, the answer is -24. Maybe I structured the question incorrectly. It is for a golf contest I run where you get to use your two best scores out of three golfers. The numbers are usually negative numbers but not always. Your last formula picked the two lowest, probably because I'm dealing with negative numbers. Thanks again for all the help from everyone!

  12. #12
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,916

    Re: Pick the two largest of three numbers where the cells are not adjacent

    Quote Originally Posted by geomercado View Post
    -13, -11, -8, the answer is -24.
    Change LARGE to SMALL:

    =SUM(SMALL((D4,G4,J4),{1,2}))

  13. #13
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Pick the two largest of three numbers where the cells are not adjacent

    Similarly, if the right answer is -24, then change max to min in my post-10 formula. As follows:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    All the other formulas in this thread could be changed similarly, so take your pick!

  14. #14
    Registered User
    Join Date
    05-04-2019
    Location
    Reno, NV
    MS-Off Ver
    2016
    Posts
    5

    Re: Pick the two largest of three numbers where the cells are not adjacent

    Problem solved, thanks to all!!

+ 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. New member need help with an excel formula
    By geomercado in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 05-04-2019, 06:54 PM
  2. New member help with a formula for formatting a serial number
    By Buzbee in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-01-2018, 07:04 AM
  3. [SOLVED] Help with Cube Value Member Expression formula
    By rv02 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-14-2016, 09:36 AM
  4. New Member Cannot Download Member Solution
    By LPeteet in forum Tips and Tutorials
    Replies: 1
    Last Post: 03-08-2016, 10:59 AM
  5. Hello new member I love excel
    By Badking333 in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 11-23-2013, 02:30 AM
  6. IF Statement Excel Help- New Member
    By bhandley in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-27-2012, 04:14 PM
  7. [SOLVED] PivotTable with Member Property - how to subtotal on Member Proper
    By swordsman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-23-2006, 05:10 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