+ Reply to Thread
Results 1 to 9 of 9

Min of Positive Values

  1. #1
    Registered User
    Join Date
    04-05-2009
    Location
    North Carolina, USA
    MS-Off Ver
    Excel 2003 & excel 2007
    Posts
    14

    Min of Positive Values

    I want cell D5 to be the minimum value of cells D29:T29. Some of the cells will have no value (or $0.00) and some will have values in them. I tried the following formula in cell D5 but it doesn't work: =IF(D29:T29>0,MIN(D29:T29))).

    Thanks
    Last edited by Edward C; 07-23-2009 at 09:13 AM. Reason: Solved....thank you very much

  2. #2
    Registered User
    Join Date
    04-05-2009
    Location
    North Carolina, USA
    MS-Off Ver
    Excel 2003 & excel 2007
    Posts
    14

    Need help with min

    I want cell D5 to show the minimum value of cells D29:T29. Some of the cells in D29 to T29 will have $0.00 values and others will have values. I tried the following formula and it gives me a $0.00 value in cell D5:
    =IF(D29:T29>0,MIN(D29:T29)))

  3. #3
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    re: Min of Positive Values

    try
    =MIN(IF(D29:T29>0,D29:T29))

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    re: Min of Positive Values

    =MIN(IF(D29:T29>0, D29:T29) )

    The formula must be confirmed wit Ctrl+Shift+Enter rather than just Enter.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    re: Min of Positive Values

    try
    =MIN(IF(D29:T29>0,D29:T29))

    Or =MIN(IF(D29:T29=0,"",D29:T29))

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    re: Min of Positive Values

    Threads merged.

    Edward, please read the forum rules before posting again, including both duplicate posts and thread titles (which I have edited)
    Last edited by shg; 07-22-2009 at 11:47 PM.

  7. #7
    Registered User
    Join Date
    04-05-2009
    Location
    North Carolina, USA
    MS-Off Ver
    Excel 2003 & excel 2007
    Posts
    14

    Re: Min of Positive Values

    Sorry guys, I wasn't sure if I posted it in the correct thread. I'm kinda new at this. I did get the following formula to work though: =SMALL(D29:T29,COUNTIF($D$29:$T$29,0)+1). I tried the one you suggested but since I have merged cells, it won't allow an array formula. Now I have a different problem. I'm not quite sure how to explain it so I'll try to put together an illustration and put it in my next reply. Hope someone can help with it. I'm not sure if it can be accomplished. I appreciate your help so far though.

  8. #8
    Registered User
    Join Date
    04-05-2009
    Location
    North Carolina, USA
    MS-Off Ver
    Excel 2003 & excel 2007
    Posts
    14

    Re: Min of Positive Values

    I'm attaching a spreadsheet for illustration. I want the vendor associated with the lowest cost to appear in cell A3. I created a short list at the bottom for possibly a vlookup but I don't know if it will work.
    Attached Files Attached Files

  9. #9
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Min of Positive Values

    Per your file:

    A3: =INDEX($C$6:$K$6,MATCH($E$3,$D$27:$K$27,0))

    Do not use Merged Cells -- for Horizontal ranges you can use "Centre Across Selection" to get the same effect without any of the associated headaches.

    On an aside the SMALL(...,COUNTIF()+1) approach is certainly one I would opt for in preference to a MIN array regardless of Merged Cells issues.
    Last edited by DonkeyOte; 07-23-2009 at 03:42 AM. Reason: typo in narrative

+ 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