+ Reply to Thread
Results 1 to 6 of 6

Array formula which compares values, ignores blanks, and results in a single accept/reject

  1. #1
    Registered User
    Join Date
    05-06-2015
    Location
    South-East USA
    MS-Off Ver
    2007
    Posts
    3

    Array formula which compares values, ignores blanks, and results in a single accept/reject

    I have rows of a range of values to compare to a fixed maximum (G10) and minimum (G9) value and return a 'reject' if any value is outside the specified range or an "OK" if values are accpetable. Occasionally a cell or three will be blank in each row.
    Please Login or Register  to view this content.
    The first test (A14) ensures there is supposed to be values in the row to compare.

    Results are either "OK" or "FALSE", but not consistent with inputs. There are true accepts, false accepts (values are bad, but result says 'OK'), no false rejects (bad values result in either "OK" or "False"), and no true rejects (bad values do not result with 'Get help').

    Is this the correct approach or is there a better method?

    Help?

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Array formula which compares values, ignores blanks, and results in a single accept/re

    Hi,

    Not sure why you need an array formula.
    Maybe

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    05-06-2015
    Location
    South-East USA
    MS-Off Ver
    2007
    Posts
    3

    Re: Array formula which compares values, ignores blanks, and results in a single accept/re

    Which is why periodically the engineer must be shot to start production. Always making things complicated.

    It works. Exactly what I needed. Thank you.

    Any idea why the original formula would not work and results varied?

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Array formula which compares values, ignores blanks, and results in a single accept/re

    Quote Originally Posted by bearwldr View Post

    Any idea why the original formula would not work and results varied?
    Untested but probably because in the array formula the IFs were only testing O14.

  5. #5
    Registered User
    Join Date
    05-06-2015
    Location
    South-East USA
    MS-Off Ver
    2007
    Posts
    3

    Re: Array formula which compares values, ignores blanks, and results in a single accept/re

    I used the 'evaluate formula' tool. It came up with the correct answer about half-way through the evaluation, then lost it in the remaining IF statements. It showed the entire array being evaluated three times with the correct answers for each evaluation, but couldn't resolve to a single correct answer.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Array formula which compares values, ignores blanks, and results in a single accept/re

    There are just some things in heaven and on earth.......

    Thanks for the rep.

+ 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] Format cell to accept only specific character-reject others
    By aetzkin in forum Excel General
    Replies: 4
    Last Post: 06-12-2017, 02:06 PM
  2. Accept or Reject options when enable macros
    By Formula-seeker in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-03-2014, 08:10 PM
  3. Assigned Accept/Reject Changes to a macro button
    By thequickness in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-08-2014, 12:52 AM
  4. Replies: 0
    Last Post: 09-07-2005, 03:05 PM
  5. Disable Accept/Reject Changes
    By tjtjjtjt in forum Excel General
    Replies: 0
    Last Post: 04-20-2005, 03:06 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