Help with AND function

For the life of me, I can't figure out what I'm doing wrong. I have a "Transactions" table with all of my financial transactions with date, account and reconciled checkbox columns. I have a second "Reconciliation" table to indicate whether or not I have marked all of my transactions as reconciled for specific months with the following formula:


AND(Account="Triangle-Corinne", Transactions::Transactions::"A>=C2, Transactions::Transactions::A<=D2, Transactions::Transactions::Reconciled=True).


It works on the first row, but when I fill down the column it doesn't work. I have triple-checked the dates and that all of the transactions between them are checked, but it still does not return true for subsequent rows. I also tried adding the formula manually in the second row with no luck. Help!


Posted on Feb 20, 2019 11:07 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 20, 2019 6:44 PM

Your AND formula does not work the way you are thinking. "A>=C2" does not compare every row of column A to the value in C2, it compares only one cell to the value in C2. If the formula is in row 2, it is equivalent to "A2>=C2". I think you might be able to use COUNTIFS to do what you want. In that formula, "A" will refer to the whole column. You want to "count if" A >=C2, A <=D2 and Reconciled = FALSE. If the result is zero, all items are reconciled for that set of dates.


=COUNTIFS(Transactions:::Transactions::A, ">="&C2, Transactions:::Transactions::A, "<="&D2, Transactions:::Transactions::Reconciled, FALSE)=0


6 replies
Question marked as Top-ranking reply

Feb 20, 2019 6:44 PM in response to corinne1972

Your AND formula does not work the way you are thinking. "A>=C2" does not compare every row of column A to the value in C2, it compares only one cell to the value in C2. If the formula is in row 2, it is equivalent to "A2>=C2". I think you might be able to use COUNTIFS to do what you want. In that formula, "A" will refer to the whole column. You want to "count if" A >=C2, A <=D2 and Reconciled = FALSE. If the result is zero, all items are reconciled for that set of dates.


=COUNTIFS(Transactions:::Transactions::A, ">="&C2, Transactions:::Transactions::A, "<="&D2, Transactions:::Transactions::Reconciled, FALSE)=0


Feb 20, 2019 3:28 PM in response to Wayne Contello

I don't have a formula in A2, column A is just text. The formula is in B2:


Copied and pasted:


AND(Account="Triangle-Corinne",Transactions::Transactions::A≥C2,Transactions::Transactions::A≤D2,Transactions::Transactions::Reconciled=TRUE)


I'm not able to post the whole table as there are too many transactions, but here is a sample with the relevant columns (some are hidden).


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Help with AND function

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.