+ Reply to Thread
Results 1 to 14 of 14

Need a little help with MIN formula and formulas in range.

  1. #1
    Registered User
    Join Date
    08-13-2013
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    5

    Need a little help with MIN formula and formulas in range.

    I need a little help with the MIN formula.

    I am trying to pull the lowest value from a range of values. The range of values are pulled from another worksheet with a formula. The range does not have a value in ever cell but does have a formula in each cell. When I use the MIN formula to get the lowest value is comes up blank. It appears that the formulas without a value is causing the MIN formula to pull the cell with no value but a formula. I want it to ignore the empty cells and only look at the ones with a value.

    Does anyone have an idea how I can do this?


    Thanks for your time.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need a little help with MIN formula and formulas in range.

    You could try an array.

    Where E10:E14 = your range

    =MIN(IF(E10:E14<>"",E10:E14))

    or

    =MIN(IF(ISNUMBER(E10:E14),E10:E14))

    Both entered using Ctrl+Shift+Enter

  3. #3
    Registered User
    Join Date
    08-13-2013
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need a little help with MIN formula and formulas in range.

    Neither of those seem to be working, I entered the formula as you stated it just with the actrual range I have and I got the "Value" message for the first one and nothing in the second.

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need a little help with MIN formula and formulas in range.

    If you are able to attach a sample of your work or can fabricate something similar, I will gladly take a look at it and repost it with any solutions I come up with.

    In all circumstances I am familiar with, a cell with a blank values will be automatically be omitted from a MIN function. If I can examine your work, I may be able to figure out what has gone awry.

  5. #5
    Registered User
    Join Date
    08-13-2013
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need a little help with MIN formula and formulas in range.

    I am working in the "Analysis Matrix" tab. You can see at the bottom of the matrix there is a row where I want the MIN value to appear from the range of values in the column above. Column E is the one I have been testing. The MAX formula works fine.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Need a little help with MIN formula and formulas in range.

    hello jspoon14 try this MIN(IF(E4:E33<>0,E4:E33)) enter as array (hold control and shift then press enter)

    as in your range 0 is the lowest number thus formula was returning 0 always

  7. #7
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Need a little help with MIN formula and formulas in range.

    Just have a look at this
    Attached Files Attached Files

  8. #8
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need a little help with MIN formula and formulas in range.

    I see the cause of the issue. Your formulas are returning a zero instead of blank values, whereas had you used for each =IF(ISBLANK(REFERENCE),"",REFERENCE) you would have gotten actual blanks.

    Re-linking all the data would be a pretty big pain considering the source format, so to omit the zeroes, use can use an array formula to narrow the range:

    E35 would look like this

    =MIN(IF(E4:E33>0,E4:E33))

    This formula needs to be confirmed with Ctrl+Shift+Enter instead of exiting the cell by only hitting Enter, which will apply { } to the formula. (It's not the same if you type them by hand)

  9. #9
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Need a little help with MIN formula and formulas in range.

    Quote Originally Posted by daffodil11 View Post
    I see the cause of the issue. Your formulas are returning a zero instead of blank values, whereas had you used for each =IF(ISBLANK(REFERENCE),"",REFERENCE) you would have gotten actual blanks.

    Re-linking all the data would be a pretty big pain considering the source format, so to omit the zeroes, use can use an array formula to narrow the range:

    E35 would look like this

    =MIN(IF(E4:E33>0,E4:E33))

    This formula needs to be confirmed with Ctrl+Shift+Enter instead of exiting the cell by only hitting Enter, which will apply { } to the formula. (It's not the same if you type them by hand)
    What if any cell has value in negative then =MIN(IF(E4:E33>0,E4:E33)) would fail

  10. #10
    Registered User
    Join Date
    08-13-2013
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need a little help with MIN formula and formulas in range.

    Cool, that worked. Thanks for your help, I did not know the Ctrl+Shift+Enter command.

  11. #11
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Need a little help with MIN formula and formulas in range.

    Glad WE could Help! Please mark thread as solved go to thread tools mark thread as solved.

  12. #12
    Registered User
    Join Date
    08-13-2013
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need a little help with MIN formula and formulas in range.

    That is good to know but there wont be to many incidents with a negative number. If i do have a negative how do I fix the formula?

  13. #13
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need a little help with MIN formula and formulas in range.

    If the cost for building those houses have negative values, I want one.

    You can work around negatives with <>0 instead of >0

  14. #14
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Need a little help with MIN formula and formulas in range.

    Quote Originally Posted by daffodil11 View Post
    If the cost for building those houses have negative values, I want one.

    You can work around negatives with <>0 instead of >0
    Yes jspoon you can use =min(if(E4:E33<>0,E4:E33) and btw my suggestion was just for incase if there is a negative value then jspoon can use other method

+ 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. Assigning formulas using Range().Formula
    By jonas91 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-10-2013, 04:41 AM
  2. Unable to execute formula on a range of cells that are also formulas
    By Crysizzle in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-24-2013, 11:22 AM
  3. [SOLVED] Need a code or formula that will automatically change the named range in my formulas
    By mo4391 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2013, 11:24 AM
  4. Replies: 8
    Last Post: 04-01-2012, 02:45 AM
  5. Replies: 5
    Last Post: 02-01-2006, 10:10 AM

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