+ Reply to Thread
Results 1 to 6 of 6

Return the minimum value of the cells within another column fall between two values

  1. #1
    Forum Contributor
    Join Date
    11-07-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    126

    Return the minimum value of the cells within another column fall between two values

    Hi all I need some help,

    I have a sheet with a number of columns of data, I want to create a formula (if possible) that returns the maximum value of one column of data if another columns cell values fall between two numbers and another columns cell value is above another value.

    For example

    A. B. C
    55.6. 90. 100
    76.5. 87. 500
    45.3. 98. 200
    66.5. 99. 1000
    34.2. 66. 500

    I want to return the minimum value of column A if the values in C fall between 0 and 100 and the value of column B is above 90. So on this sheet the minimum value would be
    45.3

    Any help would be appriciated,

    Many thanks

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Return the minimum value of the cells within another column fall between two values

    Are your criteria correct? In the case of 45.3, B is greater than 90, but C is not between 0 and 100.

    Try this on an amended dataset.

    =MIN(IF($B$1:$B$5>90,IF($C$1:$C$5<=100,$A$1:$A$5)))

    An array formula, it must be 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.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    11-07-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    126

    Re: Return the minimum value of the cells within another column fall between two values

    Sorry initial typo the criteria was meant to be between 0 and 1000, will try the formula and let you know


    Sent from my iPhone using Tapatalk

  4. #4
    Forum Contributor
    Join Date
    11-07-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    126

    Re: Return the minimum value of the cells within another column fall between two values

    Additionally the second criteria could change so for example between 0 and 1000 or 1001 and 1500 etc


    Sent from my iPhone using Tapatalk

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Return the minimum value of the cells within another column fall between two values

    If the cut-offs are variable - you'd be better using cell references, rather than hard-coding them intot he formula. See the example attached here.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    11-07-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    126

    Re: Return the minimum value of the cells within another column fall between two values

    Great thanks, so how do I expand that formula to include two variables in column c i.e 0-100, 101-500,501-1000?


    Sent from my iPhone using Tapatalk

+ 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: 13
    Last Post: 10-13-2014, 02:00 AM
  2. [SOLVED] Value return from Minimum and Maximum values
    By indira in forum Excel General
    Replies: 3
    Last Post: 09-03-2014, 08:37 PM
  3. Replies: 1
    Last Post: 08-06-2011, 01:05 AM
  4. Replies: 4
    Last Post: 04-05-2008, 10:43 AM
  5. How to return multiple minimum values
    By jrocchio in forum Excel General
    Replies: 1
    Last Post: 10-20-2006, 05:27 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