+ Reply to Thread
Results 1 to 4 of 4

MIN from 1 col. based on data in another col.

  1. #1
    Registered User
    Join Date
    11-07-2009
    Location
    Hagerstown, Maryland
    MS-Off Ver
    Excel 2007
    Posts
    2

    MIN from 1 col. based on data in another col.

    I need to a formula that gives me the minimum value of column F(1-118) of sheet Q3-5, among the entries where in the value of column G(1-118) = Condo. The formula will be entered on worksheet Q6-7.

    Example: The formula should look at all the Condos and return the minimum value among all Condos. In this example, the result would be $129,000.

    Sheet is Q3-5, Table is SalesData3

    F G
    Sales Price Style
    $129,000 Condo
    $74,000 Victorian
    $158,500 Ranch
    $215,000 Condo

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

    Re: MIN from 1 col. based on data in another col.

    You can use this formula

    =MIN(IF('Q3-5'!G1:G118="Condo,'Q3-5'!F1:F118))

    This is an "array formula" which needs to be confirmed with CTRL+SHIFT+ENTER so that curly braces like { and } appear around the formula in the formula bar

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: MIN from 1 col. based on data in another col.

    This an array formula, confirmed by pressing CTRL-SHIFT-ENTER:

    =MIN(IF('Q3-5'!$G$1:$G$5="Condo",'Q3-5'!$F$1:$F$5,""))

    You will need to make sure the ranges are correct.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    11-07-2009
    Location
    Hagerstown, Maryland
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: MIN from 1 col. based on data in another col.

    {=MIN(IF('Q3-5'!G1:G118="Ranch",'Q3-5'!F1:F118))} solved my problem. Thanks, for your help!

+ 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