+ Reply to Thread
Results 1 to 4 of 4

MIN with conditional range

  1. #1
    Registered User
    Join Date
    07-08-2015
    Location
    Bratislava
    MS-Off Ver
    2013
    Posts
    47

    MIN with conditional range

    Hi guys!

    could you please help by this formula? I believe it will be an easy one for you

    I need the lowest value for range based on City in the attached file.

    Many thanks!
    Lukas
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,463

    Re: MIN with conditional range

    Put this array* formula in H3:

    =MIN(IF($B$3:$B$35=$G3,D$3:D$35))

    *Note that an array formula needs to be committed using the key combination Ctrl-Shift-Enter (CSE) instead of the usual <Enter>.

    Then you can copy the formula down to H20, and then copy the block H3:H20 across into column I.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    07-08-2015
    Location
    Bratislava
    MS-Off Ver
    2013
    Posts
    47

    Re: MIN with conditional range

    Quote Originally Posted by Pete_UK View Post
    Put this array* formula in H3:

    =MIN(IF($B$3:$B$35=$G3,D$3:D$35))

    *Note that an array formula needs to be committed using the key combination Ctrl-Shift-Enter (CSE) instead of the usual <Enter>.

    Then you can copy the formula down to H20, and then copy the block H3:H20 across into column I.

    Hope this helps.

    Pete
    THANKS!!!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,463

    Re: MIN with conditional range

    Glad to help.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. Replies: 4
    Last Post: 04-12-2015, 02:47 AM
  2. Conditional Format a range of cells if active cell is not in the range to be formatted.
    By anrichards22 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-07-2013, 05:49 AM
  3. Replies: 3
    Last Post: 08-13-2013, 09:44 AM
  4. [SOLVED] Find maximum value in conditional range (conditional on the name on another column)
    By gjrr4x1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-26-2013, 06:51 AM
  5. [SOLVED] Applying Conditional Formatting to a Range in VBA (range is set by variables)
    By JungleJme in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-12-2013, 08:32 AM
  6. Conditional Formatting - Grey Out and Lock A range based on a cell value in that range
    By Excelgnome in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-14-2012, 07:31 PM
  7. Replies: 2
    Last Post: 10-06-2005, 03:05 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