Its probably because you are entering a "" in the if statement. Try
entering 0 instead. Another way would be to evaluate your array formula
with an IF statement and checking its result if it errors out. If yes,
enter "", else the actual formula.
Infact you could use the same if in your array formula, something
like:
=IF(C5+D5+E5+F5+G5+H5+I5<=0,"",your_array_formula)
Mangesh
The reason I have the "" in the IF statement is because I don't want the
entire worksheet filled with "0". If there is no data for say the month
of July cause it has not reached July, I don't want the cells to read
"0", I want them to read nothing at all, for neatness and clarity when
using and printing the spreadsheet.
Is there a way I can keep that sum array formula and omit certain cells
from being added?
For example:
{=SUM((Lantigua!$C$2:$HJ$2>=DATEVALUE("1-Jan"))*(Lantigua!$C$2:$HJ$2<=DATEVALUE("31-Jan"))*(Lantigua!$C$5:$HJ$5))}
Omitting cells
J5,R5,Z5,AH5,AP5,AX5,BF5,BN5,BV5,CD5,CL5,CT5,DB5,DJ5,DR5,DZ5,EH5,EP5,EX5,FF5,FN5,FV5,GD5,GL5,GT5,HB5,HJ5
These are the cells that contain the IF statement, I figure if I can
omit those cells from being summed up, the array formula will work
fine.

Signature
malik641
mangesh_yadav - 10 Jun 2005 15:30 GMT
As I said, the easiest way out for you would be to evaluate the resul
of the array formula. As I don't know what exactly is happening, I ca
only suggest this method:
=IF(ISNUMBER(SUM((Lantigua!$C$2:$HJ$2>=DATEVALUE("1-Jan"))*(Lantigua!$C$2:$HJ$2<=DATEVALUE("31-Jan"))*(Lantigua!$C$5:$HJ$5))),SUM((Lantigua!$C$2:$HJ$2>=DATEVALUE("1-Jan"))*(Lantigua!$C$2:$HJ$2<=DATEVALUE("31-Jan"))*(Lantigua!$C$5:$HJ$5)),"")
Manges
malik641 - 10 Jun 2005 17:09 GMT
I couldn't get that method to work, but I got it to work.
I decided to ditch the IF statements and just conditional format the
cells to have white text (or whatever shading the cell may have) if the
cell read 0. I guess it's good enough, and now the original array
function works.
Thanks anyway

Signature
malik641