G
Guest
I'm trying to sum a column of numbers by month, but want to insert "0" if there are blanks for any month in a cell. The column (A) is set up as a pick list to prohibit data entry error. This is what causes the FALSE error when doing a simple if statment combined with a sum to get each month (e.g. =if(a1:a150="january",sum(d2:d150)).
So I changed the statement to try and insert a "0" if there are blanks:
=IF(OR(ISBLANK(A1:A150),(0)),IF(A1:A150="january",SUM(D1
150))).
With this I continue to get FALSE. Obviously I will make them absolute references once I get the formula corrected.
So in a nutshell, what I want to do is that IF A1-A150 is blank then put a zero in the cell, but IF A1:A150=January(or whatever month), then I want to sum D1-D150.
What am I doing wrong in the above formula?
Thanks in advance...steve
So I changed the statement to try and insert a "0" if there are blanks:
=IF(OR(ISBLANK(A1:A150),(0)),IF(A1:A150="january",SUM(D1

With this I continue to get FALSE. Obviously I will make them absolute references once I get the formula corrected.
So in a nutshell, what I want to do is that IF A1-A150 is blank then put a zero in the cell, but IF A1:A150=January(or whatever month), then I want to sum D1-D150.
What am I doing wrong in the above formula?
Thanks in advance...steve