+ Reply to Thread
Results 1 to 9 of 9

LARGE function with an IFNUMBER

  1. #1
    Registered User
    Join Date
    10-08-2012
    Location
    Texas
    MS-Off Ver
    Excel 1020
    Posts
    3

    LARGE function with an IFNUMBER

    Hi
    I have a column of data with numbers and text. I need a formula to find the largest, then the next largest, etc and ignore the text. Here is the formula I am trying and it is not working for me (for the third largest number). Any help or suggestions to get what I need?

    {=LARGE(IF(ISNUMBER(G2:G409),(G2:G409,3))}

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: LARGE function with an IFNUMBER

    All you need is...

    =LARGE($G$2:$G$409,3)

    This ignores text.
    HTH
    Regards, Jeff

  3. #3
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: LARGE function with an IFNUMBER

    you do not need ISNUMBER, LARGER should fetch numbers (unless there are errors in your data range).

    also in your formula, the syntax needs to be corrected:

    {=LARGE(IF(ISNUMBER($G$2:$G$409),($G$2:$G$409)),3)}
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  4. #4
    Registered User
    Join Date
    10-08-2012
    Location
    Texas
    MS-Off Ver
    Excel 1020
    Posts
    3

    Re: LARGE function with an IFNUMBER

    The syntax correction helped. At least I am getting data now. However, there are many numbers that are the same. How do I get the formula to only give me the same number once? For instance, if there are six occurences of the number 7; one occurence of the number 8 and two occurences of the number 9....I would want the largest to be number 9; then the second largest would be number 8 and the third largest to be number 7. Not number 9; 9; 8; 7; 7; 7; etc.

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: LARGE function with an IFNUMBER

    After a search, came up with this which on a quick glance might help you out...

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: LARGE function with an IFNUMBER

    in h2 put
    =IF(COUNTIF($G$2:G2,G2)=1,RANK(G2,$G$2:$G$409,1),"") drag down to end
    then use in another column filed down to get large 1.2.3.4.........
    =INDEX($G$2:$G$409,MATCH(LARGE($H$2:$H$409,ROW(A1)),$H$2:$H$409,0))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: LARGE function with an IFNUMBER

    I think there's a similar version in the link Jeff posted but it's quite well hidden.

    Say you want the largest value in J2 you can use this formula in that cell

    =MAX(G2:G409)

    Then in J3 get the next largest (without repeats) with this formula

    =LARGE(G$2:G$409,COUNTIF(G$2:G$409,">="&J2)+1)

    and copy that down as far as required
    Audere est facere

  8. #8
    Registered User
    Join Date
    10-08-2012
    Location
    Texas
    MS-Off Ver
    Excel 1020
    Posts
    3

    Re: LARGE function with an IFNUMBER

    worked!

  9. #9
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: LARGE function with an IFNUMBER

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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