title: IF ELSE in excel -- check if a cell is null/empty
body: <p>I am not programming in VBA. This is a simple excel spreadsheet. Essentially, I have a formula the finds the lowest price in a range of cells and returns its respective column title. It works fine. However, some ranges do not have any values at all. So, the cell that populates with the column header displays #N/A in this case. </p>
  
  <p>What I need to do is check whether or not this happens. If the result is #N/A, I want the cell to show "No Values to Reference." I was thinking something along the lines of:</p>
  
  <pre><code>=IF(CELL != NULL, Display_Header, ELSE "No Bids to Reference")
  
  OR
  
  =IF(CELL = NULL, No Bids to Reference", ELSE Display_Header)
  </code></pre>
  
  <p>I have tried both NULL and #N/A but I am not sure how Excel handles these situations. That is, how Excel handles #N/A returns.</p>
  
  <pre><code>IF(INDEX($D$1:$M$1,MATCH(MIN(D3:M3),D3:M3,0))= "#N/A","No Bids To Reference", INDEX($D$1:$M$1,MATCH(MIN(D3:M3),D3:M3,0)))
  </code></pre>