+ Reply to Thread
Results 1 to 4 of 4

#REF! error in formula

  1. #1
    Registered User
    Join Date
    01-06-2020
    Location
    Spain
    MS-Off Ver
    2016
    Posts
    7

    #REF! error in formula

    Hi

    I have a worksheet which has values given to players in a league. in th elast cell of the range I have a formula which takes the 7th largest values, adds them together and gives a total of them.

    =SUM(LARGE(B6:J6,ROW(INDIRECT("1:" & MIN(7,COUNT(B6:J6))))))

    my problem comes when a player has not registered a score. If a player doesn't have a score, the formula returns a #REF! error because of course there is no numbers in the column. I cannot just enter zeros in the players score.

    I am guessing that I need to put something similar to an IF statement or similar..... i.e. if the range doesn't have any number don't pick the largest numbers, but I cannot figure out how to do it.

    I would appreciate any help.

    Thanks in advance

    G

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: #REF! error in formula

    Surround your formula with an error check:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Replace the "no scores" with just "" if you'd prefer a blank instead.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Registered User
    Join Date
    01-06-2020
    Location
    Spain
    MS-Off Ver
    2016
    Posts
    7

    Re: #REF! error in formula

    Thanks Aardigspook, much appreciated.

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: #REF! error in formula

    You're welcome, glad I could help and thanks for the rep.

    If you're satisfied that your question has been answered, then please take a moment to mark the thread as Solved so others know there's an answer here (instructions are in my sig in my previous post). Thanks.

+ 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] Error with formula - need help finding the error in my formula
    By cabinet12 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-05-2020, 02:53 PM
  2. Formula not returning correct result. Formatting error or formula error?
    By Yonex1975 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-31-2019, 02:38 PM
  3. [SOLVED] Macro To IGNORE ERROR - Cell With Formula / Green Arrow Error
    By Logit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-06-2018, 09:16 PM
  4. [SOLVED] FORMULA Remove #NUM error not using IFERROR OR IS ERROR
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-03-2017, 04:22 PM
  5. Formula error or data link error
    By sctr in forum Excel General
    Replies: 4
    Last Post: 09-19-2016, 09:15 AM
  6. [SOLVED] Inputbox error message. Formula you typed contains an error.
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-09-2013, 02:25 PM
  7. Error values:DIV/0! error in SumProduct formula with no division
    By Jerry W. Lewis in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 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