+ Reply to Thread
Results 1 to 12 of 12

Find lowest number greater than 0 but not in a range

  1. #1
    Registered User
    Join Date
    09-05-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Question Find lowest number greater than 0 but not in a range

    I have an excel sheet I am looking to find the lowest number in the cells in a column that is not a range. These are monetary values as well, I have formatted the cells as currency. For instance, I do not have A1:AZ1

    I have G7,J7,M7,P7,S7,V7,Y7,AB7,AE7,AH7

    now I have done some searching and it is either SMALL or MIN. Here are the formulas i am trying, but getting #value as my return even though they are all marked as currency.

    Please Login or Register  to view this content.
    I am not understanding something here. Thank you for your help.
    Last edited by jdykstra; 07-11-2013 at 02:58 PM.

  2. #2
    Forum Contributor
    Join Date
    08-17-2009
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: Find lowest number greater than 0 but not in a range

    Why would you not use =Min(G7,J7,M7,P7,S7,V7,Y7,AB7,AE7,AH7) ?

  3. #3
    Registered User
    Join Date
    09-05-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Find lowest number greater than 0 but not in a range

    I need the minimum value greater than 0. If I just use that formula I get 0

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Find lowest number greater than 0 but not in a range

    This is a range.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Not a contiguous range but still a range.

    Plus there's a pattern, I think, of every third column.
    If posting code please use code tags, see here.

  5. #5
    Registered User
    Join Date
    09-05-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Find lowest number greater than 0 but not in a range

    OK, I understand that, but it still only comes up with #value as the output

  6. #6
    Forum Contributor
    Join Date
    08-17-2009
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: Find lowest number greater than 0 but not in a range

    Ok, sorry I didn't see the greater than zero. Can you add a row that uses =max(G7,0) etc then =Min(G8,J8,M8,P8,S8,V8,Y8,AB8,AE8,AH8)

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

    Re: Find lowest number greater than 0 but not in a range

    array entered
    =SMALL((MOD(COLUMN(G7:AH7),3)=1)*(G7:AH7),19+SUMPRODUCT(--(MOD(COLUMN(G7:AH7),3)=1),--(G7:AH7=0)))
    but there must be shorter
    "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

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

    Re: Find lowest number greater than 0 but not in a range

    Not much shorter but a little simpler (and no "array entry")

    =SMALL((G7,J7,M7,P7,S7,V7,Y7,AB7,AE7,AH7),INDEX(FREQUENCY((G7,J7,M7,P7,S7,V7,Y7,AB7,AE7,AH7),0),1)+1)

    or an array

    =MIN(IF(G7:AH7>0,IF(MOD(COLUMN(G7:AH7)-COLUMN(G7),3)=0,G7:AH7)))

    confirmed with CTRL+SHIFT+ENTER
    Last edited by daddylonglegs; 07-11-2013 at 04:12 PM.
    Audere est facere

  9. #9
    Registered User
    Join Date
    09-05-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Find lowest number greater than 0 but not in a range

    Thank you all, that last one did it. I also found another solution that is a bit long as well.

    =SMALL(CHOOSE({1,2,3,4,5,6,7,8,9,10},IF(G7=0,"",G7),IF(J7=0,"",J7),IF(M7=0,"",M7),IF(P7=0,"",P7),IF(S7=0,"",S7),IF(V7=0,"",V7),IF(Y7=0,"",Y7),IF(AB7=0,"",AB7),IF(AE7=0,"",AE7),IF(AH7=0,"",AH7)),1)

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find lowest number greater than 0 but not in a range

    I don't know what is between the mentioned cells but this should work:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Enter with Ctrl+Shift + Enter.
    Last edited by newdoverman; 07-11-2013 at 04:27 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  11. #11
    Registered User
    Join Date
    09-05-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Find lowest number greater than 0 but not in a range

    @newdoverman - There are other numbers and currencies in between that i do not want in the output. Thank you for your reply though

  12. #12
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Find lowest number greater than 0 but not in a range

    jdykstra

    Any chance you could attach a file?

    That should give us a clearer idea of what you are trying to do.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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