How to use ArrayFormula in Google Sheets, with multiple IF conditions?
<p>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. </p>

<p>Currently, I have this formula in it (and copied to each cell):</p>

<pre>
=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)
      )
    )
  )
)
</pre>

<p>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. </p>

<p>I can get the first statement to work with this formula: </p>

<pre><code>=ARRAYFORMULA(IF(C2:C="Immediate",D2:D+1,))
</code></pre>

<p>But as soon as I try to add a second IF statement(such as with the formula below) I get an error. </p>

<p>How do I do this? I figure its probably simple but I cant figure it out!</p>

<p>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! </p>

<pre><code>=ARRAYFORMULA(IF(A1:A=1,"Hello",),IF(A1:A=2,"Goodbye",))
</code></pre>

<p>With only the first IF statement, it works. As soon as I add the second, I get #N/A</p>