So I just found out about ArrayFormula and am trying to convert my spreadsheet to utilize it, to be more efficient. Its worked wonderfully on all my columns except one, which is giving me trouble.
Currently, I have this formula in it (and copied to each cell):
=IF(C2="Immediate", D2+1, IF(C2="3 Day", WORKDAY(D2,3,Holidays!$B$2:$B$11), IF(C2="5 Day", WORKDAY(D2,5,Holidays!$B$2:$B$11), IF(ISBLANK(C2), IFERROR(1/0) ) ) ) )
It works wonderfully to calculate a date, based on a dropdown menu I have in another column. I cant figure out how to convert this to utilize ArrayFormula, as I get an error as soon as I add a second IF statement.
I can get the first statement to work with this formula:
=ARRAYFORMULA(IF(C2:C="Immediate",D2:D+1,))
But as soon as I try to add a second IF statement(such as with the formula below) I get an error.
How do I do this? I figure its probably simple but I cant figure it out!
Im trying to use a simpler formula to figure out where I am going wrong, and same thing will happen with the following formula so Im clearly doing something wrong!
=ARRAYFORMULA(IF(A1:A=1,"Hello",),IF(A1:A=2,"Goodbye",))
With only the first IF statement, it works. As soon as I add the second, I get #N/A