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

Google Sheets Array If Condition

I have the below formula which works fine and returns the expected results.

   =ARRAYFORMULA(iferror(if(row(I:I)=1,"CE Credit",
    if(A:A="","",
    VLOOKUP(I:I&" "&U:U,importrange("abc123","Course Catalog Database Export!E:N"),3,0))),"!!!"))

I need to add a condition. If the vlookup results is greater than 0, I want it to return Yes, if not No.

=ARRAYFORMULA(iferror(if(row(I:I)=1,"CE Certificate Needed",
if(A:A="","",
if(VLOOKUP(I:I&" "&U:U,importrange("abc123","Course Catalog Database Export!E:N"),3,0)>0,"Yes","No")),"!!!")))

However the header shows blank and no results are shown?

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

>Solution :

try:

={"CE Certificate Needed"; ARRAYFORMULA(IFERROR(
 IF(A2:A="",,IF((VLOOKUP(I2:I&" "&U2:U, 
 IMPORTRANGE("abc123", "Course Catalog Database Export!E:N"), 3, 0)*1)>0, "Yes", "No")), "!!!"))}
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