+ Reply to Thread
Results 1 to 5 of 5

Identify the highest value over a range of cells and classify the result

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

    Identify the highest value over a range of cells and classify the result

    Hi all,

    I have a test form which requires the user to conduct 3 identical tests and record the results. with the 3 readings they need to have an average value and classify the result based on the highest value over the 3 tests.

    The parameters of classification are as follows..

    above 100 = Fail

    Equal to or below 100 but equal to or above 51 = Class 1

    Equal to or below 50 but equal to or above 26 = Class 2

    Equal to or below 25 but equal to or above 11 = Class 3

    Equal to or below 10 but equal to or above 6 = Class 4

    Equal to or below 5 = Class 5

    The formula I have is =IF(N85:V85="","",IF(N85:V85="N/A","No Requirements",MAX(IF(N85:V85>100,"Fail",IF(N85:V85>=51,1,IF(N85:V85>=26,2,IF(N85:V85>=11,3,IF(N85:V85>=6,4,5))))))))

    But doesn't work. Anyone have anything up their sleeve that will work for all of the above?

    Help, as always, is very highly appreciated

  2. #2
    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,209

    Re: Identify the highest value over a range of cells and classify the result

    Not sure why you r are testing a range (3 results in this range?) plus as a possible results is "FAIL" (text) but testing for MAX (Numeric).

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,914

    Re: Identify the highest value over a range of cells and classify the result

    Try this ...

    =IF(COUNT(N85:V85)=0,"",IFERROR(LOOKUP(MAX(N85:V85),{0,6,11,26,51,101},{5,4,3,2,1,"Fail"}),"No Requirements"))

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

    Re: Identify the highest value over a range of cells and classify the result

    Quote Originally Posted by JohnTopley View Post
    Not sure why you r are testing a range (3 results in this range?) plus as a possible results is "FAIL" (text) but testing for MAX (Numeric).

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Basically we have to conduct several tests 3 times, record the results and then work out the average of the 3 results which then we can classify based on the ranges specified above. Managed to work that out no problem, however one of the tests we conduct in the series asks for the same classification to be applied but instead of the classification being based on the average of the 3 results, it asks for the highest value of the results to be classified if that makes sense?

    so my working formula for the classification based on the average result is =IF(N85="","",IF(N85="N/A","No Requirements",IF(W85>100,"Fail",IF(W85>=51,1,IF(W85>=26,2,IF(W85>=11,3,IF(W85>=6,4,5))))))) which works perfectly

    So I am looking for a solution which does the same job as the above formula, but uses the highest value out of the 3 results

    I hope this better explains my problem

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

    Re: Identify the highest value over a range of cells and classify the result

    Dont worry, I have managed to figure a working formula out... Thanks for the effort tho guys

    =IF(N88="","",IF(N88="N/A","No Requirements",IF(MAX(N88:V88)>100,"Fail",LOOKUP(MAX(N88:V88),{5,10,25,50,100},{5,4,3,2,1}))))

+ 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] Return value based on highest ranked result within range
    By nebbo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-07-2016, 05:04 PM
  2. Replies: 2
    Last Post: 12-27-2012, 04:36 PM
  3. Identify column value with highest count
    By net.master.bd in forum Excel General
    Replies: 2
    Last Post: 07-13-2012, 06:04 AM
  4. identify is the pattern which gives the highest % success
    By censura in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-04-2007, 03:31 PM
  5. Replies: 3
    Last Post: 07-29-2006, 08:05 AM
  6. How do I return the highest value in a range of cells
    By pjs83 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. How do I return the highest value in a range of cells
    By pjs83 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-06-2005, 05: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