+ Reply to Thread
Results 1 to 6 of 6

Find the minimum value from a range in multiple columns

  1. #1
    Forum Contributor
    Join Date
    07-23-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    211

    Find the minimum value from a range in multiple columns

    Hi

    I just can't seem to get this sorted! I am trying to find the minimum value from a range which is across a number of columns. I have a range named LabourRange and am getting a Value error when I use the following formulae:

    Please Login or Register  to view this content.
    It works when I use a single row of data, but gives the error when I use multiple columns.

    Can anyone advise what I am doing wrong?

    Thanks

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

    Re: Find the minimum value from a range in multiple columns

    Where does LabourRange made from?

    If LabourRange is a specific range in spreadsheet, that is OK (i.e: A1:C3). But if it is made from a formula (i.e: If(A1:C3>1,A1:C3,"")), COUNTIF(LabourRange,0)

    will not work.
    Quang PT

  3. #3
    Forum Contributor
    Join Date
    07-23-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    211

    Re: Find the minimum value from a range in multiple columns

    Hi Quang

    Thanks for the quick reply.

    The range is selected using the Name Manager from a sheet. However the range is not A6:F15. It is A6:A15,C6:C15,E6:E15,F6:F15

    Would this create an error?

    Thanks

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

    Re: Find the minimum value from a range in multiple columns

    Sure this kind of range causes problem with COUNTIF. If possible, pls upload an example file to see what we can do with it,

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

    Re: Find the minimum value from a range in multiple columns

    This version will work with LabourRange when that range is defined as unconnected ranges

    =SMALL(LabourRange,INDEX(FREQUENCY(LabourRange,0),1)+1)
    Audere est facere

  6. #6
    Forum Contributor
    Join Date
    07-23-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    211

    Re: Find the minimum value from a range in multiple columns

    Great! Thanks daddylonglegs!! It worked. I would never have come up with that one.


+ 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