+ Reply to Thread
Results 1 to 7 of 7

Minimum value lookup for 2 conditions excluding zeros

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Minimum value lookup for 2 conditions excluding zeros

    Hello Friends

    Please find the attached 2013 version file <Minimum value lookup for 2 conditions excluding zeros 260515 sss.xlsx>

    I want to look for the minimum value for the given 2 conditions by omitting zeros.

    thanks in advance

    thilag

  2. #2
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Minimum value lookup for 2 conditions excluding zeros

    This formula should work in H6 entered as an array.

    =MIN(IF((B:B=F6)*(C:C=G6)*(A:A>0)>0,A:A,""))
    Last edited by nigelbloomy; 05-26-2015 at 09:57 AM.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  3. #3
    Forum Contributor jayajaya_4's Avatar
    Join Date
    05-09-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    259

    Re: Minimum value lookup for 2 conditions excluding zeros

    hey dear ur file is not getting viewed or download..pls re attach the file

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Minimum value lookup for 2 conditions excluding zeros

    Try this array formula:

    =IF(MIN(IF(B:B=F6,IF(C:C=G6,IF(A:A<>0,A:A,""),""),""))=0,"",MIN(IF(B:B=F6,IF(C:C=G6,IF(A:A<>0,A:A,""),""),"")))
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Quang PT

  5. #5
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Minimum value lookup for 2 conditions excluding zeros

    Actually this one will take care of the errors and make sure that blanks appear instead of zeros. It is also an array formula.

    =IFERROR(SMALL(IF((B:B=F6)*(C:C=G6)*(A:A>0)>0,A:A,"x"),1),"")

  6. #6
    Forum Contributor
    Join Date
    01-28-2014
    Location
    Turkey
    MS-Off Ver
    Excel 2013
    Posts
    159

    Re: Minimum value lookup for 2 conditions excluding zeros

    =MIN(IF(($B$1:$B$100=F6)*($A$1:$A$100<>0)*($C$1:$C$100=G6),$A$1:$A$100))
    This in an array formula and so must be confirmed with CTRL+SHIFT+ENTER and not just ENTER than drag down

    Change cell format (for H column)


    Cell Format :
     [=0]"";General

  7. #7
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Re: Minimum value lookup for 2 conditions excluding zeros

    Hello Friends

    All of your formulas working fine.

    thanks

    thilag

+ 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] Maximum and Minimum value lookup for 2 conditions
    By thilag in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-26-2015, 09:36 AM
  2. [SOLVED] Need formula to lookup minimum/maximum value combined with multiple conditions
    By VincentNL in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-29-2014, 09:27 AM
  3. [SOLVED] Average for non-consecutive cells excluding zeros (even when they all contain zeros)
    By pao13 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2012, 04:32 PM
  4. Replies: 2
    Last Post: 06-12-2012, 02:24 PM
  5. Minimum value excluding zero?
    By Ritte in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 12-30-2009, 05:18 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