+ Reply to Thread
Results 1 to 9 of 9

find the minimum value in a range or Fail text

  1. #1
    Registered User
    Join Date
    03-28-2016
    Location
    Coventry
    MS-Off Ver
    Microsoft 365
    Posts
    65

    find the minimum value in a range or Fail text

    Hi guys,


    I have a range of cells which I need to find the lowest value of, pretty simple... however, in this range of cells the result can also be the word Fail.

    I have tried a number of IF and MIN function combinations but just can't crack it..


    =MINA(IF(AA87:AC92="Fail","Fail"),AA87:AC92)


    As always, any help is greatly appreciated

  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,139

    Re: find the minimum value in a range or Fail text

    Surely =MIN(AA87:AC92) will do that... unless I'm missing the point here...
    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

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,320

    Re: find the minimum value in a range or Fail text

    Try

    =MIN(AA87:AC92)

    I assume you simply want the lowest numerical value ?

  4. #4
    Registered User
    Join Date
    03-28-2016
    Location
    Coventry
    MS-Off Ver
    Microsoft 365
    Posts
    65

    Re: find the minimum value in a range or Fail text

    Quote Originally Posted by JohnTopley View Post
    Try

    =MIN(AA87:AC92)

    I assume you simply want the lowest numerical value ?


    Hi guys,


    Thanks for the response... I need the lowest value as a result in cell K96 unless one or more of the of the cells in the range say "fail" then I need to result to be also fail - please see img Test1.PNG

  5. #5
    Registered User
    Join Date
    03-28-2016
    Location
    Coventry
    MS-Off Ver
    Microsoft 365
    Posts
    65

    Re: find the minimum value in a range or Fail text

    Quote Originally Posted by JohnTopley View Post
    Try

    =MIN(AA87:AC92)

    I assume you simply want the lowest numerical value ?


    Hi guys,


    Thanks for the response... I need the lowest value as a result in cell K96 unless one or more of the of the cells in the range say "fail" then I need to result to be also fail - please see img Attachment 501164

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,320

    Re: find the minimum value in a range or Fail text

    Very confusing: your original formula appeared to imply checking AA:AC for "fail" but your image suggests "Fail" is in AE.

    Post a file (not image) showing expected results.

    You could try

    =MIN(--(AA87:AC92)*(IF(AE87:AE92<>"Fail",1,99999)))

    Enter with Ctrl+Shift+Enter

  7. #7
    Registered User
    Join Date
    03-28-2016
    Location
    Coventry
    MS-Off Ver
    Microsoft 365
    Posts
    65

    Re: find the minimum value in a range or Fail text

    Quote Originally Posted by JohnTopley View Post
    Very confusing: your original formula appeared to imply checking AA:AC for "fail" but your image suggests "Fail" is in AE.

    Post a file (not image) showing expected results.

    You could try

    =MIN(--(AA87:AC92)*(IF(AE87:AE92<>"Fail",1,99999)))

    Enter with Ctrl+Shift+Enter

    I have attached a duplicate workbook for you to have a play with...

    Test workbook.xlsx

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,320

    Re: find the minimum value in a range or Fail text

    Don't merge cells !!!!

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,320

    Re: find the minimum value in a range or Fail text

    AS you unhelpfully did not provide any test results I can only guess at requirement:
    Attached Files Attached Files

+ 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. [SOLVED] Find minimum with text-numbers
    By elAwesome in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-02-2016, 09:39 AM
  2. [SOLVED] Find the minimum value from a range in multiple columns
    By newbi004 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-14-2013, 12:13 PM
  3. [SOLVED] How to find reference of cell from minimum value (Not a range)
    By cmsheldon24 in forum Excel General
    Replies: 3
    Last Post: 07-13-2012, 05:16 PM
  4. Find the minimum value in a range, WITH conditions
    By Phil_V in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-30-2009, 09:13 AM
  5. Find and colour text for each minimum value in row?
    By John K in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-14-2008, 03:07 PM
  6. find minimum value for each range of numbers in a table
    By Val H in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-13-2008, 10:23 AM
  7. Find minimum in range that has blanks and zeros
    By supermario77 in forum Excel General
    Replies: 1
    Last Post: 04-21-2005, 06:19 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