Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to use an AND statement with ARRAYFORMULA when searching a range in a Google Sheet

I have this function which works great.

=transpose
(
    split
    (
        ARRAYFORMULA
        (
            TEXTJOIN
            (
                ", ",TRUE,
                (
                    IF
                    (
                        A3:A100="Active",
                        B3:B100
                        ,""
                    )
                )
            )
        ),","
    )
)

It says if Anything Between A3 and A100 is the word Active, then Display B3 in a vertical list.


I am trying to query multiple parameters though and am hitting dead ends. When I try to add an AND statement to the IF query, I get no results. Example:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

=transpose
(
    split
    (
        ARRAYFORMULA
        (
            TEXTJOIN
            (
                ", ",TRUE,
                (
                    IF
                    (
                        AND(A3:A100="Active", C3:C100="Sold"),
                        B3:B100
                        ,""
                    )
                )
            )
        ),","
    )
)

>Solution :

not supported. use multiplication:

=TRANSPOSE(SPLIT(ARRAYFORMULA(TEXTJOIN(", ", 1, 
 IF((A3:A100="Active")*(C3:C100="Sold"), B3:B100, ))), ","))
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading