+ Reply to Thread
Results 1 to 4 of 4

Boolean AND results of an array

  1. #1
    Registered User
    Join Date
    11-03-2017
    Location
    Wilmington, DE
    MS-Off Ver
    2013
    Posts
    29

    Boolean AND results of an array

    I need to determine the boolean AND result of a row from the rows that have a match in one of the cells

    In my example, I have 6 rows. Column A is the value that I am matching. Column B is the result of another formula which results in a true/false
    I want to find all rows that have the value in column A.
    For example, for row 2, I want the result of an AND of all rows that have "A" so rows 2 and 3 which would AND a TRUE and TRUE resulting in a TRUE
    For row 6, I want all the results of column B who have a match of "C", so rows 6 and 7 which would AND a true and false resulting in a false

    I think it's because I am not actually ANDing them together, but any attempt to include AND in the formula in column C resulted in an error

    Please ignore the fact that I am matching multiple values together. Right now, they are all doing the same match, but eventually I will add in multiple criteria for the match

    Any help would be greatly appreciated!
    Attached Files Attached Files
    Last edited by bebiba; 04-14-2019 at 01:02 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,403

    Re: Boolean AND results of an array

    Please explain the logic of your expected results. What exactly are you trying to calculate?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    10-30-2003
    Location
    Singapore
    MS-Off Ver
    Excel 2019
    Posts
    197

    Re: Boolean AND results of an array

    Maybe,

    In E2, copied down :

    =COUNTIFS($A$2:$A$7,A2,$B$2:$B$7,TRUE)=COUNTIF($A$2:$A$7,A2)

    Regards

  4. #4
    Registered User
    Join Date
    11-03-2017
    Location
    Wilmington, DE
    MS-Off Ver
    2013
    Posts
    29

    Re: Boolean AND results of an array

    Thank you Bosco.. .Seems to work.. I have marked it as solved, but I am not sure I understand the logic behind the solution.

+ 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] Exit Workbook_BeforeClose(Cancel As Boolean) if a public boolean = true
    By meabrams in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-20-2016, 06:10 AM
  2. Convert Boolean Array to an Integer Array
    By cmore in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-23-2014, 01:14 AM
  3. Convert VBA Array from Boolean to Integer
    By cmore in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 11-07-2013, 07:26 PM
  4. Output Boolean Array from User-Defined Function
    By jben86 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-24-2013, 04:25 PM
  5. Need help with array function using MEDIAN and nested IF with boolean AND
    By account-ant in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-10-2013, 04:47 PM
  6. Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) problem
    By 2funny4words in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2009, 07:28 PM
  7. Replies: 5
    Last Post: 04-04-2005, 05: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