Do not use AND/OR with ARRAYFORMULA, use + instead of OR and * instead of AND with IF
Try
=ArrayFormula(if((AG2:AG="Yes")*(AI2:AI<>""),"Ok","Blank"))
You can add other conditions if you respect the syntax with + or *

Hello,
I have the following function =IF(OR(E2>=18,F2>=20),1,"") ideally I would like this to be an arraryformula so I don't have to make sure it is hitting all the data when I update, there may be more rows added when updating. Any ideas on what I can do differently to make this more automated? Currently, I just drag down the function as more data is added, however, someone else will be helping load data now and I would like to avoid any human error.
What Is the Inside Content of an ARRAYFORMULA Function?
How to Use the ARRAY FORMULA Function in Google Sheets?
What Is an Array Formula in Google Sheets?
I know this is old but maybe try this formula:
={"Header_Cell_Name_Here";
ArrayFormula(
IFS(
2:
C
C="Immediate",
2:
C
C="3 Day", WORKDAY(
2:$D,3,Holidays!
2:
11),
2:$C="5 Day", WORKDAY(
2:$D,5,Holidays!
2:
11)
)
)
}
IFS is a great alternative to IF. Rather than taking three arguments like you do with an IF statement:
IF(logical_expression, value_if_true, value_if_false)
an IFS statement can handle any number of conditions:
IFS(condition1, value1, [condition2, ...], [value2, ...])
Try this formula somewhere on row 1 of your sheet:
=ARRAYFORMULA(IF(A:A="",,IF(A:A=1,"Hello",IF(A:A=2,"Goodbye","Other Result"))))
Hi,
Could somebody help me get the following formula in an arrayformula?
=IF(AND(B5>=3000; B5<3999); "IMI"; IF(AND(B5>=9000; B5<9999); "InfoRegn"; IF(AND(B5>=5000; B5<5999); "OHH"; IF(AND(B5>=2000; B5<2458); "KN"; IF(AND(B5>=2459; B5<2999); "KN"; "Undefined")))))
I have almost 10 000 rows so it would be super-helpful to only have one formula in the top row.
Link: https://docs.google.com/spreadsheets/d/1AOiLMAFZMVgQS0jY5ULawI_BPCNnUTFD7pi7vax0d8Y/edit?usp=sharing
Thank you so much for any help!