+ Reply to Thread
Results 1 to 4 of 4

Checking values in an array if they pass a certain criteria

  1. #1
    Registered User
    Join Date
    07-05-2017
    Location
    Belgium
    MS-Off Ver
    Microsoft 365
    Posts
    32

    Checking values in an array if they pass a certain criteria

    I would like to check if all values within an array pass a certain criteria without using an extensice number of "AND."

    Attached a sample file.

    Thank you very much!
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Checking values in an array if they pass a certain criteria

    You can use this formula in J6:

    =COUNTIFS(A6:D6,">=89.5",A6:D6,"<=90.5")=4

    and this one in K6:

    =COUNTIFS(E6:H6,">=89.5",E6:H6,"<=90.5")=4

    although you may need to use semicolons ( ; ) instead of commas ( , ) depending on your regional settings. The formulae will return TRUE if all 4 values are within the range of values, or FALSE if one or more are not.

    Copy down as required.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    07-05-2017
    Location
    Belgium
    MS-Off Ver
    Microsoft 365
    Posts
    32

    Re: Checking values in an array if they pass a certain criteria

    Great! THank you!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Checking values in an array if they pass a certain criteria

    You're welcome, and thanks for the rep.

    Pete

+ 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. Pass values in loop to a form with criteria
    By NOSFERATU in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-25-2019, 10:53 AM
  2. [SOLVED] Pass values of UserForm TextBoxes to 2D Array
    By esbencito in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-26-2018, 05:20 AM
  3. Replies: 7
    Last Post: 03-12-2017, 03:20 PM
  4. Checking mulitple parts of array for same values and latest date
    By r_catchlove in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-01-2015, 11:23 PM
  5. Pass Values From Array to a Range using command button
    By blackrock41 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-06-2013, 02:40 AM
  6. [SOLVED] Analyze Within An Array and Pass Back Once vs. Pass at each applicable Instance
    By AlvaroSiza in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-11-2012, 05:25 PM
  7. how to pass array values to function
    By exceltools2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-10-2008, 09:39 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