+ Reply to Thread
Results 1 to 11 of 11

Array formula to select best data from a row ignore blank cells

  1. #1
    Registered User
    Join Date
    04-14-2021
    Location
    Malaga Spain
    MS-Off Ver
    Microsoft 365
    Posts
    6

    Array formula to select best data from a row ignore blank cells

    I am trying to create a ranking table:
    1. The attached excel sheet shows example of data
    2. Conditional formatting used to highlight top 3 results
    3. Best 3 array formula used to total best 3 scores
    4. I would like to rank the final results highest to lowest.
    5. Actual data being approx. 40 people and 50+ results
    Objective
    1. highlight best 18 results from a possible 55
    2. This will be on an ongoing basis
    3. Players each round will be ranked.
    4. separately I would show the best scores for each person.
    I have tried 2 formulas:
    =LARGE(B3:K3,1)+LARGE(B3:K3,2)+LARGE(B3:K3,3) (This ignores blanks as wanted)
    =SUM(LARGE(B6:AY6,{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18})) This does not ignore blanks and returns #NUM!
    Problem:
    • Formula used will not work if "the required best of figure" is more than the actual number of recorded figures -eg: Aiden- Cell shows #NUM! The best of figure is 6 would
    Blanks should be ignored
    Attached Files Attached Files

  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. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,903

    Re: Array formula to select best data from a row ignore blank cells

    Welcome to the forum.

    Try this:

    =SUM(LARGE(IF((B3:K3<>""),B3:K3),{1,2,3}))

    and this:

    =RANK(M3,$M$3:$M$7,0)
    Last edited by AliGW; 04-14-2021 at 12:48 PM.
    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
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,802

    Re: Array formula to select best data from a row ignore blank cells

    M3=IF($A3<>"",SUMIF(B3:K3,">="&LARGE(B3:K3,3)),"")

    Copy down
    Last edited by CARACALLA; 04-14-2021 at 01:00 PM.

  4. #4
    Registered User
    Join Date
    04-14-2021
    Location
    Malaga Spain
    MS-Off Ver
    Microsoft 365
    Posts
    6

    Re: Array formula to select best data from a row ignore blank cells

    Thank you very much Ali - all the hours spent trying to find an answer!!
    This worked both on my sample sheet and my main sheet, the only issue being I had #NUM error on my main sheet- there was only 1 data in the row. Checked it on my sample sheet and the same thing happed, is there away around this?

    tnk

    Peter

  5. #5
    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. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,903

    Re: Array formula to select best data from a row ignore blank cells

    Yep!

    =IF(COUNT(B3:K3)<3,SUM(B3:K3),SUM(LARGE(IF((B3:K3<>""),B3:K3),{1,2,3})))

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  6. #6
    Registered User
    Join Date
    04-14-2021
    Location
    Malaga Spain
    MS-Off Ver
    Microsoft 365
    Posts
    6

    Re: Array formula to select best data from a row ignore blank cells

    Thank you Ali for the ranking formula, just had a play wit it so as to understand it better so I can apply it over a wider range- thank you.
    If you are able to advise on the #NUM! issue mentioned ealier if you are able🤞

    thanks for your help and support,

    C

    Peter

  7. #7
    Registered User
    Join Date
    04-14-2021
    Location
    Malaga Spain
    MS-Off Ver
    Microsoft 365
    Posts
    6

    Re: Array formula to select best data from a row ignore blank cells

    certainly will- new to this! but really found it helpful- thanks again.

  8. #8
    Registered User
    Join Date
    04-14-2021
    Location
    Malaga Spain
    MS-Off Ver
    Microsoft 365
    Posts
    6

    Re: Array formula to select best data from a row ignore blank cells

    Sorry Ali,
    the formula covers where there is only one data cell, however f I have data in say 9 cells and I can only as to select the best of those 9- if I ask it to select the best 10- then once again the #NuM! sign appear.
    could you modify the formula to include where I am asking it to select the best of (say 10 in my example) although data is only in 7 cells?

    tnx

    Peter

  9. #9
    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. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,903

    Re: Array formula to select best data from a row ignore blank cells

    Just change the numbers:

    =IF(COUNT(B3:K3)<10,SUM(B3:K3),SUM(LARGE(IF((B3:K3<>""),B3:K3),{1,2,3,4,5,6,7,8,9,10})))
    Last edited by AliGW; 04-14-2021 at 03:06 PM.

  10. #10
    Registered User
    Join Date
    04-14-2021
    Location
    Malaga Spain
    MS-Off Ver
    Microsoft 365
    Posts
    6

    Re: Array formula to select best data from a row ignore blank cells

    Thank you once again

    Peter

  11. #11
    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. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,903

    Re: Array formula to select best data from a row ignore blank cells

    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] Getting array/index formula to ignore blank cells
    By LandSim in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-14-2021, 04:14 PM
  2. Ignore Blank Cells in an array formula
    By Brycicle in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-26-2018, 02:28 AM
  3. Ignore Blank Cells in MINIMUM array formula
    By taniwha in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-04-2013, 09:37 PM
  4. Get an array to ignore blank cells
    By moses67 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-16-2013, 11:37 AM
  5. [SOLVED] Getting an array to ignore blank cells
    By Mike001 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-25-2013, 06:46 PM
  6. [SOLVED] Array formula to ignore blank cells
    By trickeyja in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-22-2012, 07:35 PM
  7. Array formula to ignore blank cells
    By bronsonb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-13-2011, 09:14 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